Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 335148

Summary: UI locks up, threaddump suggests hang in org.eclipse.jst.jsp.core.taglib.TaglibIndex.resolve()
Product: [WebTools] WTP Source Editing Reporter: Robin Fernandes <robin>
Component: jst.jspAssignee: jst.jsp <jst.jsp-inbox>
Status: CLOSED DUPLICATE QA Contact: Nick Sandonato <nsand.dev>
Severity: critical    
Priority: P3 CC: rakes123, thatnitind
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Log file at point of hang
none
Thread dump at point of hang
none
Another thread dump at point of separate hang
none
Installation details. none

Description Robin Fernandes CLA 2011-01-24 00:49:20 EST
Build Identifier: 20100917-0705

Eclipse's UI often locks up, with 1 CPU at 100%. Thread dumps consistently show an active worker thread that seems to be scanning jars, presumably doing some kind of jsp taglib indexing, as suggested by the following stacktrace fragment (I'll attach a full thread dump too):

java.lang.Thread.State: RUNNABLE
	at java.util.zip.Inflater.inflateBytes(Native Method)
	at java.util.zip.Inflater.inflate(Inflater.java:238)
	- locked <0x00007f455410a050> (a java.util.zip.ZStreamRef)
	at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:135)
	at java.util.zip.ZipInputStream.read(ZipInputStream.java:154)
	at java.util.zip.ZipInputStream.closeEntry(ZipInputStream.java:100)
	at java.util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:78)
	at org.eclipse.jst.jsp.core.taglib.ProjectDescription.updateJAR(ProjectDescription.java:2268)
	at org.eclipse.jst.jsp.core.taglib.ProjectDescription$Indexer.visit(ProjectDescription.java:217)
	at org.eclipse.core.internal.resources.Resource$1.visitElement(Resource.java:64)
	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:82)
	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86)
	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86)
	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86)
	at org.eclipse.core.internal.watson.ElementTreeIterator.doIteration(ElementTreeIterator.java:86)
	at org.eclipse.core.internal.watson.ElementTreeIterator.iterate(ElementTreeIterator.java:127)
	at org.eclipse.core.internal.resources.Resource.accept(Resource.java:74)
	at org.eclipse.jst.jsp.core.taglib.ProjectDescription.index(ProjectDescription.java:1417)
	at org.eclipse.jst.jsp.core.taglib.ProjectDescription.restoreReferences(ProjectDescription.java:1906)
	at org.eclipse.jst.jsp.core.taglib.ProjectDescription.<init>(ProjectDescription.java:670)
	at org.eclipse.jst.jsp.core.taglib.TaglibIndex.createDescription(TaglibIndex.java:757)
	at org.eclipse.jst.jsp.core.taglib.TaglibIndex.internalResolve(TaglibIndex.java:937)
	at org.eclipse.jst.jsp.core.taglib.TaglibIndex.resolve(TaglibIndex.java:578)
[...]

This happens routinely, and all I can do is kill the process and restart Eclipse. I haven't yet re-created the hang with a clean workspace. It's possible this is a conflict with other plugins - I'll attach my full installation details and .log.

Reproducible: Sometimes

Steps to Reproduce:
I haven't identified a pattern to reproduce. It happens every 5-45 minutes, regardless of what I'm doing with Eclipse.
Comment 1 Robin Fernandes CLA 2011-01-24 00:51:05 EST
Created attachment 187398 [details]
Log file at point of hang
Comment 2 Robin Fernandes CLA 2011-01-24 00:52:46 EST
Created attachment 187400 [details]
Thread dump at point of hang
Comment 3 Robin Fernandes CLA 2011-01-24 00:53:13 EST
Created attachment 187401 [details]
Another thread dump at point of separate hang
Comment 4 Robin Fernandes CLA 2011-01-24 00:55:12 EST
Created attachment 187402 [details]
Installation details.
Comment 5 Rakesh CLA 2011-01-24 06:02:50 EST
Looks like it is duplicate of Bug 321602.
Comment 6 Nick Sandonato CLA 2011-01-24 10:21:03 EST
Hi Robin,

Thanks for your report. Rakesh is right, this looks to be a duplicate of Bug 321602. We have a fix lined up for Service Release 2 of Helios. But, in the meantime, you should be able to apply the feature patch that is attached to Bug 321602 comment 10. Follow those instructions and you should have everything cleared up. Bug 321602 comment 20 also has some alternate steps if you get stuck with the ones in 10.

*** This bug has been marked as a duplicate of bug 321602 ***