Exception thrown : java.lang.IllegalStateException: No AdfRenderingContext

I have an adf application which was built in RAD 6.0.1, I migrated it to RAD 7.5.3, and I still use run time 6.0, but when loading first page, I got error:
SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: /loginSelect.jspx. Exception thrown : java.lang.IllegalStateException: No AdfRenderingContext
     at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeBegin(CoreRenderer.java:136)
     at com.ibm.faces.renderkit.DefaultAjaxRenderer.encodeBegin(DefaultAjaxRenderer.java:64)
     at oracle.adf.view.faces.component.UIXComponentBase.encodeBegin(UIXComponentBase.java:593)
     at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:591)
     at oracle.adf.view.faces.webapp.UIXComponentTag.encodeBegin(UIXComponentTag.java:108)
     at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:478)
     at oracle.adf.view.faces.webapp.UIXComponentTag.doStartTag(UIXComponentTag.java:85)
     at com.ibm._jsp._loginSelect_5F_jspx._jspx_meth_afh_html_0(_loginSelect_5F_jspx.java:485)
     at com.ibm._jsp._loginSelect_5F_jspx._jspx_meth_f_view_0(_loginSelect_5F_jspx.java:518)
     at com.ibm._jsp._loginSelect_5F_jspx._jspService(_loginSelect_5F_jspx.java:66)
     at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1101)
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1036)
     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
     at ca.on.gov.csc.ahp.web.filters.SessionCheckFilter.doFilter(SessionCheckFilter.java:96)
     at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
     at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:832)
     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:565)
     at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
     at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:122)
     at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:226)
     at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionProcessor.handleRequest(AbstractJSPExtensionProcessor.java:285)
     at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:321)
     at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
     at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
     at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
     at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
     at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1101)
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1036)
     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
     at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)
     at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
     at ca.on.gov.csc.ahp.web.filters.SessionCheckFilter.doFilter(SessionCheckFilter.java:96)
     at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
     at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
     at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:832)
     at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:679)
     at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:565)
     at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
     at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:90)
     at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:748)
     at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1461)
     at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:118)
     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:458)
     at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:387)
     at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:102)
     at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:165)
     at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
     at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
     at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
     at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
     at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
     at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
     at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)
The adf version is 10.1.3.
Any idea to fix the error? Thanks in advance.

i figured out the issue. Actually there was a method called findMaxId in one of my DAO and in the query i was using the actual column name instead of the id name.
any how thanks

