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 115182 - java.lang.NullPointerException at JSFBeanCache.java:44
Summary: java.lang.NullPointerException at JSFBeanCache.java:44
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: JSF (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ potingwu
URL: http://statistics.netbeans.org/except...
Keywords:
: 116036 118257 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-10 19:52 UTC by _ cgarcia
Modified: 2008-02-06 18:20 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 3424


Attachments
stacktrace (2.35 KB, text/plain)
2007-09-10 19:53 UTC, _ cgarcia
Details
sample maven app (4.71 KB, application/x-compressed)
2007-12-04 15:25 UTC, Milos Kleint
Details
stacktrace (735 bytes, text/plain)
2008-02-04 17:24 UTC, orisun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ cgarcia 2007-09-10 19:52:46 UTC
Build: NetBeans IDE Dev (Build 070906)
VM: Java HotSpot(TM) Client VM, 1.6.0-b105
OS: Linux, 2.6.20-16-generic, i386

User Comments:
Comment 1 _ cgarcia 2007-09-10 19:53:04 UTC
Created attachment 48516 [details]
stacktrace
Comment 2 Andrei Badea 2007-10-15 17:20:43 UTC
Please describe what you were doing when the NPE occured, and perhaps attach a project which you can reproduce the issue
with. Thanks.

Comment 3 Andrei Badea 2007-10-16 14:44:45 UTC
*** Issue 118257 has been marked as a duplicate of this issue. ***
Comment 4 Petr Pisl 2007-10-18 21:16:10 UTC
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
Comment 5 Petr Pisl 2007-10-18 21:16:30 UTC
*** Issue 116036 has been marked as a duplicate of this issue. ***
Comment 6 fincatto 2007-11-14 18:14:22 UTC
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
Comment 7 Milos Kleint 2007-12-03 12:59:34 UTC
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.
Comment 8 Milos Kleint 2007-12-04 15:25:16 UTC
Created attachment 53846 [details]
sample maven app
Comment 9 Milos Kleint 2007-12-04 15:27:35 UTC
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.


Comment 10 orisun 2008-02-04 17:24:55 UTC
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: 
Comment 11 orisun 2008-02-04 17:24:59 UTC
Created attachment 56002 [details]
stacktrace
Comment 12 _ potingwu 2008-02-06 18:20:52 UTC
I have fixed it in the trunk:

changeset 89314949ebdf in main
details: http://hg.netbeans.org/main?cmd=changeset;node=89314949ebdf