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 81971 - *Gdb-lite* debugging of Java projects is broken
Summary: *Gdb-lite* debugging of Java projects is broken
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-04 23:35 UTC by Nikolay Molchanov
Modified: 2007-09-06 18:04 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 Nikolay Molchanov 2006-08-04 23:35:12 UTC
I tried to use Netbeans+CND with latest "cnd.debugger.gdb" module, and found
out that it does not allow to debug Java projects. It allows to set or remove
breakpoints, but as soon as I press "Debug", an "Exception" dialog appears:

java.lang.NullPointerException
	at
org.netbeans.modules.cnd.debugger.gdb.CurrentThreadAnnotationListener.annotate(CurrentThreadAnnotationListener.java:124)
	at
org.netbeans.modules.cnd.debugger.gdb.CurrentThreadAnnotationListener.propertyChange(CurrentThreadAnnotationListener.java:65)
	at
org.netbeans.api.debugger.DebuggerManager.firePropertyChange(DebuggerManager.java:539)
	at
org.netbeans.api.debugger.DebuggerManager.setCurrentSession(DebuggerManager.java:384)
	at
org.netbeans.api.debugger.DebuggerManager.startDebugging(DebuggerManager.java:321)
	at
org.netbeans.api.debugger.jpda.JPDADebugger.startListening(JPDADebugger.java:171)
	at org.netbeans.modules.debugger.jpda.ant.JPDAStart.run(JPDAStart.java:274)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)


If I press "Ok", the dialog goes away, and the debugging starts.
But when debugging is finishing, there is another exception, and the
debugging session does not finish properly: debugger windows stay,
Session view still shows these sessions, debug toolbar stays and
some buttons are enabled ("Finish Debugger Session", "New Watch").
Here is the exception, that happens at the end of debugging:
============================================================

java.lang.NullPointerException
	at
org.netbeans.modules.cnd.debugger.gdb.CurrentThreadAnnotationListener.annotate(CurrentThreadAnnotationListener.java:124)
	at
org.netbeans.modules.cnd.debugger.gdb.CurrentThreadAnnotationListener.propertyChange(CurrentThreadAnnotationListener.java:65)
	at
org.netbeans.api.debugger.DebuggerManager.firePropertyChange(DebuggerManager.java:539)
	at
org.netbeans.api.debugger.DebuggerManager.setCurrentSession(DebuggerManager.java:384)
	at
org.netbeans.api.debugger.DebuggerManager.removeSession(DebuggerManager.java:1078)
	at org.netbeans.api.debugger.DebuggerManager.access$400(DebuggerManager.java:106)
	at
org.netbeans.api.debugger.DebuggerManager$SessionListener.propertyChange(DebuggerManager.java:1161)
	at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:333)
	at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:270)
	at org.netbeans.api.debugger.Session.removeEngine(Session.java:353)
	at
org.netbeans.api.debugger.DebuggerEngine$Destructor.killEngine(DebuggerEngine.java:195)
	at
org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.finish(JPDADebuggerImpl.java:822)
	at
org.netbeans.modules.debugger.jpda.actions.KillActionProvider.doAction(KillActionProvider.java:46)
	at org.netbeans.api.debugger.ActionsManager.doAction(ActionsManager.java:126)
	at org.netbeans.api.debugger.Session.kill(Session.java:250)
	at
org.netbeans.modules.debugger.jpda.actions.StartActionProvider$3.run(StartActionProvider.java:224)
	at org.netbeans.modules.debugger.jpda.util.Operator$1.run(Operator.java:112)
[catch] at java.lang.Thread.run(Thread.java:595)
Comment 1 _ gordonp 2006-08-05 02:58:52 UTC
Fixed in beta2 build.