nullpointerexception « IceFaces « JSF Q&A





1. Portletfaces Bridge, Null pointer exception    stackoverflow.com

I faced problem in Icefaces portlet using portletfaces bridge inside liferay. the problem is when I open the browser for the first time I got null pointer exception. for example i ...

2. ICEFaces MenuItem throwing NullPointerException    seamframework.org

10:55:27,250 ERROR [lifecycle] JSF1054: (Phase ID: APPLY_REQUEST_VALUES 2, View ID: /BairroEdit.xhtml) Exception thrown during phase execution: javax.faces.even t.PhaseEvent[source=com.sun.faces.lifecycle.LifecycleImpl@1d26b41] 10:55:27,250 ERROR [[Blocking Servlet]] Servlet.service() for servlet Blocking Servlet threw exception java.lang.RuntimeException: no message available at com.icesoft.faces.webapp.http.servlet.MainServlet.service(MainServlet.java:177) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at com.icesoft.faces.webapp.xmlhttp.BlockingServlet.service(BlockingServlet.java:56) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83) at org.jboss.seam.web.RewriteFilter.doFilter(RewriteFilter.java:63) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73) at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:73) at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:40) ...

4. NullPointerException with selectManyCheckboxes    icefaces.org

SelectItemGroup group1 = new SelectItemGroup("label1"); group1.setValue(new String("label1")); SelectItemGroup group2 = new SelectItemGroup("label2"); group1.setValue(new String("label2")); SelectItem item0 = new SelectItem("item0"); SelectItem item1 = new SelectItem("item1"); SelectItem item2 = new SelectItem("item2"); SelectItem item3 = new SelectItem("item3"); SelectItem[] arr1 = new SelectItem[2]; arr1[0] = item0; arr1[1] = item1; SelectItem[] arr2 = new SelectItem[2]; arr2[0] = item2; arr2[1] = item3; group1.setSelectItems(arr1); group2.setSelectItems(arr2); riskList = new ...





10. NullPointerException from SelectInputTextRenderer    icefaces.org

I a selectInputText component that renders fine once, but when I process an event, which changes the object the selectInputText is pulling data from, I get this NPE. I verified through the debugger that none of the values specified as parameters to selectInputText are null. 2006-05-04 17:49:04,453 DEBUG [com.icesoft.faces.webapp.xmlhttp.BlockingServlet] Exception thrown from BlockingServlet. null java.lang.NullPointerException at com.icesoft.faces.component.selectinputtext.SelectInputTextRenderer.encodeChildren(Unknown Source) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701) at ...

12. NullPointerException in OutputChartRenderer    icefaces.org

Starting from the existing Component Showcase chart example I try to make my own and i get the error below: Where should I start looking? java.lang.NullPointerException at com.icesoft.faces.component.outputchart.OutputChartRenderer.encodeBegin(OutputChartRenderer.java:103) at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:703) at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:356) at com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:96) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721) at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:358) at com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:96) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721) at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:358) at com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:365) at com.icesoft.faces.renderkit.dom_html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:96) at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721) at com.icesoft.faces.component.util.CustomComponentUtils.renderChild(CustomComponentUtils.java:339) at com.icesoft.faces.component.paneltabset.PanelTabSetRenderer.writeTabCell(PanelTabSetRenderer.java:924) at com.icesoft.faces.component.paneltabset.PanelTabSetRenderer.encodeEnd(PanelTabSetRenderer.java:421) at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:740) at com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:528) at ...

14. Row selection null pointer exception    icefaces.org

15. IceFaces and Tomcat issue (NullPointerException)    icefaces.org

Although, the Push server is not necessary, I would deploy it and have a look at the results. My tests with the book sources showed that even with simple AJAX Push configurations (a single app besides the push server) deliver better results. Maybe we have implementation problems with the 1.8.x releases, or the push server architecture is simply more stable.

16. NullPointerException using ice:inputFile icefaces 1.8.1    icefaces.org

I have upgraded to 1.8.2 with the same issue. I have downloaded the source code for further investigation. Can anyone give any clue into why I'd get a null pointer on the highlighted line below? I guess I'll be on my own on this one and will be putting some debug in to try and find the issue. Again, this is ...





17. a graphic image throws a null pointer EXCEPTION    icefaces.org

Greetings everybody. I got a strange matter here with the actually I used this attributes millions of times before (not really millions) a .. a little bit lesser. :) And I have found nothing confusing, except this time it always thorws me that Exception Sep 16, 2010 12:53:57 PM com.icesoft.faces.component.ext.renderkit.ImageRenderer processSrcAttribute SEVERE: The value of graphicImage component is missing java.lang.NullPointerException ...

21. NullPointerException when uploading war file using ACE components to Glassfish 3.1    icefaces.org

I'm getting this message when uploading a war file that include .xhtml pages that use the dateTimeEntry ACE component: [#|2011-05-15T21:43:56.427-0500|INFO|glassfish3.1|javax.enterprise.resource.webcontainer.jsf.context|_ThreadID=35;_ThreadName=Thread-1;|Exception when handling error trying to reset the response. java.lang.NullPointerException at org.icefaces.impl.application.PropagatingNavigationHandler.handleNavigation(PropagatingNavigationHandler.java:86) at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130) ... The war file is (as far as I can tell) uploaded correctly and the dateTimeEntry component indeed works. But the message is worrysome, any pointers in how ...

