This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 121423 - Can not switch to JSP tab in Visual Web application
Summary: Can not switch to JSP tab in Visual Web application
Status: RESOLVED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: languages (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-11-07 22:42 UTC by Dongmei Cao
Modified: 2007-11-08 10:51 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Thread Dump when the problem happens (6.88 KB, text/plain)
2007-11-07 22:46 UTC, Dongmei Cao
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dongmei Cao 2007-11-07 22:42:21 UTC
This is from this morning's code base (11/7) from TRUNK. I'm not sure if this also exists on the 6.0 branch. 

To reproduce:

- Start IDE with a new or old user dir (happens in both cases)
- Create a Visual Web Application
- Drop a Text Field and a Button onto the designer. 
- Now click on the JSP tab. The CPU goes up to 100% and I have to kill the IDE from Windows Task Manager.
Comment 1 Dongmei Cao 2007-11-07 22:46:10 UTC
Created attachment 52688 [details]
Thread Dump when the problem happens
Comment 2 Jiri Skrivanek 2007-11-08 07:57:35 UTC
It started to happen in build #4342 and probably caused by this commot:

dprusa: #121268: finding usages fixed
1.9	languages/engine/src/org/netbeans/modules/languages/features/TokenHighlightsLayer.java

http://deadlock.netbeans.org/hudson/job/trunk/4342/changes#detail7
Comment 3 Vitezslav Stejskal 2007-11-08 08:04:02 UTC
Hi, could you please attach several full thread dumps (all threads and several subsequent dumps)? Dane, any ideas,
suggestions? Thanks
Comment 5 Vitezslav Stejskal 2007-11-08 08:10:27 UTC
Yeah, the line 130 looks suspicious. IMO the change was part of the fix for issue #121268.
Comment 6 Daniel Prusa 2007-11-08 08:13:53 UTC
Thread dump contains TokenHighlightsLayer$Highlights.moveNext() on the top - this is method I have changed to fix issue
121268, I will try to reproduce it and examine what's wrong.
Comment 7 Daniel Prusa 2007-11-08 08:50:06 UTC
Related commit in TokensHighlightsLayer rollbacked in trunk (there were no commit of this into release60).
This means that mark occurences still will not work reliably (a part of issue 121268). I will file it as a new issue.

/cvs/languages/engine/src/org/netbeans/modules/languages/features/TokenHighlightsLayer.java,v  <-- 
TokenHighlightsLayer.java
new revision: 1.10; previous revision: 1.9
Comment 8 Roman Mostyka 2007-11-08 09:41:26 UTC
With release branch build everything is OK. I can't reproduce this issue there.