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 10711 - NullPointerException when trying to attach debugger to VM
Summary: NullPointerException when trying to attach debugger to VM
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 3.x
Hardware: PC Other
: P2 blocker (vote)
Assignee: Daniel Prusa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-03-27 11:46 UTC by _ rgreig
Modified: 2003-06-30 17:36 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace of second NPE. (3.01 KB, text/plain)
2001-07-20 20:41 UTC, _ rgreig
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ rgreig 2001-03-27 11:46:40 UTC
I get the following NPE when I try to attach the debugger to a VM (full details 
after the stack trace):

Tue Mar 27 12:31:34 GMT+01:00 2001java.lang.NullPointerException: null
java.lang.NullPointerException
        at org.netbeans.modules.debugger.jpda.RemoteDebuggerInfo.getProcessName
(RemoteDebuggerInfo.java:165)
        at 
org.netbeans.modules.debugger.multisession.EnterpriseDebugger.startSession
(EnterpriseDebugger.java:373)
        at 
org.netbeans.modules.debugger.multisession.EnterpriseDebugger.startDebugger
(EnterpriseDebugger.java:172)
        at 
org.netbeans.modules.debugger.support.actions.ConnectAction$ConnectListener.acti
onPerformed(ConnectAction.java:99)
        at org.netbeans.core.NbPresenter$ButtonListener.actionPerformed
(NbPresenter.java:713)
        at javax.swing.AbstractButton.fireActionPerformed
(AbstractButton.java:1450)
        at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed
(AbstractButton.java:1504)
        at javax.swing.DefaultButtonModel.fireActionPerformed
(DefaultButtonModel.java:378)
        at javax.swing.DefaultButtonModel.setPressed
(DefaultButtonModel.java:250)
        at javax.swing.plaf.basic.BasicRootPaneUI$DefaultAction.actionPerformed
(BasicRootPaneUI.java:156)
        at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1702)
        at javax.swing.JComponent.processKeyBinding(JComponent.java:2156)
        at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:252)
        at javax.swing.KeyboardManager.fireKeyboardAction
(KeyboardManager.java:205)
        at javax.swing.JComponent.processKeyBindingsForAllComponents
(JComponent.java:2223)
        at javax.swing.JComponent.processKeyBindings(JComponent.java:2216)
        at javax.swing.JComponent.processKeyEvent(JComponent.java:2123)
        at java.awt.Component.processEvent(Component.java:3555)
        at java.awt.Container.processEvent(Container.java:1167)
        at java.awt.Component.dispatchEventImpl(Component.java:2595)
        at java.awt.Container.dispatchEventImpl(Container.java:1216)
        at java.awt.Component.dispatchEvent(Component.java:2499)
        at java.awt.LightweightDispatcher.processKeyEvent(Container.java:2162)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2142)
        at java.awt.Container.dispatchEventImpl(Container.java:1203)
        at java.awt.Window.dispatchEventImpl(Window.java:918)
        at java.awt.Component.dispatchEvent(Component.java:2499)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:336)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:134)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:101)
        at java.awt.Dialog.show(Dialog.java:386)
        at org.netbeans.core.NbPresenter.superShow(NbPresenter.java:477)
        at org.netbeans.core.NbPresenter.run(NbPresenter.java:500)
        at org.openide.util.Mutex$1.run(Mutex.java:869)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:147)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:334)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:134)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:101)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:96)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:88)

Platform: NT 4.0 SP 6 on both Netbeans and the remote VM
JDK: Sun JDK 1.3.0_02 on both Netbeans and the remote VM
Method of connecting: dt_shmem
Netbeans 3.2 build number: 13

This works on Forte build 1160 and also from JDB at the command line.

This appears to happen whenever I try to connect to a remote VM. The exact 
command line used is this:
D:\java\jdk1.3.0\bin\java -classic -Xmx128m -Xdebug -Xnoagent -
Xrunjdwp:transport=dt_shmem,address=mince,server=y,suspend=y -Djava.compil
er=NOJIT <classname etc.>
Comment 1 Daniel Prusa 2001-04-03 15:19:54 UTC
fixed in main trunk and release32
Comment 2 _ rgreig 2001-04-04 11:23:24 UTC
Created attachment 990 [details]
Stack trace of second NPE.
Comment 3 _ rgreig 2001-04-04 11:24:48 UTC
Build 20: I now get another NPE with a (very slightly) different stack trace. 
The new stack trace has been attached.
Comment 4 Daniel Prusa 2001-04-05 16:01:20 UTC
fixed in main trunk and release32
Comment 5 Jan Stola 2001-04-26 15:06:48 UTC
Verified in Netbeans release 3.2 build 38.
Comment 6 Jan Chalupa 2001-05-05 21:35:20 UTC
Target milestone -> 3.2
Comment 7 Quality Engineering 2003-06-30 17:36:38 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.