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 170209 - No iterator found due to AWT being occupied
Summary: No iterator found due to AWT being occupied
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Features On Demand (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Pavel Flaska
URL: http://statistics.netbeans.org/except...
Keywords:
: 164208 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-11 15:01 UTC by Tomasz Slota
Modified: 2009-08-28 08:34 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 155545


Attachments
stacktrace (2.89 KB, text/plain)
2009-08-11 15:01 UTC, Tomasz Slota
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Slota 2009-08-11 15:01:33 UTC
This issue was originally marked as duplicate of issue 163564, that is already resolved. This issue is still valid, so this seems to be another issue, but it might be related.

Build: NetBeans IDE Dev (Build 090811)
VM: Java HotSpot(TM) Client VM, 1.5.0_19-137, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_19-b02-304
OS: Mac OS X, 10.5.8, i386

User Comments:
tslota: creating a new PHP project on a fresh user dir, it happened when the PHP feature was activating. Before I interrupted activating the Java feature



Stacktrace: 
java.lang.NullPointerException: Send us the messages.log please!
        at org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep.waitForDelegateWizard(DescriptionStep.java:266)
        at org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep.access$200(DescriptionStep.java:86)
        at org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep$1$1.call(DescriptionStep.java:174)
        at org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep$1$1.call(DescriptionStep.java:170)
        at org.netbeans.modules.ide.ergonomics.fod.ConfigurationPanel$2$1.run(ConfigurationPanel.java:198)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
Comment 1 Tomasz Slota 2009-08-11 15:01:42 UTC
Created attachment 86106 [details]
stacktrace
Comment 2 Jaroslav Tulach 2009-08-11 17:03:20 UTC
Finally I think we can understand the problem. There is a thread dump at the bottom of the log file:
http://statistics.netbeans.org/exceptions/messageslog?id=241721

and it shows that FoD Processor is in "deadlock" with AWT thread. As a result the php modules are not enabled until 
the AWT thread throws the NPE:

FoD Processor
  java.lang.Object.wait:-2
  java.lang.Object.wait:474
  java.awt.EventQueue.invokeAndWait:848
  javax.swing.SwingUtilities.invokeAndWait:1257
  org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep.presentModulesForEnable:167
  org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep.presentModulesForActivation:152
  org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep.access$100:86
  org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep$PresentModules.run:146
  org.openide.util.RequestProcessor$Task.run:602
  org.openide.util.RequestProcessor$Processor.run:1070

AWT-EventQueue-1
  java.lang.Thread.dumpThreads:-2
  java.lang.Thread.getAllStackTraces:1460
  org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep.threadDump:372
  org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep.waitForDelegateWizard:262
  org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep.access$200:86
  org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep$1$1.call:174
  org.netbeans.modules.ide.ergonomics.newproject.DescriptionStep$1$1.call:170
  org.netbeans.modules.ide.ergonomics.fod.ConfigurationPanel$2$1.run:198


Probably the code DescriptionStep needs to be modified to not block and wait for its piece being executed in AWT.
Comment 3 Pavel Flaska 2009-08-12 15:45:53 UTC
Fixed a5e113c18545.

Thank Jarda for his tremendous help.


Comment 4 Quality Engineering 2009-08-13 06:06:13 UTC
Integrated into 'main-golden', will be available in build *200908130201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a5e113c18545
User: Pavel Flaska <pflaska@netbeans.org>
Log: #170209: No iterator found due to AWT being occupied
Comment 5 Jaroslav Tulach 2009-08-25 15:35:55 UTC
*** Issue 164208 has been marked as a duplicate of this issue. ***