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 16610 - Exception in Request processor while setting Breakpoint in JSP
Summary: Exception in Request processor while setting Breakpoint in JSP
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Code (show other bugs)
Version: -FFJ-
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: issues@debugger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-16 13:21 UTC by peterp
Modified: 2003-06-30 17:31 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 peterp 2001-10-16 13:21:17 UTC
Build 011015_2 (trunk). When trying to set breakpoint in JSP I receive this 
exception:

Tue Oct 16 14:02:30 PDT 2001: java.lang.NullPointerException: Posted StackTrace
Annotation: Exception occurred in Request Processor
org.openide.util.RequestProcessor$Holder: Posted StackTrace(task 
org.netbeans.core.ModuleActions$1@523fa1 [-2030, 1, -1])
        at org.openide.util.RequestProcessor$Task.createHolder
(RequestProcessor.java:322)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:100)
        at org.openide.util.RequestProcessor.post(RequestProcessor.java:73)
        at org.netbeans.core.ModuleActions.invokeAction(ModuleActions.java:98)
        at org.netbeans.core.windows.frames.NbFocusManager.processKeyStroke
(NbFocusManager.java:241)
        at org.netbeans.core.windows.frames.NbFocusManager.processEvent
(NbFocusManager.java:200)
        at org.netbeans.core.windows.frames.NbFocusManager$1.run
(NbFocusManager.java:167)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:131)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:98)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
 
Tue Oct 16 14:02:30 PDT 2001: java.lang.NullPointerException: null
java.lang.NullPointerException
        at org.netbeans.modules.debugger.support.BreakpointSupport.setLine
(BreakpointSupport.java:377)
        at 
org.netbeans.modules.debugger.support.DebuggerSupport.createBreakpoint
(DebuggerSupport.java:302)
        at org.netbeans.modules.web.debug.JspEditor$1.performAction
(JspEditor.java:183)
        at org.openide.util.actions.CallbackSystemAction.performAction
(CallbackSystemAction.java:102)
        at org.openide.util.actions.CallableSystemAction.actionPerformed
(CallableSystemAction.java:66)
        at org.netbeans.core.ModuleActions$1.run(ModuleActions.java:85)
        at org.openide.util.Task.run(Task.java:152)
[catch] at org.openide.util.RequestProcessor$ProcessorThread.run
(RequestProcessor.java:611)

Breakpoint is not set. Tried on Windows 98 with JDK 1.3.1b-24 and Windows 2000 
with JDK 1.3.1_01.
Comment 1 Jan Zajicek 2001-10-17 08:40:51 UTC
Moving to debugger module.
Comment 2 Daniel Prusa 2001-10-17 11:04:07 UTC
Is it possible to reproduce this exception reliably ? (Trying it, I 
have not been successful.) If so, can you describe the needed steps 
in details, please ?
Comment 3 peterp 2001-10-17 12:12:23 UTC
Even in current build:

1) have JSP with this content:

<%@page contentType="text/html"%>
<html>
<head><title>JSP Page</title></head>
<body>

<%-- <jsp:useBean id="beanInstanceName" scope="session" class="package.class" /> --%>
<%-- <jsp:getProperty name="beanInstanceName"  property="propertyName" /> --%>
aaa
<H1> bb </H1>
<H2> ccc </H2>
</body>
</html>

2) go to <H1> line
3) press Shift-F8

That's it.
Comment 4 Daniel Prusa 2001-10-17 15:02:15 UTC
NPE fixed in main trunk.
Comment 5 Jan Stola 2001-10-19 14:45:16 UTC
Verified in Netbeans build 20011019.
Comment 6 Quality Engineering 2003-06-30 17:31:06 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.