post action error use omnifaces and glassfish 3 or 4

Splash Forums PrettyFaces Users post action error use omnifaces and glassfish 3 or 4

This topic contains 3 replies, has 3 voices, and was last updated by  sertan76 8 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #25317


    I wrote a simple application which use pretty faces and glassfish. This app uses a post method and call an other page. Normally, it works. Although I added omnifaces gzipfilter to web.xml, glassfish gives an error like below. How can I solve this problem?
    WARNING: StandardWrapperValve[Faces Servlet]: PWC1406: Servlet.service() for servlet Faces Servlet threw exception
    java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END
    at java.nio.charset.CharsetEncoder.throwIllegalStateException(
    at java.nio.charset.CharsetEncoder.encode(
    at sun.nio.cs.StreamEncoder.flushLeftoverChar(
    at sun.nio.cs.StreamEncoder.implClose(
    at sun.nio.cs.StreamEncoder.close(
    at org.omnifaces.servlet.HttpServletResponseOutputWrapper.close(
    at org.omnifaces.servlet.GzipHttpServletResponse.close(
    at org.omnifaces.filter.GzipResponseFilter.doFilter(
    at org.omnifaces.filter.HttpFilter.doFilter(
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(
    at org.apache.catalina.core.StandardWrapperValve.invoke(
    at org.apache.catalina.core.StandardContextValve.invoke(
    at org.apache.catalina.core.StandardPipeline.doInvoke(
    at org.apache.catalina.core.StandardPipeline.invoke(
    at org.apache.catalina.core.StandardHostValve.invoke(
    at org.apache.catalina.connector.CoyoteAdapter.doService(
    at org.apache.catalina.connector.CoyoteAdapter.service(
    at com.sun.grizzly.http.ProcessorTask.invokeAdapter(
    at com.sun.grizzly.arp.DefaultAsyncExecutor.execute(
    at com.sun.grizzly.arp.DefaultAsyncExecutor.interrupt(
    at com.sun.grizzly.arp.AsyncProcessorTask.doTask(
    at com.sun.grizzly.http.TaskBase.execute(
    at com.sun.grizzly.arp.DefaultAsyncHandler.handle(
    at com.sun.grizzly.arp.AsyncProtocolFilter.execute(
    at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(
    at com.sun.grizzly.DefaultProtocolChain.execute(
    at com.sun.grizzly.DefaultProtocolChain.execute(
    at com.sun.grizzly.http.HttpProtocolChain.execute(
    at com.sun.grizzly.ProtocolChainContextTask.doCall(
    at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(
    at com.sun.grizzly.util.AbstractThreadPool$

    • This topic was modified 8 years, 2 months ago by  sertan76.

    Hmmm. This exception is thrown from the Omnifaces code. And the RewriteFilter isn’t anywhere is the stacktrace, which may be OK, because the RewriteFilter could be configured to run AFTER the Omnifaces filter and the Omnifaces stuff fails before the RewriteFilte does anything. I think this is more a Omnifaces problem. I don’t see any reason why Rewrite could cause this.


    Could you try your application without Rewrite/PrettyFaces and see if the problem persists? Thanks.



    I wrote pretty filter before omnifaces gzipfilter problem is solved. Thanks for your effort.

Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘PrettyFaces Users’ is closed to new topics and replies.

Comments are closed.