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 162422 - NullPointerException at org.netbeans.api.debugger.DebuggerManager.registerBreakpoint
Summary: NullPointerException at org.netbeans.api.debugger.DebuggerManager.registerBre...
Status: RESOLVED WONTFIX
Alias: None
Product: javascript
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ deva
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-10 17:34 UTC by jsr
Modified: 2012-09-03 08:32 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 124028


Attachments
stacktrace (2.80 KB, text/plain)
2009-04-10 17:34 UTC, jsr
Details
stacktrace (775 bytes, text/plain)
2009-10-07 04:59 UTC, rdelaplante
Details
stacktrace (775 bytes, text/plain)
2009-10-07 14:34 UTC, rdelaplante
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jsr 2009-04-10 17:34:16 UTC
Build: NetBeans IDE 6.5.1 (Build 200903060201)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows XP, 5.1, x86

User Comments:
GUEST: setting a breakpoint in a web application



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.api.debugger.DebuggerManager.registerBreakpoint(DebuggerManager.java:528)
        at org.netbeans.api.debugger.DebuggerManager.addBreakpoint(DebuggerManager.java:520)
        at org.netbeans.modules.web.client.javascript.debugger.ui.breakpoints.NbJSBreakpointManager.addBreakpoint(NbJSBreakpointManager.java:131)
        at org.netbeans.modules.web.client.javascript.debugger.ui.breakpoints.NbJSBreakpointActionProvider.doAction(NbJSBreakpointActionProvider.java:81)
        at org.netbeans.api.debugger.ActionsManager.doAction(ActionsManager.java:168)
        at org.netbeans.modules.debugger.jpda.ui.actions.ToggleMethodFieldBreakpointAction.actionPerformed(ToggleMethodFieldBreakpointAction.java:121)
Comment 1 jsr 2009-04-10 17:34:20 UTC
Created attachment 79916 [details]
stacktrace
Comment 2 Martin Entlicher 2009-04-10 17:49:47 UTC
A defect in NbJSBreakpointManager, which provides a null breakpoint.

BTW: Why don't you have "debugger" subcomponent under "javascript" component?
     "debuggerjavascript" is not easy to find.
Comment 3 Exceptions Reporter 2009-05-06 01:05:46 UTC
This issue already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=124028
Comment 4 Exceptions Reporter 2009-09-18 22:26:47 UTC
This issue already has 23 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=124028
Comment 5 rdelaplante 2009-10-07 04:59:19 UTC
Build: NetBeans IDE 6.7 (Build 200906241340)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: SunOS, 5.11, x86

User Comments: 
I've been debugging my JSF application, setting breakpoints, applying code changes, trying the new changes, etc.

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.api.debugger.DebuggerManager.registerBreakpoint(DebuggerManager.java:528)
        at org.netbeans.api.debugger.DebuggerManager.addBreakpoint(DebuggerManager.java:520)
        at org.netbeans.modules.web.client.javascript.debugger.ui.breakpoints.NbJSBreakpointManager.addBreakpoint(NbJSBreakpointManager.java:131)
        at org.netbeans.modules.web.client.javascript.debugger.ui.breakpoints.NbJSBreakpointActionProvider.doAction(NbJSBreakpointActionProvider.java:81)
        at org.netbeans.spi.debugger.ActionsProvider$1.run(ActionsProvider.java:112)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577)
Comment 6 rdelaplante 2009-10-07 04:59:25 UTC
Created attachment 88958 [details]
stacktrace
Comment 7 rdelaplante 2009-10-07 14:34:32 UTC
Build: NetBeans IDE 6.7 (Build 200906241340)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: SunOS, 5.11, x86

User Comments: 
First I commented out some code that had a breakpoint in it.  Then I turned off the breakpoint for the commented out line by clicking the red square on the left.  This exception appeared. 

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.api.debugger.DebuggerManager.registerBreakpoint(DebuggerManager.java:528)
        at org.netbeans.api.debugger.DebuggerManager.addBreakpoint(DebuggerManager.java:520)
        at org.netbeans.modules.web.client.javascript.debugger.ui.breakpoints.NbJSBreakpointManager.addBreakpoint(NbJSBreakpointManager.java:131)
        at org.netbeans.modules.web.client.javascript.debugger.ui.breakpoints.NbJSBreakpointActionProvider.doAction(NbJSBreakpointActionProvider.java:81)
        at org.netbeans.spi.debugger.ActionsProvider$1.run(ActionsProvider.java:112)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577)
Comment 8 rdelaplante 2009-10-07 14:34:36 UTC
Created attachment 89013 [details]
stacktrace
Comment 9 Martin Entlicher 2012-09-03 08:32:02 UTC
A new implementation of JavaScript debugger is in trunk. Closing old issues.