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.
I am using 5/9 NB 5.5 build with JDK 1.5, Appserver SDK latest build (build4) on Win XP In runtime, restart function of appserver pops up the master password window twice. To recreate: (1) Create a domain without save master password (2) Register this domain (3) Click on the Restart functon, type in the master password when the window comes out the first time. Server starts fine. After that another master password window pops up, which is not needed.
*** Issue 71615 has been marked as a duplicate of this issue. ***
I guess you are on a Multip CPU system, right? If you can reproduce, could you attach a dumpthread when the first dialog is showning, then another dumpthread when the 2nd dialog is showing.
I do not see the reported issue in 8/21 IDE build. This bug can be closed. dumpthread when the first dialog is showning: Full thread dump Java HotSpot(TM) Client VM (1.5.0_03-b07 mixed mode): "Thread-43" daemon prio=5 tid=0x1623e648 nid=0xff4 waiting on condition [0x1ec2f 000..0x1ec2fa68] at java.lang.Thread.sleep(Native Method) at org.netbeans.modules.j2ee.sun.ide.j2ee.LogViewerSupport.run(LogViewer Support.java:137) "Default RequestProcessor" daemon prio=5 tid=0x16241808 nid=0x838 in Object.wait () [0x1ebef000..0x1ebefae8] at java.lang.Object.wait(Native Method) ^C C:\Program Files\netbeans-5.5dev\netbeans\bin> - waiting on <0x02d60210> (a org .netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery) at java.lang.Object.wait(Object.java:474) at org.netbeans.core.windows.services.DialogDisplayerImpl.notify(DialogD isplayerImpl.java:195) - locked <0x02d60210> (a org.netbeans.core.windows.services.DialogDispla yerImpl$1AWTQuery) at org.netbeans.modules.j2ee.sun.ide.j2ee.StartSunServer.readMasterPassw ordFile(StartSunServer.java:552) at org.netbeans.modules.j2ee.sun.ide.j2ee.StartSunServer.run(StartSunSer ver.java:370) - locked <0x02d60260> (a org.netbeans.modules.j2ee.sun.ide.j2ee.StartSun Server) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java :932) "Default RequestProcessor" daemon prio=2 tid=0x162a3a58 nid=0xf78 in Object.wait () [0x15aaf000..0x15aafce8] at java.lang.Object.wait(Native Method) - waiting on <0x0551ad88> (a org.netbeans.modules.j2ee.deployment.impl.S erverInstance) at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.sleep(Server Instance.java:1491) - locked <0x0551ad88> (a org.netbeans.modules.j2ee.deployment.impl.Serve rInstance) at org.netbeans.modules.j2ee.deployment.impl.ServerInstance._start(Serve rInstance.java:1121) - locked <0x0551ad88> (a org.netbeans.modules.j2ee.deployment.impl.Serve rInstance) at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget( ServerInstance.java:1061) at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.startTarget( ServerInstance.java:872) at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.restart(Serv erInstance.java:822) at org.netbeans.modules.j2ee.deployment.impl.ui.actions.RestartAction$1. run(RestartAction.java:79) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java :932) "Inactive RequestProcessor thread [Was:System clipboard synchronizer/org.netbean s.core.NbClipboard]" daemon prio=2 tid=0x162a6588 nid=0xf28 in Object.wait() [0x 157df000..0x157df9e8] at java.lang.Object.wait(Native Method) - waiting on <0x054a6d28> (a java.lang.Object) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java :885) - locked <0x054a6d28> (a java.lang.Object) "Thread-38" daemon prio=5 tid=0x14fde008 nid=0x1ac waiting on condition [0x1ebaf 000..0x1ebafb68] at java.lang.Thread.sleep(Native Method) at org.netbeans.modules.j2ee.sun.ide.j2ee.LogViewerSupport.run(LogViewer Support.java:137) "Thread-32" prio=7 tid=0x16292670 nid=0x12c waiting on condition [0x1e78f000..0x 1e78fd68] at java.lang.Thread.sleep(Native Method) at org.netbeans.modules.j2ee.sun.ide.j2ee.db.ExecSupport$OutputCopier.re ad(ExecSupport.java:125) at org.netbeans.modules.j2ee.sun.ide.j2ee.db.ExecSupport$OutputCopier.ru n(ExecSupport.java:105) "Thread-31" prio=7 tid=0x16269d78 nid=0xb84 waiting on condition [0x1e74f000..0x 1e74fce8] at java.lang.Thread.sleep(Native Method) at org.netbeans.modules.j2ee.sun.ide.j2ee.db.ExecSupport$OutputCopier.re ad(ExecSupport.java:125) at org.netbeans.modules.j2ee.sun.ide.j2ee.db.ExecSupport$OutputCopier.ru n(ExecSupport.java:105) "Thread-30" prio=7 tid=0x1613ead8 nid=0xd1c waiting on condition [0x15c0f000..0x 15c0f9e8] at java.lang.Thread.sleep(Native Method) at org.netbeans.modules.j2ee.sun.ide.j2ee.db.ExecSupport$OutputCopier.re ad(ExecSupport.java:125) at org.netbeans.modules.j2ee.sun.ide.j2ee.db.ExecSupport$OutputCopier.ru n(ExecSupport.java:105) "Thread-14" daemon prio=5 tid=0x150a0080 nid=0x898 waiting on condition [0x15bcf 000..0x15bcfce8] at java.lang.Thread.sleep(Native Method) at org.netbeans.modules.j2ee.sun.ide.j2ee.LogViewerSupport.run(LogViewer Support.java:137) "Thread-10" daemon prio=5 tid=0x15085008 nid=0xfc0 runnable [0x159ef000..0x159ef c68] at java.lang.ProcessImpl.waitFor(Native Method) at org.netbeans.modules.derby.ExecSupport$1.run(ExecSupport.java:81) "Thread-9" daemon prio=5 tid=0x15fbed90 nid=0xf04 waiting on condition [0x159af0 00..0x159af9e8] at java.lang.Thread.sleep(Native Method) at org.netbeans.modules.derby.ExecSupport$OutputCopier.read(ExecSupport. java:161) at org.netbeans.modules.derby.ExecSupport$OutputCopier.run(ExecSupport.j ava:136) "Thread-8" daemon prio=5 tid=0x15f6f848 nid=0xcb8 waiting on condition [0x1596f0 00..0x1596fce8] at java.lang.Thread.sleep(Native Method) at org.netbeans.modules.derby.ExecSupport$OutputCopier.read(ExecSupport. java:161) at org.netbeans.modules.derby.ExecSupport$OutputCopier.run(ExecSupport.j ava:136) "Thread-7" daemon prio=5 tid=0x150bd0c8 nid=0xc38 waiting on condition [0x1570f0 00..0x1570fa68] at java.lang.Thread.sleep(Native Method) at org.netbeans.modules.derby.ExecSupport$OutputCopier.read(ExecSupport. java:161) at org.netbeans.modules.derby.ExecSupport$OutputCopier.run(ExecSupport.j ava:136) "MDR event dispatcher" daemon prio=2 tid=0x14d81a18 nid=0x624 in Object.wait() [ 0x1549f000..0x1549fb68] at java.lang.Object.wait(Native Method) - waiting on <0x04163e18> (a java.util.LinkedList) at java.lang.Object.wait(Object.java:474) at org.netbeans.mdr.util.EventNotifier$EventsDelivery.run(EventNotifier. java:263) - locked <0x04163e18> (a java.util.LinkedList) at java.lang.Thread.run(Thread.java:595) "DestroyJavaVM" prio=5 tid=0x00038aa0 nid=0x340 waiting on condition [0x00000000 ..0x0007fae8] "AWT-EventQueue-1" prio=7 tid=0x15e4b5b0 nid=0x97c in Object.wait() [0x1586f000. .0x1586fbe8] at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:474) at java.awt.EventQueue.getNextEvent(EventQueue.java:345) - locked <0x03efaa20> (a java.awt.EventQueue) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh read.java:189) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.java:163) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.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:816) at org.netbeans.core.windows.services.NbPresenter.doShow(NbPresenter.jav a:859) at org.netbeans.core.windows.services.NbPresenter.run(NbPresenter.java:8 47) at org.openide.util.Mutex.doEventAccess(Mutex.java:1178) at org.openide.util.Mutex.readAccess(Mutex.java:215) at org.netbeans.core.windows.services.NbPresenter.show(NbPresenter.java: 832) at java.awt.Component.show(Component.java:1300) at java.awt.Component.setVisible(Component.java:1253) at org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.show Dialog(DialogDisplayerImpl.java:165) at org.netbeans.core.windows.services.DialogDisplayerImpl$1AWTQuery.run( DialogDisplayerImpl.java:105) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh read.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) "TimerQueue" daemon prio=5 tid=0x15e4b030 nid=0xe98 in Object.wait() [0x1582f000 ..0x1582fc68] at java.lang.Object.wait(Native Method) at javax.swing.TimerQueue.postExpiredTimers(TimerQueue.java:215) - locked <0x03ee2a28> (a javax.swing.TimerQueue) at javax.swing.TimerQueue.run(TimerQueue.java:231) - locked <0x03ee2a28> (a javax.swing.TimerQueue) at java.lang.Thread.run(Thread.java:595) "Java2D Disposer" daemon prio=10 tid=0x150849c0 nid=0xb44 in Object.wait() [0x15 61f000..0x1561fae8] at java.lang.Object.wait(Native Method) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) - locked <0x035af1d8> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132) at sun.java2d.Disposer.run(Disposer.java:107) at java.lang.Thread.run(Thread.java:595) "AWT-Windows" daemon prio=7 tid=0x14d77ac0 nid=0xd44 runnable [0x155bf000..0x155 bfb68] at sun.awt.windows.WToolkit.eventLoop(Native Method) at sun.awt.windows.WToolkit.run(WToolkit.java:269) at java.lang.Thread.run(Thread.java:595) "AWT-Shutdown" prio=5 tid=0x14d776e0 nid=0x6b8 in Object.wait() [0x1557f000..0x1 557fbe8] at java.lang.Object.wait(Native Method) - waiting on <0x035af2c0> (a java.lang.Object) at java.lang.Object.wait(Object.java:474) at sun.awt.AWTAutoShutdown.run(AWTAutoShutdown.java:259) - locked <0x035af2c0> (a java.lang.Object) at java.lang.Thread.run(Thread.java:595) "Timer-0" daemon prio=5 tid=0x14fa6de8 nid=0xfd4 in Object.wait() [0x154df000..0 x154dfc68] at java.lang.Object.wait(Native Method) - waiting on <0x034c0170> (a java.util.TaskQueue) at java.util.TimerThread.mainLoop(Timer.java:509) - locked <0x034c0170> (a java.util.TaskQueue) at java.util.TimerThread.run(Timer.java:462) "CLI Requests Server" daemon prio=5 tid=0x14d86d90 nid=0xf5c runnable [0x1545f00 0..0x1545fd68] at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) - locked <0x034c0308> (a java.net.SocksSocketImpl) at java.net.ServerSocket.implAccept(ServerSocket.java:450) at java.net.ServerSocket.accept(ServerSocket.java:421) at org.netbeans.CLIHandler$Server.run(CLIHandler.java:867) "Active Reference Queue Daemon" daemon prio=2 tid=0x14d43c80 nid=0x9e4 in Object .wait() [0x14f6f000..0x14f6f9e8] at java.lang.Object.wait(Native Method) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) - locked <0x034c0488> (a java.lang.ref.ReferenceQueue$Lock) at org.openide.util.Utilities$ActiveQueue.run(Utilities.java:3002) at java.lang.Thread.run(Thread.java:595) "Low Memory Detector" daemon prio=5 tid=0x00a94668 nid=0x4c4 runnable [0x0000000 0..0x00000000] "CompilerThread0" daemon prio=10 tid=0x00036580 nid=0xc64 waiting on condition [ 0x00000000..0x14caf84c] "Signal Dispatcher" daemon prio=10 tid=0x00a92750 nid=0x144 waiting on condition [0x00000000..0x00000000] "Finalizer" daemon prio=9 tid=0x00a89a50 nid=0x840 in Object.wait() [0x14c2f000. .0x14c2fc68] at java.lang.Object.wait(Native Method) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) - locked <0x034c0630> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) "Reference Handler" daemon prio=10 tid=0x00a885c0 nid=0xa40 in Object.wait() [0x 14bef000..0x14befce8] at java.lang.Object.wait(Native Method) at java.lang.Object.wait(Object.java:474) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116) - locked <0x034c0100> (a java.lang.ref.Reference$Lock) "VM Thread" prio=10 tid=0x00a85bf8 nid=0xffc runnable "VM Periodic Task Thread" prio=10 tid=0x00a92638 nid=0xd6c waiting on condition
Addressed with the fix for 79941 Isrunning is now synchronized to avoid multiple threads to call it the same time.