cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grzegorz TaƱczyk <>
Subject Re: Malformed stream
Date Tue, 15 Nov 2005 11:44:59 GMT
Hello Andreas,

  If You are using Tomcat then try to set up timeouts(connection,
  read, upload and others if there are any) in server.xml.

Tuesday, November 15, 2005, 10:39:33 AM, you wrote:

AH> Hi Cocoon devs,

AH> we're experiencing a file upload problem which occurs occasionally:

AH> 1581402 2005-11-14 18:14:48,082 [TP-Processor6] ERROR 
AH> access.service():1035  -
AH> Problem with Cocoon servlet
AH> org.apache.cocoon.servlet.multipart.MultipartException: Malformed stream
AH> at
AH> org.apache.cocoon.servlet.multipart.MultipartParser.parseMultiPart
AH> (
AH> at org.apache.cocoon.servlet.multipart.MultipartParser.getParts 
AH> (
AH> ...

AH> The code snippet in question is:

AH>          while (ts.getState() == TokenStream.STATE_NEXTPART) {
AH>              ts.nextPart();
AH>              parsePart(ts);
AH>          }

AH>          if (ts.getState() != TokenStream.STATE_ENDMULTIPART) {
AH>              // sanity check
AH> [*]         throw new MultipartException("Malformed stream");
AH>          }

AH> Setup:

AH> - httpd as proxy
AH> - Tomcat 5.5.9
AH> - Cocoon 2.1.7

AH> Is this a known issue?
AH> Google pointed me to


AH> Maybe this is the same problem?

AH> Thanks in advance!
AH> Andreas

Best regards,

View raw message