users@glassfish.java.net

Invalid chunk during servlet execution

From: <glassfish_at_javadesktop.org>
Date: Fri, 08 Jun 2007 07:16:50 PDT

Hi!

I'm getting an exception during servlet processing that amongst other things involves uploading an image to a server. The exception is "java.io.IOException: Invalid chunk". If I run the exact same war file on a Tomcat installation this does not happen, but on SJAS 9 (latest official Sun release) I'm getting this error. If I do the same call again later it usually works, for some reason, so it's not a constant issue.

Does anyone know what might be the cause of this? Any help would be greatly appreciated. I can't post the source for the servlet, I'm afraid.

Servlet.service() for servlet myServlet threw exception
java.io.IOException: Invalid chunk
        at org.apache.coyote.http11.filters.ChunkedInputFilter.doRead(ChunkedInputFilter.java:141)
        at org.apache.coyote.http11.InternalInputBuffer.doRead(InternalInputBuffer.java:827)
        at org.apache.coyote.Request.doRead(Request.java:447)
        at org.apache.coyote.tomcat5.InputBuffer.realReadBytes(InputBuffer.java:313)
        at org.apache.tomcat.util.buf.ByteChunk.substract(ByteChunk.java:382)
        at org.apache.coyote.tomcat5.InputBuffer.read(InputBuffer.java:328)
        at org.apache.coyote.tomcat5.CoyoteInputStream.read(CoyoteInputStream.java:202)
        at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2264)
        at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2277)
        at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2748)
        at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:780)
        at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
        at com.ud.comm.server.ProxyServlet.getInputStream(ProxyServlet.java:142)
        at com.ud.comm.server.ProxyServlet.doPost(ProxyServlet.java:29)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
        at org.apache.hivemind.servlet.HiveMindFilter.doFilter(HiveMindFilter.java:172)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
        at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
        at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
        at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
        at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
        at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
        at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
        at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
        at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
        at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
        at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
        at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
        at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
        at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
[Message sent by forum member 'dapendragon' (dapendragon)]

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