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 154901 - NullPointerException at org.netbeans.modules.web.project.WebActionProvider.getTargetNames
Summary: NullPointerException at org.netbeans.modules.web.project.WebActionProvider.ge...
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Trey Spiva
URL: http://statistics.netbeans.org/except...
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2008-12-08 09:56 UTC by martin_zmrhal
Modified: 2009-02-19 23:27 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 144042


Attachments
stacktrace (2.72 KB, text/plain)
2008-12-08 09:56 UTC, martin_zmrhal
Details
stacktrace (2.72 KB, text/plain)
2008-12-08 22:23 UTC, _ krystyna
Details
stacktrace (2.72 KB, text/plain)
2008-12-09 07:25 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description martin_zmrhal 2008-12-08 09:56:49 UTC
Build: NetBeans IDE Dev (Build 200812080201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-7-generic, i386

User Comments:
martin_zmrhal: Invoked debug file on index.jsp in freshly created webproject



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.web.project.WebActionProvider.getTargetNames(WebActionProvider.java:425)
        at org.netbeans.modules.web.project.WebActionProvider$2.run(WebActionProvider.java:238)
        at org.netbeans.modules.web.project.WebActionProvider.invokeAction(WebActionProvider.java:264)
        at org.netbeans.modules.project.ui.actions.FileCommandAction.actionPerformed(FileCommandAction.java:96)
        at org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed(LookupSensitiveAction.java:161)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
Comment 1 martin_zmrhal 2008-12-08 09:56:54 UTC
Created attachment 74681 [details]
stacktrace
Comment 2 martin_zmrhal 2008-12-08 10:06:23 UTC
Also reproducible with "run file" in .jsp context menu and with keyboard shortcut shift+F5, shift+F6.
Comment 3 martin_zmrhal 2008-12-08 10:14:18 UTC
Sorry, I have meant keyboard shortcuts Ctrl+Shift+F5 and Shift+F6
Comment 4 _ krystyna 2008-12-08 22:23:45 UTC
Build: NetBeans IDE Dev (Build 20081208162825)
VM: Java HotSpot(TM) Client VM, 11.0-b13, Java(TM) SE Runtime Environment, 1.6.0_10-rc-b26
OS: Windows XP, 5.1, x86

User Comments: 
opened an .html file in Favorites window and attempted a 'Debug File' action on that

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.web.project.WebActionProvider.getTargetNames(WebActionProvider.java:425)
        at org.netbeans.modules.web.project.WebActionProvider$2.run(WebActionProvider.java:238)
        at org.netbeans.modules.web.project.WebActionProvider.invokeAction(WebActionProvider.java:264)
        at org.netbeans.modules.project.ui.actions.FileCommandAction.actionPerformed(FileCommandAction.java:96)
        at org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed(LookupSensitiveAction.java:161)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
Comment 5 _ krystyna 2008-12-08 22:23:55 UTC
Created attachment 74725 [details]
stacktrace
Comment 6 _ krystyna 2008-12-09 00:49:02 UTC
Upping the priority -- we have lost functionality to run debug file on jsp or html files of a web project. 
Please fix for m1.
Comment 7 Martin Fousek 2008-12-09 07:24:50 UTC
Build: NetBeans IDE Dev (Build 200812080201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-9-generic, i386

User Comments: 
- want to debug JSP page (with some breakpoints)

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.web.project.WebActionProvider.getTargetNames(WebActionProvider.java:425)
        at org.netbeans.modules.web.project.WebActionProvider$2.run(WebActionProvider.java:238)
        at org.netbeans.modules.web.project.WebActionProvider.invokeAction(WebActionProvider.java:264)
        at org.netbeans.modules.project.ui.actions.FileCommandAction.actionPerformed(FileCommandAction.java:96)
        at org.netbeans.modules.project.ui.actions.LookupSensitiveAction.actionPerformed(LookupSensitiveAction.java:161)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
Comment 8 Martin Fousek 2008-12-09 07:25:00 UTC
Created attachment 74732 [details]
stacktrace
Comment 9 Trey Spiva 2008-12-09 16:37:00 UTC
Fixed

http://hg.netbeans.org/main/rev/3cac43de52dc
Comment 10 Trey Spiva 2008-12-09 16:37:37 UTC
The issue is fixed