You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Chandra Sekhar <sv...@lasersoft.co.in> on 2006/07/28 09:47:58 UTC
Null pointer Exception Invoking Faces Servlet
Hi,
I am finding a Null pointer Exception on Invoking the Faces Servlet.Can u please solve for me the same.
It's getting Rolled back and when the service method is invoked.
I'm putting the Exception to you. Needed it urgently.
[7/28/06 13:12:04:781 IST] 0000002f ServletWrappe E SRVE0068E: Could not invoke the service() method on servlet Faces Servlet. Exception thrown : java.lang.NullPointerException
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1032)
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043)
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043)
at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:165)
at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:221)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:301)
at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:129)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:82)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
[7/28/06 13:12:04:875 IST] 0000002f LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
[7/28/06 13:12:05:031 IST] 0000002f WebApp E SRVE0026E: [Servlet Error]-[Faces Servlet]: java.lang.NullPointerException
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1032)
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043)
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043)
at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:165)
at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:221)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:301)
at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:129)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:82)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
Regds,
Chandru.
Re: Null pointer Exception Invoking Faces Servlet
Posted by Chandra Sekhar <sv...@lasersoft.co.in>.
Hi,
I dont have any Custom Component.This is for one of my Colleague's.I resolved my isssue then, by rebuilding the backing Bean and Changing by a separate Method name.
Regds,
Chandru.
----- Original Message -----
From: Cagatay Civici
To: MyFaces Discussion
Sent: Friday, July 28, 2006 1:44 PM
Subject: Re: Null pointer Exception Invoking Faces Servlet
Hi,
This happens in a postback right? Had a similar issue once,
Do you have a custom component of your own?
Cagatay
On 7/28/06, Chandra Sekhar <sv...@lasersoft.co.in> wrote:
Hi,
I am finding a Null pointer Exception on Invoking the Faces Servlet.Can u please solve for me the same.
It's getting Rolled back and when the service method is invoked.
I'm putting the Exception to you. Needed it urgently.
[7/28/06 13:12:04:781 IST] 0000002f ServletWrappe E SRVE0068E: Could not invoke the service() method on servlet Faces Servlet. Exception thrown : java.lang.NullPointerException
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1032)
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043)
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043)
at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:165)
at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:221)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:301)
at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:129)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:82)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
[7/28/06 13:12:04:875 IST] 0000002f LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
[7/28/06 13:12:05:031 IST] 0000002f WebApp E SRVE0026E: [Servlet Error]-[Faces Servlet]: java.lang.NullPointerException
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1032)
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043)
at javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1043)
at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState(JspStateManagerImpl.java:165)
at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:221)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:301)
at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:129)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:82)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
Regds,
Chandru.
Re: Null pointer Exception Invoking Faces Servlet
Posted by Cagatay Civici <ca...@gmail.com>.
Hi,
This happens in a postback right? Had a similar issue once,
Do you have a custom component of your own?
Cagatay
On 7/28/06, Chandra Sekhar <sv...@lasersoft.co.in> wrote:
>
> Hi,
>
> I am finding a Null pointer Exception on Invoking the Faces Servlet.Can u
> please solve for me the same.
>
>
> It's getting Rolled back and when the service method is invoked.
>
> I'm putting the Exception to you. Needed it urgently.
>
>
>
> [7/28/06 13:12:04:781 IST] 0000002f ServletWrappe E SRVE0068E: Could not
> invoke the service() method on servlet Faces Servlet. Exception thrown :
> java.lang.NullPointerException
> at javax.faces.component.UIComponentBase.processRestoreState(
> UIComponentBase.java:1032)
> at javax.faces.component.UIComponentBase.processRestoreState(
> UIComponentBase.java:1043)
> at javax.faces.component.UIComponentBase.processRestoreState(
> UIComponentBase.java:1043)
> at
> org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState
> (JspStateManagerImpl.java:165)
> at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(
> JspStateManagerImpl.java:221)
> at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(
> JspViewHandlerImpl.java:301)
> at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(
> LifecycleImpl.java:129)
> at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
> :82)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
> at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(
> ServletWrapper.java:1212)
> at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(
> ServletWrapper.java:629)
> at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(
> CacheServletWrapper.java:80)
> at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java
> :1657)
> at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java
> :77)
> at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(
> HttpInboundLink.java:421)
> at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(
> HttpInboundLink.java:367)
> at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(
> HttpICLReadCallback.java:94)
> at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(
> WorkQueueManager.java:548)
> at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(
> WorkQueueManager.java:601)
> at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(
> WorkQueueManager.java:934)
> at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(
> WorkQueueManager.java:1021)
> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
>
> [7/28/06 13:12:04:875 IST] 0000002f LocalTranCoor E WLTC0017E: Resources
> rolled back due to setRollbackOnly() being called.
> [7/28/06 13:12:05:031 IST] 0000002f WebApp E SRVE0026E: [Servlet
> Error]-[Faces Servlet]: java.lang.NullPointerException
> at javax.faces.component.UIComponentBase.processRestoreState(
> UIComponentBase.java:1032)
> at javax.faces.component.UIComponentBase.processRestoreState(
> UIComponentBase.java:1043)
> at javax.faces.component.UIComponentBase.processRestoreState(
> UIComponentBase.java:1043)
> at
> org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreComponentState
> (JspStateManagerImpl.java:165)
> at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(
> JspStateManagerImpl.java:221)
> at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(
> JspViewHandlerImpl.java:301)
> at org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(
> LifecycleImpl.java:129)
> at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java
> :82)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
> at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(
> ServletWrapper.java:1212)
> at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(
> ServletWrapper.java:629)
> at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(
> CacheServletWrapper.java:80)
> at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java
> :1657)
> at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java
> :77)
> at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(
> HttpInboundLink.java:421)
> at
> com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(
> HttpInboundLink.java:367)
> at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(
> HttpICLReadCallback.java:94)
> at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(
> WorkQueueManager.java:548)
> at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(
> WorkQueueManager.java:601)
> at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(
> WorkQueueManager.java:934)
> at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(
> WorkQueueManager.java:1021)
> at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1332)
>
>
>
> Regds,
> Chandru.
>