users@glassfish.java.net

Hessian Remoting, gfv2: java.io.IOException: Invalid chunk header

From: <glassfish_at_javadesktop.org>
Date: Wed, 23 Sep 2009 03:19:39 PDT

Folks,

one of our applications consisting of several war modules in total makes heavy use of Hessian web services for communication, some (most?) of them wrapping access to some backend resource (database, legacy system, ...). Recently I figured out that once in a while the applications don't behave the way they are intented to, and, in these situations, my server log file provides messages like this:


[...]
[#|2009-09-23T12:16:02.746+0200|SEVERE|sun-appserver2.1|javax.enterprise.system.container.web|_ThreadID=142;_ThreadName=httpS
SLWorkerThread-8080-63;_RequestID=9ab503b6-85eb-4bd0-8199-6db82147463b;|StandardWrapperValve[remoting]: PWC1406: Servlet.serv
ice() for servlet remoting threw exception
java.io.IOException: Invalid chunk header
        at org.apache.coyote.http11.filters.ChunkedInputFilter.doRead(ChunkedInputFilter.java:171)
        at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:719)
        at org.apache.coyote.Request.doRead(Request.java:482)
        at org.apache.coyote.tomcat5.InputBuffer.realReadBytes(InputBuffer.java:342)
        at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:411)
[...]
[#|2009-09-23T12:16:02.748+0200|WARNING|sun-appserver2.1|de.planconnect.webapp.frontend.webprojekt.controllers.WebUIBinaryOut
putController|_ThreadID=98;_ThreadName=httpSSLWorkerThread-8080-140;_RequestID=3b92bdfc-9b33-4ffb-9c77-81ee7a6f6044;|FAIL:
com.caucho.hessian.client.HessianConnectionException: 500: java.io.IOException: Server returned HTTP response code: 500 for U
RL: http://localhost:8080/backend/services/filepacks
        at com.caucho.hessian.client.HessianProxy.invoke(HessianProxy.java:197)
        at $Proxy110.getFilepackById(Unknown Source)
        at sun.reflect.GeneratedMethodAccessor162.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.remoting.caucho.HessianClientInterceptor.invoke(HessianClientInterceptor.java:219)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy111.getFilepackById(Unknown Source)
[...]


Though I understand what it means, I have no real clue what to do about this... Inspirations, anyone? Googling around so far hasn't provided much usable input... :(

TIA and all the best,
Kristian
[Message sent by forum member 'kawazu' (lists_at_zimmer428.net)]

http://forums.java.net/jive/thread.jspa?messageID=365273