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 168235

Summary: NullPointerException at org.netbeans.modules.web.core.JspEditorWarmUpTask.isWebProjectOpened
Product: projects Reporter: Jesse Glick <jglick>
Component: AutoprojectAssignee: David Konecny <dkonecny>
Status: RESOLVED FIXED    
Severity: blocker CC: dkonecny, issues, jglick, pjiricka
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=153439
Issue Type: DEFECT Exception Reporter: 153439
Bug Depends on: 169591    
Bug Blocks: 156889    
Attachments: stacktrace
stacktrace
patch for release67

Description Jesse Glick 2009-07-07 15:13:43 UTC
Build: NetBeans IDE Dev (Build 090707)
VM: Java HotSpot(TM) Client VM, 1.5.0_18-b02, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_18-b02
OS: Linux, 2.6.28-13-generic, i386

User Comments:
jglick: Just started IDE. Not using web apps.



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.web.core.JspEditorWarmUpTask.isWebProjectOpened(JspEditorWarmUpTask.java:342)
        at org.netbeans.modules.web.core.JspEditorWarmUpTask.run(JspEditorWarmUpTask.java:143)
        at org.netbeans.core.WarmUpSupport.run(WarmUpSupport.java:87)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1070)
Comment 1 Jesse Glick 2009-07-07 15:13:53 UTC
Created attachment 84451 [details]
stacktrace
Comment 2 Jesse Glick 2009-07-09 15:56:01 UTC
Build: NetBeans IDE Dev (Build 090707)
VM: Java HotSpot(TM) Client VM, 1.5.0_18-b02, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_18-b02
OS: Linux, 2.6.28-13-generic, i386

User Comments: 
Restarting IDE with cobertura open as an autoproject.

Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.web.core.JspEditorWarmUpTask.isWebProjectOpened(JspEditorWarmUpTask.java:342)
        at org.netbeans.modules.web.core.JspEditorWarmUpTask.run(JspEditorWarmUpTask.java:143)
        at org.netbeans.core.WarmUpSupport.run(WarmUpSupport.java:87)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:602)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1070)
Comment 3 Jesse Glick 2009-07-09 15:56:07 UTC
Created attachment 84554 [details]
stacktrace
Comment 4 Jesse Glick 2009-07-09 15:57:47 UTC
Possible dupe of issue #156889?
Comment 5 David Konecny 2009-07-13 11:13:45 UTC
If it is AutoProj then it most probably is dupe. I will try to look at AP this week.

*** This issue has been marked as a duplicate of 156889 ***
Comment 6 Jesse Glick 2009-07-14 15:12:24 UTC
Reopening to make sure this gets tracked. Will probably need to backport whatever changes you make to autoproject.web to
the release67/contrib repo (or you can just make them directly there in the autoproject_fixes branch).
Comment 7 Jesse Glick 2009-07-16 16:46:26 UTC
So is this FIXED in contrib #6fe109df6b87?
Comment 8 David Konecny 2009-07-17 09:17:44 UTC
Fixed by contrib #6fe109df6b87 and contrib #2e1a8bc2576d
Comment 9 David Konecny 2009-07-17 09:56:14 UTC
Created attachment 84879 [details]
patch for release67
Comment 10 David Konecny 2009-07-17 09:57:25 UTC
Jesse, could you verify the fix please and if ok apply attached patch to release67. I created patch against
autoproject_fixes branch. Thx.
Comment 11 Jesse Glick 2009-07-23 21:26:55 UTC
Have not found any problems yet with trunk version.
Comment 12 Jesse Glick 2009-07-23 21:37:15 UTC
I take that back. I got

java.lang.NullPointerException
        at org.netbeans.modules.autoproject.web.WebModuleImpl.getMetadataModel(WebModuleImpl.java:114)
        at org.netbeans.modules.web.api.webmodule.WebModule.getMetadataModel(WebModule.java:250)
        at org.netbeans.modules.web.project.ui.SetExecutionUriAction.isServletFile(SetExecutionUriAction.java:198)
        at org.netbeans.modules.web.project.ui.SetExecutionUriAction.enable(SetExecutionUriAction.java:111)
        at org.openide.util.actions.NodeAction.isEnabled(NodeAction.java:206)
        at org.openide.actions.ToolsAction.generate(ToolsAction.java:173)
        at org.openide.actions.ToolsAction.access$200(ToolsAction.java:74)
        at org.openide.actions.ToolsAction$Inline.synchMenuPresenters(ToolsAction.java:243)
        at org.openide.actions.ToolsAction$Inline.getMenuPresenters(ToolsAction.java:250)
        at org.openide.awt.DynaMenuModel.loadSubmenu(DynaMenuModel.java:98)
        at org.openide.awt.MenuBar$LazyMenu$MenuFolder.createInstance(MenuBar.java:688)
        at org.openide.loaders.FolderInstance.defaultProcessObjectsFinal(FolderInstance.java:870)
        at org.openide.loaders.FolderInstance$1R.run(FolderInstance.java:735)
        at org.openide.util.Task.run(Task.java:249)
[catch] at org.netbeans.modules.openide.loaders.AWTTask.run(AWTTask.java:70)
        at org.netbeans.modules.openide.loaders.AWTTask$Processor.run(AWTTask.java:111)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
        at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:117)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

after restarting with jspwiki open. Not sure if it is related, but may be. It does not appear that any code ever writes
to cpProvider. Bug in constructor?
Comment 13 David Konecny 2009-07-28 22:56:54 UTC
yeap, cpProvider initialization was missing. contrib 6a8f4441be4e. it is different issue
Comment 14 Jesse Glick 2009-07-30 16:47:05 UTC
Backported in release67/contrib #8708ae05d673 and release67/contrib #ae5b4e2eda62, will push to AU.