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 43874 - NPE when Step over / Step Into in jsp
Summary: NPE when Step over / Step Into in jsp
Status: CLOSED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 4.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Jan Jancura
URL:
Keywords:
: 43897 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-05-26 13:06 UTC by Martin Grebac
Modified: 2006-03-24 09:50 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 Martin Grebac 2004-05-26 13:06:10 UTC
java.lang.NullPointerException
org.netbeans.modules.debugger.jpda.actions.StepActionProvider.exec(StepActionProvider.java:185)
org.netbeans.modules.debugger.jpda.util.Operator$1.run(Operator.java:113)
Comment 1 Martin Grebac 2004-05-26 13:42:11 UTC
S**t, problem in my local sources.
Comment 2 Martin Grebac 2004-05-26 13:58:08 UTC
Well, not a problem in my sources. I was able to reproduce in cont.
build with this scenario:

1. Create web project
2. Put breakpoint into index.jsp
3. Run main prj in dbg
4. When stopped on bp, press F7 (Step into)
First problem - debugger does step to other line, instead the
application runs and jsp is shown in browser
5. Refresh page in browser  - debugger stops on bp
6. Press F8 (Step over)

NPE is written to the console, page is visible in the browser and
application runs
 
Comment 3 Jan Jancura 2004-05-26 13:58:32 UTC
Regardless your doubts it should be fixed now:

Checking in
src/org/netbeans/modules/debugger/jpda/actions/StepActionProvider.java;
/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/actions/StepActionProvider.java,v
 <--  StepActionProvider.java
new revision: 1.5; previous revision: 1.4
done
Comment 4 Jan Jancura 2004-05-26 13:59:29 UTC
Regardless your doubts it should be fixed now:

Checking in
src/org/netbeans/modules/debugger/jpda/actions/StepActionProvider.java;
/cvs/debuggerjpda/src/org/netbeans/modules/debugger/jpda/actions/StepActionProvider.java,v
 <--  StepActionProvider.java
new revision: 1.5; previous revision: 1.4
done
Comment 5 Jan Jancura 2004-05-26 15:33:17 UTC
Second try:
RCS file:
/cvs/web/jspdebug/src/META-INF/debugger/netbeans-JPDASession/org.netbeans.spi.debugger.jpda.EngineContextProvider,v
done
Checking in
src/META-INF/debugger/netbeans-JPDASession/org.netbeans.spi.debugger.jpda.EngineContextProvider;
/cvs/web/jspdebug/src/META-INF/debugger/netbeans-JPDASession/org.netbeans.spi.debugger.jpda.EngineContextProvider,v
 <--  org.netbeans.spi.debugger.jpda.EngineContextProvider
initial revision: 1.1
done
Processing log script arguments...
More commits to come...
RCS file:
/cvs/web/jspdebug/src/org/netbeans/modules/web/debug/EngineContextProviderImpl.java,v
done
Checking in
src/org/netbeans/modules/web/debug/EngineContextProviderImpl.java;
/cvs/web/jspdebug/src/org/netbeans/modules/web/debug/EngineContextProviderImpl.java,v
 <--  EngineContextProviderImpl.java
initial revision: 1.1
done
Comment 6 Jan Jancura 2004-05-26 16:17:16 UTC
*** Issue 43897 has been marked as a duplicate of this issue. ***
Comment 7 Martin Grebac 2004-05-26 17:09:54 UTC
verified - works ok now - thanks for the code