0 Replies Latest reply on Jul 29, 2008 5:03 AM by Kashif Nazar

    java.lang.IllegalStateException

    Kashif Nazar Newbie

      Hello All,

      I am implementing RichFaces in Portlets. I am getting this exception trace in the log file.

      javax.faces.FacesException: java.lang.IllegalStateException
       at com.sun.faces.portlet.LifecycleImpl$UpdateModelValuesPhase.execute(LifecycleImpl.java:675)
       at com.sun.faces.portlet.LifecycleImpl.phase(LifecycleImpl.java:299)
       at com.sun.faces.portlet.LifecycleImpl.execute(LifecycleImpl.java:216)
       at com.sun.faces.portlet.FacesPortlet.processAction(FacesPortlet.java:249)
       at com.sun.portal.portletcontainer.appengine.PortletAppEngineServlet.service(PortletAppEngineServlet.java:271)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
       at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
       at com.sun.portal.portletcontainer.appengine.PortletAppEngineFilter.doFilter(PortletAppEngineFilter.java:105)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
       at org.apache.catalina.core.ApplicationDispatcher.doInvoke(ApplicationDispatcher.java:853)
       at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
       at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:660)
       at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:578)
       at com.sun.portal.portletcontainer.impl.PortletContainer.invokePAE(PortletContainer.java:789)
       at com.sun.portal.portletcontainer.impl.PortletContainer.invokePAE(PortletContainer.java:672)
       at com.sun.portal.portletcontainer.impl.PortletContainer.executeAction(PortletContainer.java:309)
       at com.sun.portal.portletcontainer.invoker.WindowInvoker.processActionInternal(WindowInvoker.java:507)
       at com.sun.portal.portletcontainer.invoker.WindowInvoker.processAction(WindowInvoker.java:408)
       at com.sun.portal.portletcontainer.driver.PortletContent.executeAction(PortletContent.java:84)
       at com.sun.portal.portletcontainer.driver.DesktopServlet.executeProcessAction(DesktopServlet.java:404)
       at com.sun.portal.portletcontainer.driver.DesktopServlet.doGetPost(DesktopServlet.java:124)
       at com.sun.portal.portletcontainer.driver.DesktopServlet.doPost(DesktopServlet.java:97)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
       at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:290)
       at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:271)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:202)
       at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
       at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
       at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:94)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:206)
       at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
       at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:150)
       at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:632)
       at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:577)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:571)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1080)
       at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:272)
       at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:637)
       at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:568)
       at com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:813)
       at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:341)
       at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:263)
       at com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:214)
       at com.sun.enterprise.web.portunif.PortUnificationPipeline$PUTask.doTask(PortUnificationPipeline.java:380)
       at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:265)
       at com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:106)
      Caused by: java.lang.IllegalStateException
       at com.sun.faces.portlet.ExternalContextImpl.encodeNamespace(ExternalContextImpl.java:169)
       at org.ajax4jsf.component.UIPortlet.getClientId(UIPortlet.java:51)
       at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:670)
       at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
       at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:681)
       at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:650)
       at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:221)
       at org.ajax4jsf.component.AjaxViewRoot.processUpdates(AjaxViewRoot.java:428)
       at com.sun.faces.portlet.LifecycleImpl$UpdateModelValuesPhase.execute(LifecycleImpl.java:671)
       ... 53 more


      I am using Portlet Container by Open Portal. How can I resolve this exception? Please help me