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 119292 - Re-entrant calls to setLookup
Summary: Re-entrant calls to setLookup
Status: RESOLVED DUPLICATE of bug 123679
Alias: None
Product: platform
Classification: Unclassified
Component: Lookup (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-17 23:44 UTC by _ krystyna
Modified: 2008-12-22 11:56 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 7404


Attachments
stacktrace (1.74 KB, text/plain)
2007-10-17 23:44 UTC, _ krystyna
Details
stacktrace (1.74 KB, text/plain)
2007-10-27 01:03 UTC, _ krystyna
Details
stacktrace (1.36 KB, text/plain)
2007-11-05 18:15 UTC, Karol Harezlak
Details
stacktrace (1.36 KB, text/plain)
2007-11-06 11:18 UTC, Karol Harezlak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ krystyna 2007-10-17 23:44:37 UTC
Build: NetBeans IDE Dev (Build 200710170000)
VM: Java HotSpot(TM) Client VM, 1.6.0_03-b02
OS: Windows XP, 5.1, x86

User Comments: 
-just created a VW ee5 project. Prior to that had closed about 5 files from multiviewer (didn't require a SAVE), and then closed all the remaining projects in IDE, mixture of plain JSP and VW projects.
Comment 1 _ krystyna 2007-10-17 23:44:44 UTC
Created attachment 51173 [details]
stacktrace
Comment 2 _ krystyna 2007-10-27 01:03:36 UTC
Build: NetBeans IDE Dev (Build 200710261200)
VM: Java HotSpot(TM) Client VM, 1.6.0_02-b05
OS: Linux, 2.6.20-15-generic, i386

User Comments: 
-had just saved java source after closing page tab of a cloned document (Page1)^J-returned to VW ee5 design page and was attempting drop of a Basic component (Label)^J-since I was on a VNC connection I didn't think I clicked/dragged right so I dragged^J  again and got this exception
Comment 3 _ krystyna 2007-10-27 01:03:39 UTC
Created attachment 51824 [details]
stacktrace
Comment 4 thompsonwd40 2007-10-27 02:16:46 UTC
THIS ISSUE HAS 5 MORE DUPLICATES
Comment 5 _ krystyna 2007-10-27 06:23:30 UTC
Upgrading this based on report from netcat participant:

 This exception is a precursor to the subsequent erratic component behavior.  I try to delete a button object, nothing
happens.  Select "refresh" - after 8 seconds delay the component disappears.  It looks like this is a show-stopper at
this point.  I do not have the Navigator window. 
Comment 6 thompsonwd40 2007-10-28 00:50:16 UTC
My guess, it appears this error occurs on first run of NetBeans IDE, when using Visual Web Pack.  After receiving the
first message and having the system display erratic results, I shut down my computer for the night.  Today, I started
the IDE, and the Visual Editor page displayed the red banner stating the objects were bad (I didn't write down the
message).  I deleted the entire project, created a new Visual Web project and successfully created the entire
Coordinated Drop Down List tutorial http://blogs.sun.com/divas/entry/coordinated_drop_down_lists with no further incident.  

The IDE, especially VWP functions perfectly, to the point that a previous error I had reported is cleared up, everything
is good.  I love it!  What an excellent experience.  Its just that first run - and that critical first impression for
first-time NetBeans users..
Comment 7 Jaroslav Tulach 2007-10-30 17:01:50 UTC
Ok, let's see what is going on...
Comment 8 Jaroslav Tulach 2007-10-30 18:33:55 UTC
#119292: Lookup.equals could be used to execute setLookups re-entrantly and get IndexOutOfBounds


IDE:-------------------------------------------------
IDE: [30.10.07 18:33] Committing started
Checking in src/org/openide/util/lookup/ProxyLookup.java;
/shared/data/ccvs/repository/openide/util/src/org/openide/util/lookup/ProxyLookup.java,v  <--  ProxyLookup.java
new revision: 1.15; previous revision: 1.14
done
Checking in test/unit/src/org/openide/util/lookup/ProxyLookupTest.java;
/shared/data/ccvs/repository/openide/util/test/unit/src/org/openide/util/lookup/ProxyLookupTest.java,v  <--  
ProxyLookupTest.java
new revision: 1.9; previous revision: 1.8
done
IDE: [30.10.07 18:33] Committing finished
Comment 9 Jaroslav Tulach 2007-10-30 18:54:17 UTC
Also making re-entrant from add/removeLookupListener


IDE:-------------------------------------------------
IDE: [30.10.07 18:50] Committing "Utilities API" started
Checking in src/org/openide/util/lookup/ProxyLookup.java;
/shared/data/ccvs/repository/openide/util/src/org/openide/util/lookup/ProxyLookup.java,v  <--  ProxyLookup.java
new revision: 1.16; previous revision: 1.15
done
Checking in test/unit/src/org/openide/util/lookup/ProxyLookupTest.java;
/shared/data/ccvs/repository/openide/util/test/unit/src/org/openide/util/lookup/ProxyLookupTest.java,v  <--  
ProxyLookupTest.java
new revision: 1.10; previous revision: 1.9
done
IDE: [30.10.07 18:51] Committing "Utilities API" finished
Comment 10 thompsonwd40 2007-10-31 14:46:40 UTC
[60cat] [vw] Using 200710291200 build.  The error reporting mechanism embedded in the IDE brought me to the issue
reporting system, but it appears my comments and stack trace were not recorded - unless there is some network delay.  I
will reproduce those comments here.  This is now my fourth incident with this particular error in the past 2 weeeks of
VW usage.

The Navigator window is now non-functional, with light-gray lettering stating <no view available>.  I tried Window |
Reset Windows with no effect.  I had just finished a successful Build/Run/Deploy of the app, using Visual Designer, I
clicked in the Navigator window to expand the Session1 bean - the Navigator window goes blank and after a few seconds
the error reporting feature creates a pop-up dialog.

One observation on my IDE - I have a calendar component on the design surface, not bound to anything.  The navigator
window shows "calendar1 - Navigator".  At the time I clicked Session1, I did *not* have any focus on the calendar component.

Recommend this issue be Re-opened.
Comment 11 _ krystyna 2007-10-31 19:28:47 UTC
Reopening. I have just experienced AIOOB with latest zip build 10311411 --
loss of Navigator view clicking in Navigator window. See statistics URL 
Comment 12 Jaroslav Tulach 2007-11-01 10:23:59 UTC
I am not able to reproduce the exception by myself, neither there are exact steps that I could follow. Passing to 
visualweb. The visualweb seems to be somehow involved, all the reports seem to be working with it. If you reproduce, 
and you insist on fixing in openide/lookup component, provide exact steps please.
Comment 13 Winston Prakash 2007-11-01 17:51:27 UTC
Please note that this is not a Visual Web Bug. But happens to be manifested
by visual web component usage. These are the sequence

- Components gets added to the designer or components in the designer gets selected.
- All the components in the designer also appear in the Navigator panel (called Outline).
- When a component in the designer is modified or deleted or added Outline in the Navigator changes
- This action activates the panel in the navigator which in turns access the Lookup.

I'm not able to reproduce this in Nov 1 build.

Anyway, in description 11 Oct 29 build was used. But the fix was in Oct 30.
In description 12, Oct 31 build is used, however, the fix went in at 17:33 on Oct 30,
so may not be in the Oct 31 build yet.

Marking this bug as works for me and assigning back to openide/lookup 
Comment 14 Jaroslav Tulach 2007-11-01 20:00:48 UTC
Thanks Prakash, so let's mark this as fixed once again.
Comment 15 Karol Harezlak 2007-11-05 18:15:47 UTC
Build: NetBeans IDE Dev (Build 200711050000)
VM: Java HotSpot(TM) Client VM, 1.5.0_11-b03
OS: Linux, 2.6.20-16-generic, i386

User Comments: 
Comment 16 Karol Harezlak 2007-11-05 18:15:57 UTC
Created attachment 52548 [details]
stacktrace
Comment 17 Karol Harezlak 2007-11-06 11:18:37 UTC
Build: NetBeans IDE Dev (Build 071031)
VM: Java HotSpot(TM) Client VM, 1.5.0_12-b04
OS: Linux, 2.6.20-16-generic, i386

User Comments: 
It happens sometimes when I switch from one Mobility project to another.
Comment 18 Karol Harezlak 2007-11-06 11:18:41 UTC
Created attachment 52583 [details]
stacktrace
Comment 19 thompsonwd40 2007-11-21 15:52:43 UTC
I am assuming previous errors are contributing to this error condition.  Following are steps taken and associated
problems (while in VW Editor, latest NB6RC1, WinXP):
1. Add label component - start adding text
 1e: IllegalStateException: Text of parent token is null. tokenStartOffset=1465, tokenIndex=0, relexOffset=1465,
relexState=1000, languagePath=LanguagePath: size=2 [0]: text/x-jsp, LH: org.netbeans.api.jsp.lexer.JspTokenId$1 [1]:
text/html, LH: org.netbeans.api.html.lexer.HTMLTokenId$1 , inited=true
http://statistics.netbeans.org/exceptions/detail.do?id=12355

2. Add additional text - receive #1 error.  Try this four times, until terminate adding text with the ENTER key.

3 [this error]. Add DDLB, DnD table on top - receiving this error.  Stack trace located in exception report:
http://statistics.netbeans.org/exceptions/detail.do?id=7404.  Lost the Navigator panel - it shows blank.

4. Attempted to Build/Deploy App, received another error caught by automated logger - I filled out detailed description,
then received logger error message:  "Upload of log to statistics.netbeans.org failed, please report the problem at 
http://www.netbeans.org/community/issues.html".
Comment 20 jiai 2008-01-12 11:47:46 UTC
Sorry - but this isn't fixed in NB 6.0, see exception report 7404.
Comment 21 jiai 2008-01-12 19:31:24 UTC
Sorry, it isn't fixed in Netbeans 6.0! See exception report at http://statistics.netbeans.org/analytics/detail.do?id=7404
Comment 22 Jaroslav Tulach 2008-01-14 13:10:30 UTC
True, it is not fixed. Also it is reported quite often. I'll see what I can do with it.

*** This issue has been marked as a duplicate of 123679 ***