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 71622 - Deadlock in new library wrapper
Summary: Deadlock in new library wrapper
Status: CLOSED DUPLICATE of bug 70087
Alias: None
Product: platform
Classification: Unclassified
Component: Dialogs&Wizards (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jiri Rechtacek
URL:
Keywords: THREAD
Depends on:
Blocks:
 
Reported: 2006-01-19 18:43 UTC by _ pkuzel
Modified: 2008-12-22 23:51 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The full thread dump (8.70 KB, text/plain)
2006-01-23 14:10 UTC, _ pkuzel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ pkuzel 2006-01-19 18:43:18 UTC
lib:         subversion/external/svnClientAdapter.jar
project dir: subversion/client

After clisking FInish NewProjectBody waits forever...

"NewProjectBody" daemon prio=1 tid=0xe3dd9d50 nid=0x49e4 in Object.wait()
[0xe3b5f000..0xe3b5ff40]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xebdf7770> (a java.awt.EventQueue$1AWTInvocationLock)
        at java.lang.Object.wait(Object.java:474)
        at java.awt.EventQueue.invokeAndWait(EventQueue.java:846)
        - locked <0xebdf7770> (a java.awt.EventQueue$1AWTInvocationLock)
        at org.openide.util.Mutex.doEventAccess(Mutex.java:1184)
        at org.openide.util.Mutex.readAccess(Mutex.java:209)
        at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java:826)
        at java.awt.Component.show(Component.java:1300)
        at java.awt.Component.setVisible(Component.java:1253)
        at
org.openide.loaders.TemplateWizard.instantiateImpl(TemplateWizard.java:461)
        at org.openide.loaders.TemplateWizard.instantiate(TemplateWizard.java:334)
        at
org.netbeans.modules.project.ui.actions.NewProject.doPerform(NewProject.java:101)
        at
org.netbeans.modules.project.ui.actions.NewProject.access$000(NewProject.java:40)
        at
org.netbeans.modules.project.ui.actions.NewProject$1.run(NewProject.java:54)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)

"Timer-1" prio=1 tid=0xe3de0980 nid=0x49b7 in Object.wait() [0xe3002000..0xe3002e40]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xebd1c758> (a java.util.TaskQueue)
        at java.lang.Object.wait(Object.java:474)
        at java.util.TimerThread.mainLoop(Timer.java:483)
        - locked <0xebd1c758> (a java.util.TaskQueue)
        at java.util.TimerThread.run(Timer.java:462)

"MDR event dispatcher" daemon prio=1 tid=0x083b0880 nid=0x499f in Object.wait()
[0x066cc000..0x066ccec0]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xea7f9708> (a java.util.LinkedList)
        at java.lang.Object.wait(Object.java:474)
        at
org.netbeans.mdr.util.EventNotifier$EventsDelivery.run(EventNotifier.java:257)
        - locked <0xea7f9708> (a java.util.LinkedList)
        at java.lang.Thread.run(Thread.java:595)

"DestroyJavaVM" prio=1 tid=0x0805df78 nid=0x497b waiting on condition
[0x00000000..0xfeffcd60]

"AWT-EventQueue-1" prio=1 tid=0x0823fe68 nid=0x499a in Object.wait()
[0xe4260000..0xe42610c0]
        at java.lang.Object.wait(Native Method)
        - waiting on <0xea6c8b90> (a java.awt.EventQueue)
        at java.lang.Object.wait(Object.java:474)
        at java.awt.EventQueue.getNextEvent(EventQueue.java:345)
        - locked <0xea6c8b90> (a java.awt.EventQueue)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:189)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
        at java.awt.Dialog$1.run(Dialog.java:515)
        at java.awt.Dialog.show(Dialog.java:536)
        at
org.netbeans.core.windows.services.NbPresenter.superShow(NbPresenter.java:810)
        at
org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.java:853)
        at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:841)
        at org.openide.util.Mutex$1.run(Mutex.java:1188)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
Comment 1 _ pkuzel 2006-01-19 18:51:09 UTC
More context. I'm talking about New Project and NetBeans Plugin Modules wizard.
Comment 2 _ pkuzel 2006-01-19 18:51:56 UTC
Happened 3x times in row. (with existing dir, non-existing, ...)
Comment 3 Jesse Glick 2006-01-19 19:30:04 UTC
Would appreciate a log file, and thread dump as an attachment.

No idea why this would happen. But a note: it seems that the local var
thrownMessage can only be set in the catch block, by which time it is too late
to use it...? I don't really understand the control flow here.
Comment 4 Jiri Rechtacek 2006-01-20 13:12:25 UTC
I'll investigate a source of the problem and how to fix them.
Comment 5 Jan Chalupa 2006-01-23 09:09:37 UTC
Too late for 5.0. Requesting a waiver.
Comment 6 Jiri Rechtacek 2006-01-23 13:52:35 UTC
Petr and me don't see any deadlock in the thread dump. Rather looks as wizard
window which is not closed and waits forever. Which build do you use? NB5.0-RC
or dev builds from trunk? I cannot reproduce it.
Comment 7 _ pkuzel 2006-01-23 14:07:54 UTC
RC.

I extracted most important part of thread dump. I'll attach full version.
Comment 8 _ pkuzel 2006-01-23 14:10:00 UTC
Created attachment 28548 [details]
The full thread dump
Comment 9 _ pkuzel 2006-01-23 15:02:03 UTC
Turning on ...logger.console:

Caused by: java.lang.NullPointerException
        at java.io.File.<init>(File.java:194)
        at
org.netbeans.modules.apisupport.project.ui.wizard.NewNbModuleWizardIterator.instantiate(NewNbModuleWizardIterator.java:104)
        at
org.openide.loaders.TemplateWizard$InstantiatingIteratorBridge.instantiate(TemplateWizard.java:949)
        at
org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:537)
        at
org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:376)
        at
org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:218)
        at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1197)
        at org.openide.WizardDescriptor.access$1600(WizardDescriptor.java:70)
        at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:1676)
        at org.openide.WizardDescriptor$Listener$2.run(WizardDescriptor.java:1716)
        at org.openide.WizardDescriptor.lazyValidate(WizardDescriptor.java:1161)
        at org.openide.WizardDescriptor.access$1100(WizardDescriptor.java:70)
        at
org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1723)
        ... 41 more
Comment 10 _ pkuzel 2006-01-23 15:06:19 UTC
It means getSuiteRoot()... well such wizard field is always disabled.
Comment 11 Jiri Rechtacek 2006-01-23 15:46:48 UTC
The heart of the problem is NPE when creating Library Wrapper Project in
Netbeans sources. The thrown NPE prevent close of the wizard and wizard's window
remains open forever. It's not deadlock, user can close the window as a common
window.
It's duplicate of issue 70087.

*** This issue has been marked as a duplicate of 70087 ***
Comment 12 Marian Mirilovic 2006-10-24 07:24:20 UTC
closed