Similar Messages

  • CORE4007: Internal error: Unexpected Java exception thrown (java.lang.NullP

    Hi,
    Currently we have a custom devoloped Java application deployed in oracle iplanet webserver 7 with JDK 1.6. I am receiving the below errors. The application is not stable. It gives a 500 internal error sometimes when browsing. When i checked the error log. Below is the message.
    CORE4007: Internal error: Unexpected Java exception thrown (java.lang.NullPointerException, no description), stack: java.lang.NullPointerException
    Could you please throw some light on this.

    You need to fix your custom developed app since it is causing the errors and instability. Tell the developers to properly verify the input data and improve their exception handling so you get better error messages that tells you what went wrong.

  • UIX 2.1.7: java.lang.IllegalStateException

    Hi all,
    we have an UIX page that shows a BC4J view object and offers to export the VO data to PDF. When the user clicks a button, the page is submitted and the UIX event handler uses a 3rd party library to create a byte array containing the PDF data. Still in the event handler, we retrieve the HttpServletResponse from the BajaContext and write the PDF data into the response's output stream.
    So far so good. However, each time we do this, the following exception is thrown:
    java.lang.IllegalStateException: Response is already committed!
         at com.evermind.server.http.EvermindHttpServletResponse.setContentType(EvermindHttpServletResponse.java:1027)
         at oracle.cabo.ui.ServletRenderingContext.prepareResponse(Unknown Source)
         at oracle.cabo.servlet.ui.UINodePageRenderer.renderPage(Unknown Source)
         at oracle.cabo.servlet.AbstractPageBroker.renderPage(Unknown Source)
         at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
         at oracle.cabo.servlet.UIXServlet.doGet(Unknown Source)
         at oracle.cabo.servlet.UIXServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:721)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    Usually, we ignore the exception, because it only appears in the server log and the browser receives and displays the PDF document anyway. However, when it reaches a certain size, the server appends the exception trace to the servlet response and the PDF becomes corrupt.
    Has anyone an idea how to suppress the exception? Is this the preferred way to write dynamically created data to the response without the indirection of creating a temporary file and downloading it?
    Thanks a lot for any hint!
    Markus.

    Hi Markus -
    I believe the solution is to use oracle.cabo.servlet.util.RedirectUtils.getResponseCompletePage() to retrieve that Page that you will return from your event handler. This method returns a special Page that tells UIX to not render any additional content.
    Andy

  • Java.lang.IllegalStateException: ShmWebSession is closed.

    Hi,
    While restarting Web context following exception occurred.
    java.lang.IllegalStateException: ShmWebSession is closed
    java.lang.IllegalStateException: ShmWebSession is closed
         at com.sap.bc.proj.jstartup.sadm.ShmWebSession.activate(ShmWebSession.java:539)
         at com.sap.engine.session.runtime.http.HttpRuntimeSessionModel.activateShmSlot(HttpRuntimeSessionModel.java:446)
         at com.sap.engine.session.runtime.http.HttpRuntimeSessionModel.beforeActivate(HttpRuntimeSessionModel.java:86)
         at com.sap.engine.session.runtime.RuntimeSessionModel.activate(RuntimeSessionModel.java:278)
         at com.sap.engine.session.runtime.SessionRequest.session(SessionRequest.java:91)
         at com.sap.engine.session.AbstractSessionHolder.getSession(AbstractSessionHolder.java:87)
         at com.sap.engine.session.SessionDomain.failoverState(SessionDomain.java:990)
         at com.sap.engine.core.session.SoftShutdown.traverseDomains(SoftShutdown.java:47)
         at com.sap.engine.core.session.SoftShutdown.failoverState(SoftShutdown.java:36)
         at com.sap.engine.boot.soft.FailoverContext.readyForSoftShutdown(FailoverContext.java:25)
         at com.sap.engine.boot.soft.SoftShutdownThread.run(SoftShutdownThread.java:20)
    Can anyone help me?
    Regards,
    Sankalp

    check your defaultTrace log.
    try using Session Manager, set regular.check.period property to
    a higher value in seconds.
      More info available here:
      http://help.sap.com/saphelp_nwce711/helpdata/en/
      47/f1fc52720d296fe10000000a42189b/frameset.htm
    regards,
    Vincent

  • Servlet failed with Exception java.lang.IllegalStateException: Response already committed

    Hi,
    can someone help with this issue. I've been getting this error in my logs since for the past 3 days and I don't know how to resolve it.
    os-aix-64 bit
    wls:10.3
    ####<Aug 25, 2014 11:36:18 AM GMT+05:30> <Error> <HTTP> <XXX-XXXXXX-XX> <examplesServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1408946778196> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@2ee12ee1 - appName: 'consoleapp', name: 'console', context-path: '/console', spec-version: '2.5'] Servlet failed with Exception
    java.lang.IllegalStateException: Response already committed
            at weblogic.servlet.internal.ServletResponseImpl.objectIfCommitted(ServletResponseImpl.java:1553)
            at weblogic.servlet.internal.ServletResponseImpl.sendRedirect(ServletResponseImpl.java:838)
            at javax.servlet.http.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:136)
            at com.bea.netuix.nf.HttpServletResponseWrapper.sendRedirect(HttpServletResponseWrapper.java:50)
            at com.bea.netuix.servlets.controls.content.NetuiContent.handleRedirect(NetuiContent.java:234)
            at com.bea.netuix.servlets.controls.content.NetuiContent.handlePreRenderResponseState(NetuiContent.java:630)
            at com.bea.netuix.servlets.controls.content.StrutsContent.handlePreRenderResponseState(StrutsContent.java:224)
            at com.bea.netuix.servlets.controls.content.NetuiContent.preRender(NetuiContent.java:310)
            at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:428)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:727)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739)
            at com.bea.netuix.nf.ControlTreeWalker.walk(ControlTreeWalker.java:146)
            at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:395)
            at com.bea.netuix.nf.Lifecycle.processLifecycles(Lifecycle.java:361)
            at com.bea.netuix.nf.Lifecycle.runOutbound(Lifecycle.java:208)
            at com.bea.netuix.nf.Lifecycle.run(Lifecycle.java:162)
            at com.bea.netuix.servlets.manager.UIServlet.runLifecycle(UIServlet.java:388)
            at com.bea.netuix.servlets.manager.UIServlet.doPost(UIServlet.java:258)
            at com.bea.netuix.servlets.manager.UIServlet.doGet(UIServlet.java:211)
            at com.bea.netuix.servlets.manager.UIServlet.service(UIServlet.java:196)
            at com.bea.netuix.servlets.manager.SingleFileServlet.service(SingleFileServlet.java:251)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at com.bea.console.utils.MBeanUtilsInitSingleFileServlet.service(MBeanUtilsInitSingleFileServlet.java:54)
            at weblogic.servlet.AsyncInitServlet.service(AsyncInitServlet.java:130)
            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:292)
            at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(Unknown Source)
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
            at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
            at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    TIA,
    Vamsi

    Can someone please help me with this issue.

  • HttpRequestHandler.run Exception: java.lang.IllegalStateException

    Hi,
    I am writing a JSF Page template that contains username and password, and using that template in the LoginPage.jspx. Whenever the login page opens, I am getting the below mentioned exception.
    WARNING: The application: current-workspace-app threw a An existing connection was forcibly closed by the remote host IOException. Though this error may occur many times, this message is only logged once. To log additional occurances of this exception, set the log level of the com.evermind.server.http.EvermindHttpServletResponse trace logger to Level.FINE or finer.
    java.io.IOException: An existing connection was forcibly closed by the remote host
         at sun.nio.ch.SocketDispatcher.write0(Native Method)
         at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:33)
         at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
         at sun.nio.ch.IOUtil.write(IOUtil.java:75)
         at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:302)
         at java.nio.channels.Channels.write(Channels.java:60)
         at java.nio.channels.Channels.access$000(Channels.java:47)
         at java.nio.channels.Channels$1.write(Channels.java:134)
         at com.evermind.io.ChunkedOutputStream.writeChunk(ChunkedOutputStream.java:82)
         at com.evermind.io.ChunkedOutputStream.write(ChunkedOutputStream.java:76)
         at com.evermind.server.http.EvermindServletOutputStream.flushBuffer(EvermindServletOutputStream.java:94)
         at com.evermind.server.http.EvermindHttpServletResponse.flushBuffer(EvermindHttpServletResponse.java:2161)
         at javax.servlet.ServletResponseWrapper.flushBuffer(ServletResponseWrapper.java:176)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:203)
         at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:178)
         at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:176)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:627)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:245)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:205)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adfinternal.view.faces.webapp.rich.SharedLibraryFilter.doFilter(SharedLibraryFilter.java:135)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:69)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
         at oracle.adfinternal.view.faces.activedata.ADSFilter.doFilter(ADSFilter.java:74)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:281)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:241)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:198)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:141)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:476)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:583)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:334)
         at com.evermind.server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:942)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:843)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:658)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:626)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:417)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:163)
         at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    08/07/24 13:52:19 SEVERE: HttpRequestHandler.run Exception: java.lang.IllegalStateException: This DMSMetricController is not started.Phase event info: WEBs:parseRequest
         at com.evermind.server.http.DMSMetricController.abort(DMSMetricController.java:115)
         at com.evermind.server.http.EvermindHttpServletRequest.dmsAbort(EvermindHttpServletRequest.java:268)
         at com.evermind.server.http.HttpRequestHandler.dmsProcRequestDone(HttpRequestHandler.java:358)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:425)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:163)
         at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Jul 24, 2008 1:53:00 PM com.evermind.server.http.HttpMessages warningHeaderModificationIsRejected
    WARNING: Header modification request was rejected. Because the setter method was called from included servlet. It is restricted by SRV.8.3 of Servlet Specification 2.4. : current-workspace-app
    08/07/24 13:53:00 SEVERE: HttpRequestHandler.run Exception: java.lang.IllegalStateException: This DMSMetricController is not started.Phase event info: WEBs:parseRequest
         at com.evermind.server.http.DMSMetricController.abort(DMSMetricController.java:115)
         at com.evermind.server.http.EvermindHttpServletRequest.dmsAbort(EvermindHttpServletRequest.java:268)
         at com.evermind.server.http.HttpRequestHandler.dmsProcRequestDone(HttpRequestHandler.java:358)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:425)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:163)
         at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:275)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
         at java.lang.Thread.run(Thread.java:595)
    Please help.
    Thanks
    Raza

    It just displays the login UI components and a link at top-left displays "Skip to Content". When the username and password is entered and hit the submit button, it doesn't work. This issue is intermittent.
    Please help as this is a show stopper to my deliverables.
    Thanks
    Raza

  • Java.lang.IllegalStateException: Already Connected  Exception

    I get java.lang.IllegalStateException: Already Connected Exception while executing
    HttpURLConnection conn = (HttpURLConnection) url.openConnection();
    conn.setRequestMethod("POST");
    (Exception here) conn.setDoOutput(true); // we want to send things
    // the Content-type should be default, but we set it anyway
    conn.setRequestProperty( "Content-type", "application/x-www-form-urlencoded" );
    // the content-length should not be necessary, but we're cautious
    conn.setRequestProperty( "Content-length", Integer.toString(body.length()));
    Can any one please let me know how to get this thing fixed

    Remove either the line setRequestMethod("POST") or the setDoOutput(true). How did you came on the idea to set them both?
    You may find those snippets useful as well: http://balusc.blogspot.com/2006/05/httpservletutil.html#doPost

  • FAIL - Encountered exception java.lang.IllegalStateException: Container or

    I am getting following exception while running the build.xml for springmvc simple application
    [reload] FAIL - Encountered exception java.lang.IllegalStateException: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[springmulti] has not been started

    It would be a good idea (or at least a nice idea :)) to post what the problem was so that someone else who runs into a similar problem may be able to find the solution without having to repost. Just a suggestion.

  • Exception in thread "main" java.lang.IllegalStateException

    this is the code
    when i am running it i am gettinga n exception stating that
    "Exception in thread "main" java.lang.IllegalStateException: No match found
    at java.util.regex.Matcher.group(Unknown Source)
    at java.util.regex.Matcher.group(Unknown Source)
    at LinkGetter.getLinks(LinkGetter.java:36)
    at LinkGetter.main(LinkGetter.java:80) "
    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.util.ArrayList;
    import java.util.List;
    import java.util.regex.*;
    //import java.util.regex.Pattern;
    public class LinkGetter{
         private static Pattern htmltag;
         private static Pattern link;
         //private final String root;
         public static List<String> getLinks(String url) {
              List<String> links = new ArrayList<String>();
              try {
                   BufferedReader bufferedReader = new BufferedReader(
                             new InputStreamReader(new URL(url).openStream()));
                   String s;
                   StringBuilder builder = new StringBuilder();
                   while ((s = bufferedReader.readLine()) != null) {
                        builder.append(s);
                   Matcher tagmatch = htmltag.matcher(builder.toString());
                   while (tagmatch.find()) {
                        Matcher m = link.matcher(tagmatch.group(1));
                        m.find();
                        String link = m.group().replaceFirst("href=\"", "").replaceFirst("\">", "");
                        if (valid(link)) {
                             links.add(makeAbsolute(url, link));
              } catch (MalformedURLException e) {
                   e.printStackTrace();
              } catch (IOException e) {
                   e.printStackTrace();
    System.out.println(links);
              return links;
         private static boolean valid(String s) {
              if (s.matches("javascript:.*|mailto:.*")) {
                   return false;
              return true;
         private static String makeAbsolute(String url, String link) {
              if (link.matches("http://.*")) {
                   return link;
              if (link.matches("/.*") && url.matches(".*$[^/]")) {
                   return url + "/" + link;
              if (link.matches("[^/].*") && url.matches(".*[^/]")) {
                   return url + "/" + link;
              if (link.matches("/.*") && url.matches(".*[]")) {
                   return url + link;
              if (link.matches("/.*") && url.matches(".*[^/]")) {
                   return url + link;
              throw new RuntimeException("Cannot make the link absolute. Url: " + url
                        + " Link " + link);
    public static void main(String args[ ])
    htmltag = Pattern.compile("<a\\s+href\\s*=\\s*\"?(.*?)[\"|>]",Pattern.CASE_INSENSITIVE );
              link = Pattern.compile("href=\"[^>]*\">");
    getLinks("http://google.com");
    can anyone one plz help me out of this

    Please use the CODE-Button when posting Code: 1. copy-and-paste your code 2. select your code 3. press "CODE" just above the text field
    Also: read the error message:
    java.lang.IllegalStateException: No match foundIt tells you that no match was found an that it happened when you called Matcher.group()
    This means that you try to call .group() although a previous .find() or .match() didn't find anything. Check that method calls return value before calling .group()

  • Getting error Servlet failed with Exception java.lang.IllegalStateException

    Hi
    I am getting this error throughout the server when i am trying to download a pdf from that page.
    Im attaching the error console
    2011 5:10:26 PM CEST> <Error> <HTTP> <aczocc08x.vfcz.dc-ratingen.de> <ShopSrv1_1_pre> <[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1306163426535> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@172d19e - appName: 'OCC', name: '/shop', context-path: '/shop'] Servlet failed with Exception
    java.lang.IllegalStateException: Cannot resize buffer - 76438 bytes have already been written (Servlet 2.3, sec. 5.1)
         at weblogic.servlet.internal.ServletResponseImpl.setBufferSize(ServletResponseImpl.java:338)
         at weblogic.servlet.jsp.PageContextImpl.initialize(PageContextImpl.java:74)
         at weblogic.servlet.jsp.PageContextImpl.<init>(PageContextImpl.java:110)
         at weblogic.servlet.jsp.JspFactoryImpl.getPageContext(JspFactoryImpl.java:40)
         at jsp_servlet._checkout._order.__cart_thank_45_you._jspService(__cart_thank_45_you.java:644)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at vodafone.servlet.security.HttpsEnforcingFilter.doFilter(HttpsEnforcingFilter.java:39)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at atg.servlet.pipeline.TailPipelineServlet.service(TailPipelineServlet.java:90)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.DispatcherPipelineServletImpl.service(DispatcherPipelineServletImpl.java:202)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:279)
         at vodafone.dynamo.servlet.LocaleRedirector.service(LocaleRedirector.java:75)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:279)
         at atg.servlet.dafpipeline.RecordingServlet.service(RecordingServlet.java:280)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.http.CookieBufferServlet.service(CookieBufferServlet.java:97)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.userprofiling.ExpiredPasswordServlet.service(ExpiredPasswordServlet.java:356)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.MimeTyperPipelineServlet.service(MimeTyperPipelineServlet.java:206)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.droplet.DropletEventServlet.service(DropletEventServlet.java:565)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.sessionsaver.SessionSaverServlet.service(SessionSaverServlet.java:2442)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.commerce.order.CommerceCommandServlet.service(CommerceCommandServlet.java:128)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.commerce.promotion.PromotionServlet.service(PromotionServlet.java:191)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.userprofiling.AccessControlServlet.service(AccessControlServlet.java:602)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.userprofiling.PageEventTriggerPipelineServlet.service(PageEventTriggerPipelineServlet.java:169)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.userprofiling.SessionEventTrigger.service(SessionEventTrigger.java:461)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at vodafone.servlets.ServletHelper.service(ServletHelper.java:34)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at vodafone.dynamo.servlet.DefaultCatalogFixer.service(DefaultCatalogFixer.java:54)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.commerce.profile.VodafoneSSOProfileRequestServlet.service(VodafoneSSOProfileRequestServlet.java:231)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.userprofiling.ProfileRequestServlet.service(ProfileRequestServlet.java:480)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at vodafone.session.SessionSynchronizationServlet.service(SessionSynchronizationServlet.java:38)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.DynamoPipelineServlet.service(DynamoPipelineServlet.java:469)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.PathAuthenticationPipelineServlet.service(PathAuthenticationPipelineServlet.java:370)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.userprofiling.sso.PassportServlet.service(PassportServlet.java:561)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.security.ThreadUserBinderServlet.service(ThreadUserBinderServlet.java:91)
         at atg.servlet.pipeline.PipelineableServletImpl.passRequest(PipelineableServletImpl.java:116)
         at atg.servlet.pipeline.HeadPipelineServlet.passRequest(HeadPipelineServlet.java:1100)
         at atg.servlet.pipeline.HeadPipelineServlet.service(HeadPipelineServlet.java:782)
         at atg.servlet.pipeline.PipelineableServletImpl.service(PipelineableServletImpl.java:231)
         at atg.filter.dspjsp.PageFilter.doFilter(Unknown Source)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3393)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    >
    Anyone has any idea or faced this issue before please guide me what is the cause, i have got a feeling that this may be because server has run out of memory.

    i havn't written anything before calling set buiffer sizeSo why does the exception message say the opposite?
    I can see that error may be because of a jsp named cart_thank-you.jspSo can I. So have a look at it. It is writing something before the other thing is calling setBufferSize().
    you can see that in erro logSo can you.

  • CONTAINER EXCEPTION: java.lang.IllegalStateException: No transaction.

    Hi
    I am trying to make two queries to an oracle db from a Entity Bean in one trasaction.
    And get the transaction to rollback if something goes wrong.
    public void ejbCreate()
    try{
    manager = (TransactionManager) new InitialContext().lookup("java:/TransactionManager");
    tx = manager.getTransaction();
    conn = getConnection();
    conn.setAutoCommit(false);
    execQuery(sql_1);
    execQuery(sql_2);
    tx.commit();
    }catch(Exception ex){
    tx.rollback();
    The commit and the rollback works fine but on return to my Client i get the Exception: CONTAINER EXCEPTION: java.lang.IllegalStateException: No transaction.
    Has someone any ideas?

    It would be a good idea (or at least a nice idea :)) to post what the problem was so that someone else who runs into a similar problem may be able to find the solution without having to repost. Just a suggestion.

  • Java.lang.IllegalStateException: HttpSession is invalid problem

    Hi,
    I get randomly in my application "java.lang.IllegalStateException: HttpSession
    is invalid" exception thrown when I call getAttribute() method on a HttpSession
    instance.
    weblogic.servlet.internal.session.SessionData.getAttribute(SessionData.java:410)
    Any feedback to avoid this problem is greately appreciated

    Hi Eddy,
    "Eddy Vina" <[email protected]> wrote in message news:3fbc46c2$[email protected]..
    I get randomly in my application "java.lang.IllegalStateException: HttpSession
    is invalid" exception thrown when I call getAttribute() method on a HttpSession
    instance.
    weblogic.servlet.internal.session.SessionData.getAttribute(SessionData.java:410)
    Any feedback to avoid this problem is greately appreciatedThis happens because getAttribute(...) is called on an invalidated
    session. The session could have timed out or been invalidated
    explicitly by the moment the call was made.
    That may happen if you "cache" session objects.
    Hope this helps.
    Regards,
    Slava Imeshev

  • Java.lang.IllegalStateException occurs in jsp page

    Hi,
    I'm having some trouble with my error page, and was wondering if anyone else has run into the problem and has a workaround?
    I have an error page set up to deal with uncaught exceptions,and it seems to work fine for most uncaught JPS exceptions.Except: When the exception is thrown after a lot of HTML
    (dozens of lines of HTML), the servlet engine will not forward to the error page, but complains
    java.lang.IllegalStateException
    here is the error log file:
    Internal error: exception thrown from the servlet service function (uri=/geselfserv/MyProfile.jsp): java.lang.IllegalStateException, stack: java.lang.IllegalStateException
         at com.netscape.server.http.servlet.NSRequestDispatcher.forward(NSRequestDispatcher.java:68)
         at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:355)
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:379)
         at jsps.geselfserv._MyProfile_jsp._jspService(_MyProfile_jsp.java:777)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
         at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:533)
    i increased the buffer till 1024Kb but problem is same, it is giving the same exception.
    I searched the same problem in forum bt i didn't get any satisfacory answer.
    Pls help me out frm this problem.I would really appreciate for ur response.
    Regards
    Sachi

    Hello,
    The error tells you the line that the error is happening on, line 777 in the java file (not the jsp) you can look at that code and try to find the corresponding jsp lines. If you are using the sendRedirect() method, it may be a direct cause. I think since you are:
    Sending a page info, then that page is sending to another page ...
    You are getting an Illegal state because one method is trying to close out beforethe previous finished executing. Try to just switch thre sendRedirect with the <jsp:forward ... > statement. It may not be exact to what you need right now, but you may at least get the errors to start to go away.
    Internal error: exception thrown from the servlet service function (uri=/geselfserv/MyProfile.jsp): java.lang.IllegalStateException, stack: java.lang.IllegalStateException
    at com.netscape.server.http.servlet.NSRequestDispatcher.forward(NSRequestDispatcher.java:68)
    at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:355)
    at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:379)
    at jsps.geselfserv._MyProfile_jsp._jspService(_MyProfile_jsp.java:777)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
    at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:533)

  • Got java.lang.IllegalStateException: IOException: "utf-8"

    Can someone please help me with this? I got a java.lang.IllegalStateException: IOException: "utf-8" error when calling web service. The exception is like the following:
    javax.xml.ws.soap.SOAPFaultException: java.lang.IllegalStateException: IOException: "utf-8"
    at com.sun.xml.ws.fault.SOAP11Fault.getProtocolException(SOAP11Fault.java:196)
    at com.sun.xml.ws.fault.SOAPFaultBuilder.createException(SOAPFaultBuilder.java:122)
    at com.sun.xml.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:196)
    at com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:215)
    at oracle.sysman.connector.common.ConnectorServiceSoapWrapper.sendRequestBase(ConnectorServiceSoapWrapper.java:202)
    ConnectorServiceSoapWrapper is my class and in sendRequestBase() method I had the following statement to invoke the web service.
    Dispatch<SOAPMessage> dispatch = service.createDispatch(null, SOAPMessage.class, Service.Mode.MESSAGE);
    SOAPMessage responseMsg = dispatch.invoke(msg);
    dispatch object is an instance of javax.xml.ws.Dispatch and service is an instance of javax.xml.ws.Service. It looks like the error is thrown out before the web service is called. Does anyone have any idea what's happening here?
    My java version is
    java version "1.6.0_14"
    Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
    Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode)
    Thanks!

    I was reading the source code of com.sun.xml.ws.client.dispatch.DispatchImpl
    http://www.docjar.com/html/api/com/sun/xml/ws/client/dispatch/DispatchImpl.java.html
    And the following piece of the code is part of the stack trace.
    +195 } catch(Throwable e){+
    +196 // it could be a RuntimeException resulting due to some internal bug or+
    +197 // its some other exception resulting from user error, wrap it in+
    +198 // WebServiceException+
    +199 throw new WebServiceException(e);+
    +200 }+
    Anyone has any hint? Thanks!

  • ZIP file download throws java.lang.IllegalStateException: Response already

    Hello.
    In my application I need to implement a functionality where user will able to download multiple image files of their choice in compressed zip format. To implement it I used af:fileDownloadActionListener. I need to submit the form before going to process the zip. For that I have added to af:commandLinks.
    The following commandlink will process the download:
    <af:commandLink id="cl19" binding="#{pageFlowScope.album.downloadZipLink}" visible="false" text="jym">
                    <af:fileDownloadActionListener filename="Compressed.zip" contentType="application/zip" method="#{pageFlowScope.album.downloadZip}"/>
    </af:commandLink>And this commandlink will submit the form and invoke the click event of the first commandlink
    <af:commandLink text="Download" styleClass="functionButton" id="cl13" actionListener="#{pageFlowScope.album.downloadZip}"/>The downloadZip actionlistener is:
        public void downloadZip(ActionEvent actionEvent) {
            FacesContext context = FacesContext.getCurrentInstance();       
            ExtendedRenderKitService service = Service.getService(context.getRenderKit(), ExtendedRenderKitService.class);
            StringBuilder builder = new StringBuilder();
            builder.append("var link = AdfPage.PAGE.findComponentByAbsoluteId('").append(downloadZipLink.getClientId(context)).append("');");
            builder.append("AdfActionEvent.queue(link, false);");
            service.addScript(context, builder.toString());
        }And the downloadZip af:fileDownloadActionListener's method is:
        public void downloadZip(FacesContext facesContext, OutputStream outputStream) throws IdcClientException, IOException { 
            ZipOutputStream zipOutputStream = new ZipOutputStream(outputStream);
            for(List<Image> images : getAlbumDetailCurrent()){
                for(Image image : images){
                    if(image.isChecked()) {
                        CloseNotifyInputStream inputStream = (CloseNotifyInputStream)ridcConnection.getFileInputStream(image.getDocId(), image.getDocName());
                        String filename = getImageFilename(image.getDocName(), image.getFormat());       
                        zipOutputStream.putNextEntry(new ZipEntry(filename));
                        IOUtils.copy(inputStream, zipOutputStream);
                        inputStream.close();
                        zipOutputStream.closeEntry();                   
            zipOutputStream.close();
        }Everything is working fine. The zip is creating and and is being thrown to the user, but in console I am getting the following exception:
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5
    java.lang.IllegalStateException: Response already committed
         at weblogic.servlet.internal.ServletOutputStreamImpl.clearBuffer(ServletOutputStreamImpl.java:360)
         at weblogic.servlet.internal.ServletOutputStreamImpl.reset(ServletOutputStreamImpl.java:313)
         at weblogic.servlet.internal.ServletResponseImpl.reset(ServletResponseImpl.java:328)
         at javax.servlet.ServletResponseWrapper.reset(ServletResponseWrapper.java:193)
         at org.apache.myfaces.trinidadinternal.taglib.listener.FileDownloadActionListener.processAction(FileDownloadActionListener.java:127)
         at oracle.adfinternal.view.faces.event.rich.FileDownloadActionListener.processAction(FileDownloadActionListener.java:77)
         at javax.faces.event.ActionEvent.processListener(ActionEvent.java:88)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcast(UIXComponentBase.java:675)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:179)
         at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:148)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96)
         at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:1018)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:386)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:194)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         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.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.portlet.client.adapter.adf.ADFPortletFilter.doFilter(ADFPortletFilter.java:32)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.framework.events.dispatcher.EventDispatcherFilter.doFilter(EventDispatcherFilter.java:44)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.wcps.client.PersonalizationFilter.doFilter(PersonalizationFilter.java:75)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.content.integration.servlets.ContentServletFilter.doFilter(ContentServletFilter.java:168)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.webcenter.lifecycle.filter.LifecycleLockFilter.doFilter(LifecycleLockFilter.java:151)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.mhis.webfactory.filter.RelayFilter.doFilter(RelayFilter.java:144)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:442)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:139)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         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:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    <16 May, 2012 2:49:10 PM IST> <Error> <HTTP> <BEA-101020> <[ServletContext@2140334934[app:j2ee-app module:hennessy path:/hennessy spec-version:2.5 version:V2.0]] Servlet failed with Exception
    java.lang.IllegalStateException: Response already committed
         at weblogic.servlet.internal.ServletOutputStreamImpl.clearBuffer(ServletOutputStreamImpl.java:360)
         at weblogic.servlet.internal.ServletOutputStreamImpl.reset(ServletOutputStreamImpl.java:313)
         at weblogic.servlet.internal.ServletResponseImpl.reset(ServletResponseImpl.java:328)
         at javax.servlet.ServletResponseWrapper.reset(ServletResponseWrapper.java:193)
         at org.apache.myfaces.trinidadinternal.taglib.listener.FileDownloadActionListener.processAction(FileDownloadActionListener.java:127)
         Truncated. see log file for complete stacktraceI am unable to find its cause. It is not causing any problem in webpage.
    Any information will be very helpful to me.
    I am using JDeveloper 11.1.1.6.0.
    Regards.

              The reason for this exception is when you are trying to write something on the
              response stream
              which was already closed (commit) . This may happen when u write something in
              the response stream after doing a redirect/forward. OR if u r trying to redirect/forward
              more than once. bcs once u redirect/forward your response object will be flushed
              and commited..
              Hope this may help u
              regards
              Perianayagam.T
              "Jai Verma" <[email protected]> wrote:
              >
              >Hi,
              >
              >I am getting java.lang.IllegalStateException: response already committed
              >error
              >in log lot of time.
              >Any idea what does this error mean?
              >
              >thanks
              

Maybe you are looking for