[Logo] OLD FORUM - Use new one: https://www.CaptainCasa.online/forum
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
IllegalStateException in CompressionResponseWrapper  XML
Forum Index -> Development
Author Message
krinninger

Power User

Joined: 17/11/2008 21:19:41
Messages: 567
Offline

Sometimes i find following stacktrace is my server logs.
I'm not quite sure if this is a real problem or just something to forget.

it seems that there might be problems sometimes by closing stream in
CompressionResponseWrapper.

Code:
 java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END
             at java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncoder.java:941)
             at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:537)
             at sun.nio.cs.StreamEncoder$CharsetSE.flushLeftoverChar(StreamEncoder.java:358)
             at sun.nio.cs.StreamEncoder$CharsetSE.implClose(StreamEncoder.java:414)
             at sun.nio.cs.StreamEncoder.close(StreamEncoder.java:160)
             at java.io.OutputStreamWriter.close(OutputStreamWriter.java:222)
             at java.io.PrintWriter.close(PrintWriter.java:287)
             at org.eclnt.jsfserver.util.CompressionResponseWrapper.finishResponse(CompressionResponseWrapper.java:38)
             at org.eclnt.jsfserver.util.CompressionFilter.doFilter(CompressionFilter.java:34)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at de.aeb.xnsg.session.XNSGSessionContextFilter.doFilter(XNSGSessionContextFilter.java:68)
             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
             at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
             at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
             at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
             at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
             at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
             at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
             at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
             at org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:481)
             at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
             at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
             at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:307)
             at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
             at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:748)
             at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:678)
             at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:871)
             at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
             at java.lang.Thread.run(Thread.java:595)
 


does anyone experienced something similiar?
We are using JDK 1.5 in this scenario.

Greetings,
Michael
bthalheim

Power User

Joined: 05/04/2012 11:45:24
Messages: 72
Offline

Hi,

I have searched through all my logs for "java.lang.IllegalStateException: Current state". Nothing was found.

It seems I don't have this problem. I use the release of 2012-07-23.

Björn
krinninger

Power User

Joined: 17/11/2008 21:19:41
Messages: 567
Offline

thanks for your reply.

so we are still observing this issue
krinninger

Power User

Joined: 17/11/2008 21:19:41
Messages: 567
Offline

we still facing this issue ocassionally.
mostly on servers hosting a lot of sessions.

Could it be a synchronization problem?

i found following on stackoverflow.

http://stackoverflow.com/questions/1252468/java-converting-string-to-and-from-bytebuffer-and-associated-problems
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team