24. NullPointerException    icefaces.org

Hi, I'm trying to get started with the demos and tutorials. I have a tomcat 5.5 straight out of the box, and tried to deploy the sample apps. When running, I get a nullpointerexception. Then I tried to build the tutorials with the tomcat55=true option and got the same error. Does anyone know what I'm missing? The getting started guide didn't ...

25. NullPointerException: Missing Form - MenuBar    icefaces.org

I'm using MenuBar component dinamically populated, but it throws the exception: 11:47:50,687 INFO [STDOUT] SendUpdates Exception 1 java.lang.NullPointerExcepti on: Missing Form - the UIComponent of type [class com.icesoft.faces.component.me nubar.MenuItem] requires a containing form. 11:47:50,687 ERROR [STDERR] java.lang.NullPointerException: Missing Form - the U IComponent of type [class com.icesoft.faces.component.menubar.MenuItem] requires a containing form. ... My code is: ... ...

28. NullPointerException when upload file    icefaces.org

I have got a HTTP Status 500 exception when uploading file via the ice face component. I am using 1.5.2 version. Any clue of what is the issue? java.lang.NullPointerException org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStream.java:967) org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:887) java.io.InputStream.read(Unknown Source) org.apache.commons.fileupload.util.Streams.copy(Streams.java:94) org.apache.commons.fileupload.util.Streams.copy(Streams.java:64) org.apache.commons.fileupload.MultipartStream.readBodyData(MultipartStream.java:593) org.apache.commons.fileupload.MultipartStream.discardBodyData(MultipartStream.java:619) org.apache.commons.fileupload.MultipartStream.skipPreamble(MultipartStream.java:638) com.icesoft.faces.component.inputfile.DiskFileUpload.parseRequest(DiskFileUpload.java:116) com.icesoft.faces.component.inputfile.FileUploadServlet.processMultipartContent(FileUploadServlet.java:163) com.icesoft.faces.component.inputfile.FileUploadServlet.doPost(FileUploadServlet.java:149) javax.servlet.http.HttpServlet.service(HttpServlet.java:709) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) java.lang.reflect.Method.invoke(Unknown Source) org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) java.security.AccessController.doPrivileged(Native Method) javax.security.auth.Subject.doAsPrivileged(Unknown Source) org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)

29. Timezone6 Example (using Facelets) throwing NullPointerException    icefaces.org

I am running icefaces 1.6 with Jboss 4.2 GA. I have compiled and deployed the Timezone6 example. I have just copied the web.xml and faces-config.xml from the tutorial folder. The jars in the WEB-INF/lib folder are: icefaces-comps.jar icefaces.jar icefaces-facelets.jar commons-logging.jar commons-fileupload.jar commons-el.jar commons-discovery.jar commons-digester.jar commons-collections.jar commons-beanutils.jar backport-util-concurrent.jar krysalis-jCharts-1.0.0-alpha-1.jar el-ri.jar Whenever i navigate to the page (e.g. http://localhost:8080/timezone6/), i get the following ...

31. just-ice.jar: java.lang.NullPointerException at javax.faces.component.UIComponentBase.encodeBegin    icefaces.org

Hi! I try to add ICEfaces 1.6.1 to my Webapp for some specific pages. All other pages should remain as they are. According to http://www.icefaces.org/docs/v1_6_0/htmlguide/devguide/keyConcepts12.html#1043744 I have to replace icefaces.jar with just-ice.jar and everything will be fine. But calling an .icefaces-page causes a very long stacktrace: Code: 2007-11-13 15:17:01,889 ERROR Parser:139 - Failed to execute JSP lifecycle. java.lang.NullPointerException at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:703) at ...

34. NullPointerException: FacesContextFactoryImpl.getFacesContext(...)    icefaces.org

Hi all I am a newbie to icefaces and I tried to implement a simple example: My web.xml is the following one: Application Title index.jsp javax.faces.STATE_SAVING_METHOD server javax.faces.CONFIG_FILES /WEB-INF/faces-config.xml com.sun.faces.config.ConfigureListener Faces Servlet javax.faces.webapp.FacesServlet 1 ...

35. dataPaginator / NullPointerException    icefaces.org

I am new to IceFaces, so my question may be naive, but I could not find the answer after searching the forum. After adding the paginator to a simple jsp file with a single table, the page gives error when I click on the button "next". Below are my jsp page and the error. Any advice is greatly appreciated. Thanks, Vu ...

39. BlockingServlet NullPointerException    icefaces.org

40. The NullPointerException of Ice:inputFile component    icefaces.org

When uploaded files, I got the java.lang.NullPointerException(the following are details about it) and displayed the server was not connected. But when connected again, the page displayed that the file was uploaded 100%. Generally, when first uploaded files, the component work well. Only the second time and the third time uploaded files would result exception. Plus, I use the Tomcat 5.5 and ...

41. FacesContextFactoryImpl throws NullPointerException    icefaces.org

I am trying to get ICEfaces 1.7.1 running with Spring 2.5.5 and Spring Web Flow 2.0.0 in a JSF 1.1 environment on Websphere AS 6.0. I have configured web.xml, faces-config.xml etc. according to the swf-booking-faces example found on the ICEfaces SVN repository. However, when I make my first request I get the NullPointerException seen at the bottom of this post. This ...