IllegalStateException. Why?

Hi, I have a page which renders different panels depending on user input. Everything works fine on the initial go around however when i leave that page and then come back to it i get the following exception and i have no idea why or what it means.
phase(RESTORE_VIEW 1,com.sun.faces.context.FacesContextImpl@289875) threw exception: java.lang.IllegalStateException null
org.apache.coyote.tomcat5.CoyoteResponseFacade.sendError(CoyoteResponseFacade.java:406)
org.apache.shale.remoting.impl.AbstractResourceProcessor.sendNotModified(AbstractResourceProcessor.java:528)
org.apache.shale.remoting.impl.AbstractResourceProcessor.process(AbstractResourceProcessor.java:107)
org.apache.shale.remoting.faces.RemotingPhaseListener.afterPhase(RemotingPhaseListener.java:102)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:278)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:255)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:207)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:249)
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)
phase(RESTORE_VIEW 1,com.sun.faces.context.FacesContextImpl@8f2e81) threw exception: java.lang.IllegalStateException null
org.apache.coyote.tomcat5.CoyoteResponseFacade.sendError(CoyoteResponseFacade.java:406)
org.apache.shale.remoting.impl.AbstractResourceProcessor.sendNotModified(AbstractResourceProcessor.java:528)
org.apache.shale.remoting.impl.AbstractResourceProcessor.process(AbstractResourceProcessor.java:107)
org.apache.shale.remoting.faces.RemotingPhaseListener.afterPhase(RemotingPhaseListener.java:102)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:278)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:255)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:207)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:249)
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)
phase(RESTORE_VIEW 1,com.sun.faces.context.FacesContextImpl@36197d) threw exception: java.lang.IllegalStateException null
org.apache.coyote.tomcat5.CoyoteResponseFacade.sendError(CoyoteResponseFacade.java:406)
org.apache.shale.remoting.impl.AbstractResourceProcessor.sendNotModified(AbstractResourceProcessor.java:528)
org.apache.shale.remoting.impl.AbstractResourceProcessor.process(AbstractResourceProcessor.java:107)
org.apache.shale.remoting.faces.RemotingPhaseListener.afterPhase(RemotingPhaseListener.java:102)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:278)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:398)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:217)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:255)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:188)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:81)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:207)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:611)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:564)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:558)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1067)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:249)
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.doProcess(DefaultProcessorTask.java:549)
com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:790)
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:326)
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:248)
com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:199)
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
com.sun.enterprise.web.connector.grizzly.ssl.SSLWorkerThread.run(SSLWorkerThread.java:93)Can anyone give me a hand? any help would be appreciated.

I am not familiar with Shale but you need to look there right? Shale has installed a phase listener. You are in the Restore View phase of the JSF lifecycle. Shale is executing a sendNotModified method which looks like it is try to resend the response, thus illegal state exception.

