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.
This bug was originally marked as duplicate of bug 210481, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build nbms-and-javadoc-9263-on-20120501) VM: Java HotSpot(TM) Client VM, 23.0-b21, Java(TM) SE Runtime Environment, 1.7.0_04-b20 OS: Windows XP User Comments: toben: local browser test of a restlet webservice started GUEST: After deleting a project GUEST: Deleting a maven project. Stacktrace: org.openide.util.lookup.AbstractLookup$CycleError: StackOverflowError. There is 1 listeners: Round 1 at org.openide.util.lookup.AbstractLookup.notifyListeners(AbstractLookup.java:574) at org.openide.util.lookup.ProxyLookup$R.collectFires(ProxyLookup.java:633) at org.openide.util.lookup.ProxyLookup.setLookups(ProxyLookup.java:170) at org.openide.util.lookup.ProxyLookup.setLookups(ProxyLookup.java:126) at org.netbeans.modules.projectapi.LazyLookupProviders$1$1.beforeLookup(LazyLookupProviders.java:108) at org.openide.util.lookup.ProxyLookup$R.myBeforeLookup(ProxyLookup.java:646)
Created attachment 119748 [details] stacktrace
Why is this a P2? There were three reports from two reporters over the course of three weeks. Possibly caused by fix of bug #209322. No idea how to reproduce. Could perhaps break recursion manually though it is hard to be sure that would not just cause some other problem.
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=188233
*** Bug 213927 has been marked as a duplicate of this bug. ***
Can try to fix; without a way to reproduce, can neither verify fix, nor be sure it does not make something worse.
Steps to reproduce with build 201206100001 on Windows 7: 1. Create a new Maven-based web application. 2. Create a new servlet in the web app project. 3. Run the project. 4. Move the project (context menu > Move). 5. Move the project again to a different location, or delete the project with sources.
Can reproduce (on Linux) using these instructions - thanks for test case.
Seems to be hitting a cycle in lookup for CosChecker, and if I comment that out, in DebuggerChecker. Both register multiple interfaces on one class, which is probably the trigger. This ProxyLookup.beforeLookup impl is just calling setLookups, which is explicitly permitted by the Javadoc, but that seems to not be working in this case; I suspect the fix of bug #209322 (lazy iterators) broke this use case. I do not know how to reproduce inside a unit test, unfortunately. Can just manually break the cycle by making nested calls to bL a no-op, though it is unclear what this might hurt - nested calls to allItems will incorrectly return an empty list. Cannot set serviceNames=null (the flag that the ProxyLookup has been initialized) _before_ calling setLookups, since that would allow another thread to see an uninitialized lookup; nor can the flag and setLookups be wrapped in a single synchronized block, since that would deadlock (cf. bug #205533).
core-main #8c856611ef52
*** Bug 214173 has been marked as a duplicate of this bug. ***
Integrated into 'main-golden', will be available in build *201206150001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/8c856611ef52 User: Jesse Glick <jglick@netbeans.org> Log: #212862: Stack overflow in LazyLookupProviders$1$1.beforeLookup
Verified with build 201206150001.