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 102225 - Debugging tests fires fires IllegalArgumentException
Summary: Debugging tests fires fires IllegalArgumentException
Status: CLOSED DUPLICATE of bug 102151
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-23 20:08 UTC by fordfrog
Modified: 2010-04-29 09:32 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 fordfrog 2007-04-23 20:08:35 UTC
Wheny I try to debug my JUnit tests, I get:

java.lang.IllegalArgumentException
	at
org.netbeans.api.java.source.ElementUtilities.getBinaryName(ElementUtilities.java:141)
	at
org.netbeans.modules.debugger.jpda.projects.EditorContextImpl$5.run(EditorContextImpl.java:707)
	at
org.netbeans.modules.debugger.jpda.projects.EditorContextImpl$5.run(EditorContextImpl.java:701)
	at org.netbeans.api.java.source.JavaSource.runUserActionTask(JavaSource.java:474)
	at
org.netbeans.modules.debugger.jpda.projects.EditorContextImpl.getClassName(EditorContextImpl.java:698)
	at
org.netbeans.modules.debugger.jpda.EditorContextBridge.getClassName(EditorContextBridge.java:232)
	at
org.netbeans.modules.debugger.jpda.breakpoints.LineBreakpointImpl.setRequests(LineBreakpointImpl.java:98)
	at
org.netbeans.modules.debugger.jpda.breakpoints.BreakpointImpl.update(BreakpointImpl.java:118)
	at
org.netbeans.modules.debugger.jpda.breakpoints.BreakpointImpl.set(BreakpointImpl.java:96)
	at
org.netbeans.modules.debugger.jpda.breakpoints.LineBreakpointImpl.<init>(LineBreakpointImpl.java:78)
	at
org.netbeans.modules.debugger.jpda.breakpoints.BreakpointsEngineListener.createBreakpointImpl(BreakpointsEngineListener.java:168)
	at
org.netbeans.modules.debugger.jpda.breakpoints.BreakpointsEngineListener.createBreakpointImpls(BreakpointsEngineListener.java:149)
	at
org.netbeans.modules.debugger.jpda.breakpoints.BreakpointsEngineListener.propertyChange(BreakpointsEngineListener.java:100)
	at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:339)
	at
java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:347)
	at
org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.firePropertyChange(JPDADebuggerImpl.java:1253)
	at
org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.setState(JPDADebuggerImpl.java:1238)
	at
org.netbeans.modules.debugger.jpda.JPDADebuggerImpl.setRunning(JPDADebuggerImpl.java:856)
	at
org.netbeans.modules.debugger.jpda.actions.StartActionProvider.doStartDebugger(StartActionProvider.java:184)
	at
org.netbeans.modules.debugger.jpda.actions.StartActionProvider.access$100(StartActionProvider.java:52)
	at
org.netbeans.modules.debugger.jpda.actions.StartActionProvider$1.run(StartActionProvider.java:144)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)

I use NetBeans-hudson-trunk-3116.zip. I run JUnit4 tests though not sure whether
it is JUnit4 related or just JUnit related.
Comment 1 fordfrog 2007-04-23 20:09:39 UTC
Corrected nb version.
Comment 2 ehucka 2007-04-23 20:24:42 UTC
I have filled issue 102151 about the same exception. It is throwing only when a
line breakpoint is outside of class body. Could you check positions of your
breakpoints? thanks
Comment 3 fordfrog 2007-04-23 20:47:21 UTC
You are right, thank you, now that's not that fatal :-)

*** This issue has been marked as a duplicate of 102151 ***
Comment 4 Quality Engineering 2010-04-29 09:32:47 UTC
Verified ... and Closing all issues resolved into NetBeans 6.7 and earlier.