Similar Messages

  • Why is IllegalStateException thrown in this Java Code Snippet ?

    This is one of the questions in a mock test.
    void waitForSignal()
        Object obj=new Object();
        synchronized(Thread.currentThread())
               obj.wait();
               obj.notify();
    Which statement is true ?
    A. This code may throw and InterruptedException
    B. ThHis code may throw and IllegalStateEXception
    C. This code may throw and TimeOuException after 10  minutes
    D. This code will not compile unless "obj.wait()" is replaced with "((Tread)obj)
         .wait()"
    E. Reversing the order of obj.wait() and obj.notify() may cause this method    to         complete normally
    Answer : BSo why won't the code throw interrupted exception and throws a illegal state exception.
    Also,some pointer to thread's wait() and notify() would help greatly.
    Thank you for your consideration.

    You must have the lock on an object before you can call wait or notify. The code doesn't synchronize on obj.
    Kaj

  • Java.lang.IllegalStateException: internal assert: why is web.xml jar entry null?

    Hi,
    When I use j2eeappreg.bat to deploy application, I got the following error:
    Connected to LDAP server on BJI02 port 389
    java.lang.IllegalStateException: internal assert: why is web.xml jar entry
    null?
    at com.kivasoft.util.Debug.assert(Unknown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.handleModules
    (Unkno
    wn Source)
    at
    com.netscape.server.deployment.ApplicationXmlUtil.parseApplicationFro
    mDOM(Unknown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.xmlToDescriptor
    (Unk
    nown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.xmlToDescriptor
    (Unk
    nown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.xmlToDescriptor
    (Unk
    nown Source)
    at com.netscape.server.deployment.J2eeAppReg.run(Unknown Source)
    at com.netscape.server.deployment.J2eeAppReg.main(Unknown Source)
    java.lang.IllegalStateException: internal assert: why is web.xml jar entry
    null?
    at com.kivasoft.util.Debug.assert(Unknown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.handleModules
    (Unkno
    wn Source)
    at
    com.netscape.server.deployment.ApplicationXmlUtil.parseApplicationFro
    mDOM(Unknown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.xmlToDescriptor
    (Unk
    nown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.xmlToDescriptor
    (Unk
    nown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.xmlToDescriptor
    (Unk
    nown Source)
    at com.netscape.server.deployment.J2eeAppReg.run(Unknown Source)
    at com.netscape.server.deployment.J2eeAppReg.main(Unknown Source)
    com.netscape.server.deployment.ApplicationXmlException: cannot parse
    correspondi
    ng web app xml file!
    at com.netscape.server.deployment.ApplicationXmlUtil.handleModules
    (Unkno
    wn Source)
    at
    com.netscape.server.deployment.ApplicationXmlUtil.parseApplicationFro
    mDOM(Unknown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.xmlToDescriptor
    (Unk
    nown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.xmlToDescriptor
    (Unk
    nown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.xmlToDescriptor
    (Unk
    nown Source)
    at com.netscape.server.deployment.J2eeAppReg.run(Unknown Source)
    at com.netscape.server.deployment.J2eeAppReg.main(Unknown Source)
    j2eeappreg done.
    Anybody can help? Thanks!
    Bin

    Hi,
    Please let me know the version & O/S of iAS including the web server name &
    version and if it is installed on same machine or different machine.
    Regards
    Raj
    Bin Ji wrote:
    Hi,
    When I use j2eeappreg.bat to deploy application, I got the following error:
    Connected to LDAP server on BJI02 port 389
    java.lang.IllegalStateException: internal assert: why is web.xml jar entry
    null?
    at com.kivasoft.util.Debug.assert(Unknown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.handleModules
    (Unknown Source)
    at
    com.netscape.server.deployment.ApplicationXmlUtil.parseApplicationFro
    mDOM(Unknown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.xmlToDescriptor
    (Unknown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.xmlToDescriptor
    (Unknown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.xmlToDescriptor
    (Unknown Source)
    at com.netscape.server.deployment.J2eeAppReg.run(Unknown Source)
    at com.netscape.server.deployment.J2eeAppReg.main(Unknown Source)
    java.lang.IllegalStateException: internal assert: why is web.xml jar entry
    null?
    at com.kivasoft.util.Debug.assert(Unknown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.handleModules
    (Unknown Source)
    at
    com.netscape.server.deployment.ApplicationXmlUtil.parseApplicationFro
    mDOM(Unknown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.xmlToDescriptor
    (Unknown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.xmlToDescriptor
    (Unknown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.xmlToDescriptor
    (Unknown Source)
    at com.netscape.server.deployment.J2eeAppReg.run(Unknown Source)
    at com.netscape.server.deployment.J2eeAppReg.main(Unknown Source)
    com.netscape.server.deployment.ApplicationXmlException: cannot parse
    corresponding web app xml file!
    at com.netscape.server.deployment.ApplicationXmlUtil.handleModules
    (Unknown Source)
    at
    com.netscape.server.deployment.ApplicationXmlUtil.parseApplicationFro
    mDOM(Unknown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.xmlToDescriptor
    (Unknown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.xmlToDescriptor
    (Unknown Source)
    at com.netscape.server.deployment.ApplicationXmlUtil.xmlToDescriptor
    (Unknown Source)
    at com.netscape.server.deployment.J2eeAppReg.run(Unknown Source)
    at com.netscape.server.deployment.J2eeAppReg.main(Unknown Source)
    j2eeappreg done.
    Anybody can help? Thanks!
    Bin

  • Why is this java.lang.IllegalStateException occuring, and what can be done?

    I routinely find this exception occuring with Tomcat 6, with virtually every web app I develop. Since I tend to be paranoid about errors, I want to no more even though Tomcat's output says this exception has no functional impact. As far as I can see, none of the code I developed is involved in this. Does that mean Tomcat 6 is broken? What debugging purpose could this have? What can be done to prevent it?
    INFO: Initializing Sun's JavaServer Faces implementation (1.2_04-b10-p01) for context '/FinanceWebApp'
    6-Mar-2008 11:28:07 AM org.apache.catalina.loader.WebappClassLoader loadClass
    INFO: Illegal access: this web application instance has been stopped already. Could not load java.lang.Object. The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
    java.lang.IllegalStateException
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1244)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
    at com.sun.faces.application.ConverterPropertyEditorFactory$DisposableClassLoader.loadClass(ConverterPropertyEditorFactory.java:447)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
    at java.lang.Class.getConstructor0(Class.java:2699)
    at java.lang.Class.newInstance0(Class.java:326)
    at java.lang.Class.newInstance(Class.java:308)
    at java.beans.PropertyEditorManager.findEditor(PropertyEditorManager.java:79)
    at com.sun.faces.application.ApplicationImpl.addPropertyEditorIfNecessary(ApplicationImpl.java:652)
    at com.sun.faces.application.ApplicationImpl.addConverter(ApplicationImpl.java:623)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:754)
    at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:505)
    at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:511)
    at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1220)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
    at org.apache.catalina.manager.ManagerServlet.check(ManagerServlet.java:1458)
    at org.apache.catalina.manager.ManagerServlet.deploy(ManagerServlet.java:820)
    at org.apache.catalina.manager.ManagerServlet.doGet(ManagerServlet.java:348)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Thread.java:619)

    Mojarra (the JSF RI) has code to generate bytecode for a PropertyEditory that the EL can use that will leverage any by-type converters
    that have been registered. In short it allows the EL to perform conversion via Converters when the standard conversion rules fail.
    It seems, for whatever reason, that Tomcat doesn't care for this practice, though I've not seen this exception before.
    Have you posted to the Tomcat list to see if they can provide insight on how to eliminate this message?

  • EJB 3.0 and Oc4J::: IllegalStateException

    Hello,
    I am trying to access a method in my EJB3.0, which basically does data update, but I am getting IllegalStateException, any idea, why am I getting that exception.
    javax.ejb.EJBException: java.lang.IllegalStateException: Cannot use resource level transactions with a container managed EntityManager; nested exception is:
         java.lang.IllegalStateException: Cannot use resource level transactions with a container managed EntityManager; nested exception is: oracle.oc4j.rmi.OracleRemoteException: java.lang.IllegalStateException: Cannot use resource level transactions with a container managed EntityManager; nested exception is:
         java.lang.IllegalStateException: Cannot use resource level transactions with a container managed EntityManager
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.rmi.RMICall.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(RMICall.java:109)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.rmi.RMICall.throwRecordedException(RMICall.java:125)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.rmi.RMIClientConnection.obtainRemoteMethodResponse(RMIClientConnection.java:517)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.rmi.RMIClientConnection.invokeMethod(RMIClientConnection.java:461)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.rmi.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:63)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.rmi.RecoverableRemoteInvocationHandler.invoke(RecoverableRemoteInvocationHandler.java:28)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.ejb.StatefulSessionRemoteInvocationHandler.invoke(StatefulSessionRemoteInvocationHandler.java:31)
         at __Proxy1.updateCanAssignInformations(Unknown Source)
         at gov.nih.eta.beantier.etaruleservice.CanAssignmentServiceAdapter.updateCanInformations(CanAssignmentServiceAdapter.java:37)
         at gov.nih.eta.webtier.actions.ICCanAssignmentAction.execute(ICCanAssignmentAction.java:223)
         at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
         at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
         at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
         at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
         at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
         at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
    My bean method:
    public void updateCanAssignInformations(List<CanAssignmentsEntity> canAssignmentsEntityList)
              System.out.println("Calling EJB method>>>>>>>>>>>>>>>");
              CanAssignmentsEntity canAssignmentsEntity = null;          
              for(int i=0; i<canAssignmentsEntityList.size(); i++)
                   System.out.println("Step0");
                   canAssignmentsEntity = (CanAssignmentsEntity)canAssignmentsEntityList.get(i);
                   em.getTransaction().begin();
                   System.out.println("Step1");
                   CanAssignmentsEntity canAssignmentsEntity1 = em.find(CanAssignmentsEntity.class, canAssignmentsEntity.getCanAssignmentEntityPK());
                   System.out.println("Step2");
                   canAssignmentsEntity1.setCanAssignmentEntityPK(canAssignmentsEntity.getCanAssignmentEntityPK());               
                   canAssignmentsEntity1.setCreatorId("dasra");               
                   java.util.Date today = new java.util.Date();
                  java.sql.Date dateToday =  new java.sql.Date(today.getTime());             
                   canAssignmentsEntity1.setCreatorDate(dateToday);               
                   canAssignmentsEntity1.setRfaNumberInclusion(canAssignmentsEntity.getRfaNumberInclusion());               
                   canAssignmentsEntity1.setMechanismCodeInclusion(canAssignmentsEntity.getMechanismCodeInclusion());               
                   canAssignmentsEntity1.setApplTypeInclusion(canAssignmentsEntity.getApplTypeInclusion());               
                   canAssignmentsEntity1.setActivityCodeInclusion(canAssignmentsEntity.getActivityCodeInclusion());
                   System.out.println("Step1");
                   em.getTransaction().commit();
         }

    Since you're using EJBs, you can use JTA and can skip the getTransaction() calls. If you want to use getTransaction().begin() and commit(), then make sure that your EntityManager is resource-local. The configuration for this is in persistence.xml. Set a transaction-type of RESOURCE_LOCAL rather than JTA.

  • IllegalStateException while requesting a JSF page

    Hello all,
    I have a JSF (Oracle ADF) application deployed on a WAS 6.4 (SP 16). The application mostly works fine but sometimes I get an IllegalStateException while requesting a page.
    The error appears sporadical and isn't repeatable. After repeating the request the site appears as suggested.
    This is the errormessage from the WAS:
    Processing HTTP request to servlet [Faces Servlet] finished with error.
    The error is: javax.servlet.ServletException: java.lang.IllegalStateException: The operation is not allowed. The HttpServletRequest is not associated with a client request.
    Exception id: [0003BA9B5D570043000000160000461000041D51FFBEBD37]
    Here is the exception from the default trace:
    Processing HTTP request to servlet [Faces Servlet] finished with error. The error is: javax.servlet.ServletException: java.lang.IllegalStateException: The operation is not allowed. The HttpServletRequest is not associated with a client request.
         at com.rheinenergie.lakis.frontend.login.LoginFilter.doFilter(LoginFilter.java:210)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:58)
         at jcifs.http.NtlmHttpFilter.doFilter(NtlmHttpFilter.java:118)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:58)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:373)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    The code which produces the error is 'valueBinding.getValue()':
    valueBinding = context.getApplication().createValueBinding("#{benutzerStatus}");
    benutzerStatus = ((BenutzerStatus) valueBinding.getValue(context));
    Has anybody an idea why I sometimes get an 'Operation not allowed' error while requesting this specific managed bean from the faces context?
    By the way: the application runes fine on a jboss.
    thanks a lot,
    Daniel

    Hi Daniel,
    The reason for this exception is that the WAS uses a pool of request objects. So when one request-response cycle ends, the participated request and response objects are returned back in the pool to be used for next client request.
    So this exception means that your application has somehow a reference to request object that is already returned back in the pool and any method invocation on this object is prohibited.
    Please check for such behavior.
    Regards,
    Diyan

  • Exporting a PDF from an ATG servlet: IllegalStateException: Response already committed

    High-level question
    When a custom servlet in my ATG servlet pipeline writes a PDF document into the HTTP response output stream, although the PDF is delivered to the user's client browser successfully, an error is logged on the server: Servlet failed with Exception  java.lang.IllegalStateException: Response already committed".  Why does this occur?
    Details
    My ATG 10.1.2 application has a requirement to be able to generate and return to the client browser a PDF document when a particular button on the site is clicked.
    Although I'm not sure whether or not it's an ATG best practice, the approach that I landed on for this was to insert a new custom servlet, "PdfExportServlet", into the ATG servlet pipeline.  The PdfExportServlet, for requests that it determines are PDF requests and decides to handle, generates the PDF content (using the Jasper Reports engine), and writes the PDF content to the HTTP response output stream.  Here's the relevant portion of the code:
    response.setContentType("application/pdf");
    // (...Code that generates a JasperPrint object with the PDF content...)
    final byte[] pdfBinaryContent = JasperExportManager.exportReportToPdf(jasperPrint);
    response.setContentLength(pdfBinaryContent.length);
    final ServletOutputStream outputStream = response.getOutputStream();
    outputStream.write(pdfBinaryContent);
    outputStream.flush();
    outputStream.close();
    This works fine, and the PDF does display in the client browser.  However, an error is also logged in the application's log file on the server:
    <WL-101020> <[ServletContext@1369332778[app:storeFront module:shop path:/shop spec-version:2.5]] Servlet failed with Exception
    java.lang.IllegalStateException: Response already committed
        at weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(ServletResponseImpl.java:1631)
        at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:637)
        at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:602)
        at weblogic.servlet.FileServlet.findSource(FileServlet.java:269)
        at weblogic.servlet.FileServlet.doGetHeadPost(FileServlet.java:191)
        at weblogic.servlet.FileServlet.service(FileServlet.java:173)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
        at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
        at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
        at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
        at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
        at atg.servlet.GenericFilterService.doFilterChain(GenericFilterService.java:621)
    A frustrating thing about this error which had made it difficult to troubleshoot is that it does not occur on my local development PC; this log message only appears when the application is running on one of our pre-production or production servers.  This has made trying to rapidly iterate through multiple possible solutions problematic, as each change to the code requires a fresh deployment to our shared pre-production server, which is time-consuming.
    I have tried the following variations on the above code, neither of which has produced a change in the manifestation of the issue (the error message appearing in the log):
    Added a call to response.flushBuffer() after the call to outputStream.close(), on the theory that this might serve to notify downstream servlets that the request has already been committed and no further attempts to modify and/or commit the request should be made.
    Removed the calls to outputStream.flush() and outputStream.close(), on the theory that some downstream servlet pipeline member (TailPipelineServlet?) might be responsible for closing out the outputStream, and trying to do that prematurely was responsible for the error.
    I also so far haven't found anything relevant in the ATG/Oracle documentation that might provide a clue as to what's going on here, or what the general best practice is regarding having a custom servlet in the ATG pipeline that outputs to the response's outputStream.
    Any advice regarding the root cause of this error and/or what should be done to fix it would be most welcome!
    Thanks,
    -Jon

    Here's the full stack trace from the log (which includes the PdfExportServlet):
    <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1386007041311> <WL-101020> <[ServletContext@1369332778[app:storeFront module:shop path:/shop spec-version:2.5]] Servlet failed with Exception
    java.lang.IllegalStateException: Response already committed
    at weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(ServletResponseImpl.java:1631)
    at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:637)
    at weblogic.servlet.internal.ServletResponseImpl.sendError(ServletResponseImpl.java:602)
    at weblogic.servlet.FileServlet.findSource(FileServlet.java:269)
    at weblogic.servlet.FileServlet.doGetHeadPost(FileServlet.java:191)
    at weblogic.servlet.FileServlet.service(FileServlet.java:173)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
    at atg.servlet.GenericFilterService.doFilterChain(GenericFilterService.java:621)
    at atg.servlet.GenericFilterService.handleDoFilter(GenericFilterService.java:484)
    at atg.servlet.GenericFilterService.doFilter(GenericFilterService.java:431)
    at atg.filter.ConditionalDelegatingFilter.doFilter(ConditionalDelegatingFilter.java:113)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
    at atg.service.configuration.ResponseWrappingConfiguration.invokeFilterChainWithPossibleWrapping(ResponseWrappingConfiguration.java:457)
    at atg.servlet.pipeline.TailPipelineServlet.service(TailPipelineServlet.java:174)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at com.mycompany.purchase.PdfExportServlet.service(PdfExportServlet.java:73)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.servlet.pipeline.DispatcherPipelineServletImpl.service(DispatcherPipelineServletImpl.java:275)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.endeca.assembler.AssemblerPipelineServlet.service(AssemblerPipelineServlet.java:442)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.servlet.http.CookieBufferServlet.service(CookieBufferServlet.java:119)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.userprofiling.ExpiredPasswordServlet.service(ExpiredPasswordServlet.java:378)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.servlet.pipeline.MimeTyperPipelineServlet.service(MimeTyperPipelineServlet.java:228)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:657)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.commerce.order.CommerceCommandServlet.service(CommerceCommandServlet.java:150)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.commerce.promotion.PromotionServlet.service(PromotionServlet.java:213)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:320)
    at com.mycompany.browse.EndecaSessionStateTrackerServlet.service(EndecaSessionStateTrackerServlet.java:97)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.userprofiling.AccessControlServlet.service(AccessControlServlet.java:696)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2447)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.userprofiling.PageEventTriggerPipelineServlet.service(PageEventTriggerPipelineServlet.java:191)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.multisite.SiteSessionEventTriggerPipelineServlet.service(SiteSessionEventTriggerPipelineServlet.java:161)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.userprofiling.SessionEventTrigger.service(SessionEventTrigger.java:512)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.userprofiling.ProfilePropertyServlet.service(ProfilePropertyServlet.java:230)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at com.mycompany.servlet.pipeline.ThreadNameServlet.service(ThreadNameServlet.java:89)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.userprofiling.ProfileRequestServlet.service(ProfileRequestServlet.java:460)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:491)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.servlet.pipeline.URLArgumentPipelineServlet.service(URLArgumentPipelineServlet.java:302)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.servlet.pipeline.PathAuthenticationPipelineServlet.service(PathAuthenticationPipelineServlet.java:392)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.servlet.security.ThreadUserBinderServlet.service(ThreadUserBinderServlet.java:113)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.dtm.TransactionPipelineServlet.service(TransactionPipelineServlet.java:234)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.servlet.pipeline.SecurityServlet.service(SecurityServlet.java:195)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.multisite.SiteContextPipelineServlet.service(SiteContextPipelineServlet.java:448)
    at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:157)
    at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1271)
    at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:952)
    at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:272)
    at atg.filter.dspjsp.PageFilter.innerDoFilter(PageFilter.java:349)
    at atg.filter.dspjsp.PageFilter.doFilter(PageFilter.java:208)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:60)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3739)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3705)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2282)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2181)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1491)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)

  • Java.lang.IllegalStateException:  bean  not found in "request" scope

    In jsp,I use javaBean,the statement is following:
    <jsp:useBean id="collectionBean" scope="request" type="view.CollectionBean"/>
    but ,in runtime,there exist following mistakes:
    java.lang.IllegalStateException: bean "collectionBean" not found in "request" scope
         at basicContentSearch.jspService(basicContentSearch.jsp:8)
         [SRC:/basicContentSearch.jsp]
         at com.orionserver[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:349)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:778)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    why?
    Please everyone tell me if you can,thanks a lot.

    I believe, if it is the first time you are referring to the bean, you must use the class attribute rather than type:
    <jsp:useBean id="collectionBean" scope="request" class="view.CollectionBean"/>The type is used to change how the bean is referenced, for instance, in regular Java you might do this:
    // The Type                 The Class
    java.util.List myList = new java.util.ArrayList();In use bean you would do this:
    <jsp:useBean id="myList" class="java.util.ArrayList" type="java.util.List"/>

  • WLS 8.1 + MyFaces 1.1 = java.lang.IllegalStateException ?

    We are seeing an Exception from time to time on WLS 8.1 in a JSF application that looks like this:
    <Aug 1, 2008 8:02:36 AM CDT> <Error> <HTTP> <BEA-101017> <[ServletContext(id=1781688286,name=as_oo_webapp,context-path=/as_oo_webapp)] Root cause of ServletException.
    java.lang.IllegalStateException: No Factories configured for this Application - typically this is because a context listener is not setup in your web.xml.
    A typical config looks like this;
    <listener>
      <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
      at javax.faces.FactoryFinder.getFactory(FactoryFinder.java(Compiled Code))
    We are using MyFaces 1.1 for JSF. We think this is a known issue with MyFaces 1.1 and WLS, but we are not sure - and we are not sure if there is any solution.
    Any advice would be appreciated!!
    thanks

    Hi,
    we found the problem. One missing entry in one META-INF. We don´t know, why this
    was no problem with WLS 6.1 / 7.0.
    Greetings
    "Thilo Fischer" <[email protected]> wrote:
    >
    Hi there,
    we are moving from WLS 6.1 / 7.0 to WLS 8.1 and we have a BIG problem:
    We get
    everywhere java.lang.NoClassDefFoundErrors on the server.
    Our Project consists of more than 20 subprojects (1 EJB, 3 WEB, the rest
    utility-projects)
    plus some libraries (struts etc.), which are all bundeled into our EAR.
    In our
    EAR the projects make references to all needed projects/libraries via
    META-INF.
    This workls flawless on WLS 6.1 / WLS 7.0 but crashes under 8.1.
    Must we declare these references in another way, not via META-INF?
    Any suggestions ?
    Kind regards
    Thilo Fischer

  • Why the componeng id exists in the view when create a dynmaic table?

    In the first page, i add a command button to create a managed bean containing a UIData component, whose the struture is dynamic in runtime, and then forward to other page to show the UIData:
    JSP code:
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <f:view>
    <body>
    <h:form id="welcomeform">
    <h:commandButton value="jump" action="#{welcomeForm.execute}"/>
    </h:form>
    </body>
    </f:view>JAVA code:
    package com.savage.dynweb;
    import javax.faces.context.FacesContext;
    import javax.faces.el.ValueBinding;
    public class WelcomePage {
    public String execute() {
    DynPage dynPage = new DynPage();
    dynPage.init();
    FacesContext context = FacesContext.getCurrentInstance();
    ValueBinding vb = context.getApplication().createValueBinding("#{requestScope.dynPage}");
    vb.setValue(context, dynPage);
    return "success";
    }faces-config.xml:
    <managed-bean>
    <managed-bean-name>welcomeForm</managed-bean-name>
    <managed-bean-class>com.savage.dynweb.WelcomePage</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/pages/test.jsp</from-view-id>
    <navigation-case>
    <from-outcome>success</from-outcome>
    <to-view-id>/pages/dynpage.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>dynpage.jsp code:
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <f:view>
    <body>
    <h:form id="dynform">
    <h:dataTable binding="#{dynPage.dynTable }" var="row" value="#{dynPage.records }"/>
    <h:commandButton value="next" actionListener="#{dynPage.execute}"/>
    </h:form>
    </body>
    </f:view>DynPage.java:
    package com.savage.dynweb;
    import java.util.*;
    import javax.faces.application.Application;
    import javax.faces.component.*;
    import javax.faces.context.FacesContext;
    import javax.faces.el.ValueBinding;
    import javax.faces.event.ActionEvent;
    public class DynPage {
    private UIData dynTable;
    private List<Map<String, String>> records;
    public void init() {
    String[] headers = new String[] {"name", "age", "sex", "birthday"};
    records = new ArrayList<Map<String, String>>(10);
    for(int i = 0; i < 10; i++) {
    Map<String, String> record = new HashMap<String, String>(4);
    record.put("name", "name" + i);
    record.put("age", "age" + i);
    record.put("sex", "sex" + i);
    record.put("birthday", "birthday" + i);
    records.add(record);
    FacesContext.getCurrentInstance().getViewRoot().getChildren().clear();
    Application app = FacesContext.getCurrentInstance().getApplication();
    dynTable = new UIData();
    for(String header : headers) {
    UIColumn column = new UIColumn();
    UIOutput output = new UIOutput();
    ValueBinding vb = app.createValueBinding("#{requestScope.row." + header + "}");
    output.setValueBinding("value", vb);
    UIOutput facet = new UIOutput();
    facet.setValue(header);
    column.setHeader(facet);
    column.getChildren().add(output);
    dynTable.getChildren().add(column);
    public void execute(ActionEvent event) {
    init();
    public UIData getDynTable() {
    return dynTable;
    public void setDynTable(UIData dynTable) {
    this.dynTable = dynTable;
    public List<Map<String, String>> getRecords() {
    return records;
    public void setRecords(List<Map<String, String>> records) {
    this.records = records;
    }face-config.xml:
    <managed-bean>
    <managed-bean-name>dynPage</managed-bean-name>
    <managed-bean-class>com.savage.dynweb.DynPage</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>when I click the next button at the dynpage.jsp, it raised a exception:
    java.lang.IllegalStateException: ******************ID "dynform:_id0:_id4"(means the ID "dynform:id0:_id4" has been existed in the view)��
    com.sun.faces.application.StateManagerImpl.checkIdUniqueness(StateManagerImpl.java:201)
    com.sun.faces.application.StateManagerImpl.checkIdUniqueness(StateManagerImpl.java:204)
    com.sun.faces.application.StateManagerImpl.checkIdUniqueness(StateManagerImpl.java:204)
    com.sun.faces.application.StateManagerImpl.saveSerializedView(StateManagerImpl.java:97)
    com.sun.faces.taglib.jsf_core.ViewTag.doAfterBody(ViewTag.java:189)
    org.apache.jsp.pages.dynpage_jsp._jspx_meth_f_005fview_005f0(dynpage_jsp.java:104)
    org.apache.jsp.pages.dynpage_jsp._jspService(dynpage_jsp.java:67)
    But when i append a code:
    FacesContext.getCurrentInstance().getViewRoot().getChildren().clear();
    in the method:init(), everything is ok, why?
    Can anyone to tell me the why it raise the exception, and why I clear the children of the UIViewRoot, the exception is gone.

    Hi Frank,
    Thank you and it can work.
    public void setLowHighSalaryRangeForDetailEmployeesAccessorViewObject(Number lowSalary,
                                                                              Number highSalary) {
            Row r = getCurrentRow();
            if (r != null) {
                RowSet rs = (RowSet)r.getAttribute("EmpView");
                if (rs != null) {
                    ViewObject accessorVO = rs.getViewObject();
                    accessorVO.setNamedWhereClauseParam("LowSalary", lowSalary);
                    accessorVO.setNamedWhereClauseParam("HighSalary", highSalary);
                executeQuery();
    but I have a quesiton in this way. in code snippet, it is first getting current row of current master VO to determine if update variables value of detail VO. in my case, current row is possibly null after executeQuery() of master VO and  I have to change current row manually like below.
    any idea?
                DCIteratorBinding dc = (DCIteratorBinding)ADFUtil.evaluateEL("#{bindings.SSForecastSourceBlockView1Iterator}");
                ViewObject vo = dc.getViewObject();           
                vo.ensureVariableManager().setVariableValue("DateFrom", dateFrom);
                vo.ensureVariableManager().setVariableValue("DateTo", dateTo);
                vo.ensureVariableManager().setVariableValue("ShiftModeCode", shiftModeC);
                vo.ensureVariableManager().setVariableValue("TerminalCode", terminalCode);
                vo.executeQuery();
                vo.setCurrentRowAtRangeIndex(0);
                ((SSForecastSourceBlockViewImpl)vo).synchornizeAccessorVOVariableValues();

  • @MTOM with @SchemaValidation causes IllegalStateException when streaming

    We are using Weblogic-10.3.3 and streaming documents from Documentum to web service clients via MTOM (using the @MTOM annotation).
    Our service was working fine when our EJB web service class only had the @MTOM annotation on it.
    However, adding @SchemaValidation annotation causes a "java.lang.IllegalStateException: closed" exception (AdminServer.log stack trace is below) when the web service response is being returned (to the client).
    In soapUI, the document's content type comes through, but the file size is 0.
    Somehow, @SchemaValidation logic is interfering with the MTOM streaming.
    Has anyone else encountered there and/or know the reason why this occurring? Is the schema validation reading the response stream first (to do its validation) and then, when the client tries to read the same response stream for the document content, there is no data in the stream (since it was read already by the schema validation)?
    Again, there is no problem when the @SchemaValidation annotation is not present.
    Thank you.
    java.lang.IllegalStateException: closed
         at com.documentum.fc.client.content.impl.BlockPuller.verifyOpen(BlockPuller.java:64)
         at com.documentum.fc.client.content.impl.BlockPuller.close(BlockPuller.java:69)
         at com.documentum.fc.client.content.impl.PullerInputStream.close(PullerInputStream.java:110)
         at com.documentum.fc.impl.util.io.InputStreamHandle.close(InputStreamHandle.java:45)
         at java.io.FilterInputStream.close(FilterInputStream.java:156)
         at javax.activation.DataHandler.writeTo(DataHandler.java:297)
         at com.sun.xml.ws.encoding.MtomCodec$ByteArrayBuffer.write(MtomCodec.java:206)
         at com.sun.xml.ws.encoding.MtomCodec.encode(MtomCodec.java:173)
         at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
         at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:368)
         at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:102)
         at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:534)
         at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:255)
         at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:141)
         at weblogic.wsee.jaxws.WLSServletAdapter.handle(WLSServletAdapter.java:210)
         at weblogic.wsee.jaxws.HttpServletAdapter$AuthorizedInvoke.run(HttpServletAdapter.java:311)
         at weblogic.wsee.jaxws.HttpServletAdapter.post(HttpServletAdapter.java:223)
         at weblogic.wsee.jaxws.JAXWSServlet.doPost(JAXWSServlet.java:124)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at weblogic.wsee.jaxws.JAXWSServlet.service(JAXWSServlet.java:79)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:821)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3686)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

    Hi,
    Have you found a resolution to this issue? If you havent, I know why you are getting those issues. Let me know if you are still resolving this.
    regards,
    Johnny

  • IllegalStateException in WL8.1 but not in WL5.1

              I am migrating my application from WL5.1 to 81.
              I have a piece of Servlet A which forwards to another Servlet B for processing.
              After Servlet B is done, the control is passed back to Servlet A which finally
              ends with a response.sendRedirect to a URL. In WL5.1, this is perfectly alright.
              But in WL8.1, IllegalStateException is thrown as the response is already committed.
              I noticed that in WL5.1 the response remains uncommitted after the forward to
              Servlet B, but not so in WL8.1, thus the exception.
              Is there a change in the specification from WL5.1 to 8.1? Why the different behavior?
              (I know, it is a bad idea to have multiple forwards or sendRedirects within a
              servlet.)
              

    hi,
    stefen.
    look this sample code.
    u will get a clear idea.
    table emp
    empno name
    a sasi
    b xxx
    c yyy
    table sal
    empno salary
    a 1000
    b 2000
    Inner join
    select eempno ename
    s~sal
    into table int_table
    from emp as e
    inner join sal
    on
    eempno = sempno.
    if you made inner join between table a and b by emp no
    the selection retrives only if the condition satisfy the output will be
    a sasi 1000
    b xxx 2000
    Outer join
    select eempno ename
    s~sal into table  int_table
    from emp as e
    LEFT OUTER JOIN sal
    on
    eempno = sempno.
    if you made outer join (left /right ) the left table kept as it is the
    if the condition satisfy the right table entries will fetch else leave it blank
    the output will be
    a sasi a 1000
    b xxx b 2000
    c yyy
    rgds
    anver
    if helped mark points

  • Why do we need to take a lock before invoking wait()/notify() on an Objec

    Hi,
    Why do we need to take a lock before invoking wait()/notify() on an Object? i know that we shud take otherwise illegalstateexception is thrown.
    what is the reason to take a lock bfefore invoking the above methods. why does jvm expects from the programmer?
    Cheers,
    duggana.

    Well, very often a wait or notify is conditional on the state of some flag (semaphore) which is protected by the monitor. By putting the wait in a synchronized section you guarantee that the sempaphore won't change between the final test of it and the actual wait or notify, otherwise a notify might be lost and the program hang.
    // wait on semaphor
    if (!canProcede)
       synchronized(this)
           if(!canProcede)
              wait();
    //   release semaphor
    synchronized(this)
         if(!canProceed) {
              canProede = true;
              notify();
        }If the wait above wasn't guarded by the sychrozined it's possible the second code fragment might be executed between the test and the wait, in which case the wait would be called after the notify and, hence, wait for ever.

  • Why do we need to take a lock before invoking wait()/notify() on an Object?

    Hi,
    Why do we need to take a lock before invoking wait()/notify() on an Object? i know that we shud take otherwise illegalstateexception is thrown.
    what is the reason to take a lock bfefore invoking the above methods. why does jvm expects from the programmer?

    Please do not crosspost..

  • Java.lang.IllegalStateException: Session already invalidated

    why do i get
    java.lang.IllegalStateException: Session already invalidated
    at
    weblogic.servlet.internal.session.SessionData.invalidate(SessionData.java:)
    when iam using bea 8.1 and not in bea 5.1 .. I dont get this exception when session timesout in bea 5.1
    Can u pl tell me
    Hemalatha

    You receive this exception when yo call to session.invalidate and the session is already invalidated. Many method in session throws this exception. You can find it in
    http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/http/HttpSession.html
    When you call call request.getSession(false) you can know if the user has any session. true - to create a new session for this request if necessary; false to return null if there's no current session

Maybe you are looking for

  • GlassPane - JComboBox

    Hi, I have a glass pane, which redispatches all mouse, mouse motion, and mouse wheel events. I have a JComboBox under the glass pane. When I mouse over the combo and click on it, the popup menu appears. But when I move my mouse on the popup menu, the

  • Grouping multiple subscriptions for streaming notifications

    Hello, I want to subscribe to Exchange (ver. 2010) streaming notifications in order to receive events for multiple mailboxes. I don't want to open a separate connection for each mailbox, although from what I've read so far I need a separate subscript

  • Start a new Coherence cache server

    Hi experts, I have an application configured with oracle coherence running on the weblogic server. Can I start a new Coherence cache server from a command prompt so that, this newly created cache server joins the existing cluster already running on t

  • "RAW" and "movie" keywords no longer automatically added

    After a recent iPhoto update -- I'm using version 9.3 (650.39) now -- I've noticed that both the RAW images and the movies that I import from my camera are no longer automattically tagged with the keywords "RAW" and "movie".  In previous versions, af

  • Need of Share Applications tier

    Dear Expat, we are implemting Oracle Apps R12, this is our infrastructure. Production 1 node for Oracle DB 11g 1 node for Applications (Forms , reports , CM etc) 1 node for Web Server (for external users/vendor on Public IP) All are connected with SA