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 55592 - [41cat] Cannot Stop Application - ThreadDeath exception thrown
Summary: [41cat] Cannot Stop Application - ThreadDeath exception thrown
Status: CLOSED DUPLICATE of bug 52045
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-28 09:38 UTC by cberger
Modified: 2008-12-23 00:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cberger 2005-02-28 09:38:28 UTC
[ JDK VERSION : J2SE 1.5.0_01 ]

I start my application using "Run Main Project (F6)" 
button.
Then I go to "Runtime tab"->"Processes" and I right
click on "Terminate", the program doesn't terminate.

It just throws an ugly ThreadDeath exception,
like one can see on the following attached
"Output" window.

Bottom line: Applications started with "Run"
command cannot be stopped by Netbeans. ugh.
Same application started with Debugger can be
of course stopped.

init:
deps-jar:
compile:
run:
java.lang.ThreadDeath
    at java.lang.Thread.stop(Thread.java:698)
    at
java.lang.ThreadGroup.stopOrSuspend(ThreadGroup.java:671)
    at
java.lang.ThreadGroup.stop(ThreadGroup.java:584)
    at
org.netbeans.core.execution.DefaultSysProcess.stop(DefaultSysProcess.java:54)
    at
org.netbeans.core.execution.ProcessNodeItem$1.stop(ProcessNodeItem.java:41)
    at
org.netbeans.core.execution.ProcessNodeItem$TerminateProcessAction.performAction(ProcessNodeItem.java:69)
    at
org.openide.util.actions.NodeAction$3.run(NodeAction.java:440)
    at
org.openide.util.actions.CallableSystemAction.doPerformAction(CallableSystemAction.java:116)
    at
org.openide.util.actions.NodeAction$DelegateAction.actionPerformed(NodeAction.java:438)
    at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
    at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
    at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at
javax.swing.AbstractButton.doClick(AbstractButton.java:302)
    at
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
    at
javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
    at
java.awt.Component.processMouseEvent(Component.java:5488)
    at
javax.swing.JComponent.processMouseEvent(JComponent.java:3093)
    at
java.awt.Component.processEvent(Component.java:5253)
    at
java.awt.Container.processEvent(Container.java:1966)
    at
java.awt.Component.dispatchEventImpl(Component.java:3955)
    at
java.awt.Container.dispatchEventImpl(Container.java:2024)
    at
java.awt.Component.dispatchEvent(Component.java:3803)
    at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
    at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
    at
java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
    at
java.awt.Container.dispatchEventImpl(Container.java:2010)
    at
java.awt.Window.dispatchEventImpl(Window.java:1766)
    at
java.awt.Component.dispatchEvent(Component.java:3803)
    at
java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:234)
    at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.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)
BUILD SUCCESSFUL (total time: 9 seconds)
Comment 1 Milan Kubec 2005-03-01 11:47:18 UTC

*** This issue has been marked as a duplicate of 52045 ***
Comment 2 Tomas Danek 2005-08-01 12:27:24 UTC
verified as duplicate.