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 164958 - NullPointerException: jspResourcePath
Summary: NullPointerException: jspResourcePath
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hejl
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-12 15:01 UTC by adam_myatt
Modified: 2009-10-27 16:15 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 143046


Attachments
stacktrace (2.97 KB, text/plain)
2009-05-12 15:01 UTC, adam_myatt
Details
stacktrace (2.97 KB, text/plain)
2009-05-12 15:02 UTC, adam_myatt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description adam_myatt 2009-05-12 15:01:39 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04
OS: Windows XP, 5.1, x86

User Comments:
adam_myatt: opened a java web project, then a class file in source editor

adam_myatt: set a debug breakpoint in a Java source file (not a JSP)



Stacktrace: 
java.lang.NullPointerException: jspResourcePath
        at org.netbeans.modules.j2ee.deployment.devmodules.api.JSPServletFinder.getServletResourcePath(JSPServletFinder.java:158)
        at org.netbeans.modules.web.debug.util.Utils.getServletClass(Utils.java:164)
        at org.netbeans.modules.web.debug.util.Utils.getClassFilter(Utils.java:176)
        at org.netbeans.modules.web.debug.breakpoints.JspLineBreakpoint.<init>(JspLineBreakpoint.java:100)
        at org.netbeans.modules.web.debug.breakpoints.JspLineBreakpoint.create(JspLineBreakpoint.java:130)
        at org.netbeans.modules.web.debug.actions.JspToggleBreakpointActionProvider.doAction(JspToggleBreakpointActionProvider.java:132)
Comment 1 adam_myatt 2009-05-12 15:01:49 UTC
Created attachment 81970 [details]
stacktrace
Comment 2 adam_myatt 2009-05-12 15:02:44 UTC
Build: NetBeans IDE 6.5 (Build 200811100001)
VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04
OS: Windows XP, 5.1, x86

User Comments: 
set a debug breakpoint in a Java source file (not a JSP)

Stacktrace: 
java.lang.NullPointerException: jspResourcePath
        at org.netbeans.modules.j2ee.deployment.devmodules.api.JSPServletFinder.getServletResourcePath(JSPServletFinder.java:158)
        at org.netbeans.modules.web.debug.util.Utils.getServletClass(Utils.java:164)
        at org.netbeans.modules.web.debug.util.Utils.getClassFilter(Utils.java:176)
        at org.netbeans.modules.web.debug.breakpoints.JspLineBreakpoint.<init>(JspLineBreakpoint.java:100)
        at org.netbeans.modules.web.debug.breakpoints.JspLineBreakpoint.create(JspLineBreakpoint.java:130)
        at org.netbeans.modules.web.debug.actions.JspToggleBreakpointActionProvider.doAction(JspToggleBreakpointActionProvider.java:132)
Comment 3 adam_myatt 2009-05-12 15:02:53 UTC
Created attachment 81971 [details]
stacktrace
Comment 4 Petr Hejl 2009-10-27 16:15:45 UTC
I don't think this can happen again with fixes made by mentlicher in issue 147776.