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.
This bug was originally marked as duplicate of bug 186523, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE 6.9.1 (Build 201201181214) VM: Java HotSpot(TM) 64-Bit Server VM, 22.0-b10, Java(TM) SE Runtime Environment, 1.7.0_02-b13 OS: Windows 7 User Comments: GUEST: debugging unit test GUEST: trying to debug a file GUEST: I tried to debug JUnit test case of Maven project. gigadot: Debugger failed to startup when debugging a test file in maven projects. Only happen with maven project. GUEST: breakpoint set in local sources hit debug in a maven project GUEST: - in a JUnit 4 test - Right click and choose 'Debug Test File' - it's a maven project GUEST: This error happens when I'm trying to debug JUnit test which calling Hibernate GUEST: Trying to start debug mode GUEST: Just trying to debug a JUnit test with one breakpoint. Unfortunately after this error debugging session doesn't respond anymore. No threads are shown, breakpoint is never reached. Test displays as still running (lower right part of status line in NetBeans window). Have to klick close ("x") to get out of that. Repeating debug test file shows same problem over again. GUEST: Attempting to Debug a Test File. I'd recently switched from junit 3 to junit 4. The project is specified using maven. GUEST: test debug GUEST: debug test file GUEST: DEBUG GUEST: Debugging a JUnit Test file GUEST: Everytime I try and debug, I get this exception. I restarted netbeans, it did not help. it seems to happen on maven spring project. local debugging, remote port debugging or pid-attached debugging, all of those cause the exception. GUEST: Trying to debug test file in a maven project. (Some dependencies miss source.) lostmats: debug a unit test peter149: Trying to debug a maven project but the debugger fails start up. Process hangs. GUEST: Trying to debug a project. When I run Debug Test File I always get this errror. lostmats: debug a unittest GUEST: Try to debug a java code. This happened on both 6.9 beta and RC1. The project I run the debugger is managed by Maven on XP system. I have no problem debugging on Windows 7. GUEST: Debug a test file johanandren: Trying to run "debug test" in maven project. GUEST: Trying to run JUnit test for Maven project GUEST: Debugging a test file. johanandren: Tried to debug a test in a maven project (Command+shift+F6). GUEST: Just attempted to run a junit test case in debug mode Stacktrace: java.lang.NullPointerException at org.netbeans.api.debugger.ActionsManager.registerActionsProviders(ActionsManager.java:428) at org.netbeans.api.debugger.ActionsManager.initActionImpls(ActionsManager.java:446) at org.netbeans.api.debugger.ActionsManager.isEnabled(ActionsManager.java:260) at org.netbeans.modules.debugger.ui.actions.DebuggerAction.isEnabled(DebuggerAction.java:127) at org.netbeans.modules.debugger.ui.actions.DebuggerAction.access$000(DebuggerAction.java:73) at org.netbeans.modules.debugger.ui.actions.DebuggerAction$Listener.propertyChange(DebuggerAction.java:374)
Created attachment 120970 [details] stacktrace
Yes, this is a duplicate of issue #186523 and yes, it's already resolved. *** This bug has been marked as a duplicate of bug 186523 ***