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.
Summary: | java.lang.NullPointerException at JSFBeanCache.java:44 | ||
---|---|---|---|
Product: | javaee | Reporter: | _ cgarcia <cgarcia> |
Component: | JSF | Assignee: | _ potingwu <potingwu> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | mkleint, pjiricka |
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=3424 | ||
Issue Type: | DEFECT | Exception Reporter: | 3424 |
Attachments: |
stacktrace
sample maven app stacktrace |
Description
_ cgarcia
2007-09-10 19:52:46 UTC
Created attachment 48516 [details]
stacktrace
Please describe what you were doing when the NPE occured, and perhaps attach a project which you can reproduce the issue with. Thanks. *** Issue 118257 has been marked as a duplicate of this issue. *** Fixed in the trunk. /cvs/web/jsf/src/org/netbeans/modules/web/jsf/editor/jspel/JSFBeanCache.java,v <-- JSFBeanCache.java new revision: 1.6; previous revision: 1.5 *** Issue 116036 has been marked as a duplicate of this issue. *** I'm using the newest NB 6 RC1, and... java.lang.NullPointerException at org.netbeans.modules.web.jsf.editor.jspel.JSFBeanCache.getBeans(JSFBeanCache.java:74) at org.netbeans.modules.web.jsf.editor.jspel.JSFELExpression.findContext(JSFELExpression.java:103) at org.netbeans.modules.web.core.syntax.completion.ELExpression.parse(ELExpression.java:195) at org.netbeans.modules.web.jsf.editor.jspel.JSFJSPHyperlinkProvider.isHyperlinkPoint(JSFJSPHyperlinkProvider.java:138) at org.netbeans.lib.editor.hyperlink.HyperlinkOperation.findProvider(HyperlinkOperation.java:282) at org.netbeans.lib.editor.hyperlink.HyperlinkOperation.performHyperlinking(HyperlinkOperation.java:230) at org.netbeans.lib.editor.hyperlink.HyperlinkOperation.mouseMoved(HyperlinkOperation.java:215) at java.awt.AWTEventMulticaster.mouseMoved(AWTEventMulticaster.java:272) at java.awt.Component.processMouseMotionEvent(Component.java:5562) at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3153) at java.awt.Component.processEvent(Component.java:5286) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3984) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3819) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3905) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1791) at java.awt.Component.dispatchEvent(Component.java:3819) [catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) 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) Our JSF project have five faces-config files, properly configured in web.xml, and the version of JSF libs is the 1.1. The project works fine on NB 5.5.1. Tks a reporter claims it's happening with maven based project. let me know if you need any support from me to track the problem. garciac12, fincatto: a sample maven project demonstrating the problem would help. Created attachment 53846 [details]
sample maven app
Julien Martin was kind enough to provide a sample maven project with 100% reproducible test case. 1. open project (need maven support installed) 2. find the index.jsp in the Web pages subtree and open it. 3. try completion on the managed bean properties. -> exception occurs. Build: NetBeans IDE Dev (Build 200801100000) VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05 OS: Linux, 2.6.22-14-generic, i386 User Comments: Created attachment 56002 [details]
stacktrace
I have fixed it in the trunk: changeset 89314949ebdf in main details: http://hg.netbeans.org/main?cmd=changeset;node=89314949ebdf |