Problem with uploading files to dotCMS/submitContent servlet

81 views
Skip to first unread message

bartpl...@gmail.com

unread,
Jun 13, 2013, 10:49:29 AM6/13/13
to dot...@googlegroups.com
Hi guys,

I am trying to upload a file to the dotCMS/submitContent servlet from the frontend of my website to the dotCMS backend.
The dotCMS is running linux and is version 2.3.

Im getting the following error on every file that i try to upload:


[13/06/13 16:47:28:516 CEST] ERROR common.MsgAjp: Buffer overflow: buffer.len=8192 pos=206 data=23647417
[13/06/13 16:47:28:516 CEST] ERROR common.MsgAjp: Overflow
java.lang.Throwable
        at org.apache.jk.common.MsgAjp.cpBytes(MsgAjp.java:196)
        at org.apache.jk.common.MsgAjp.appendByteChunk(MsgAjp.java:170)
        at org.apache.jk.common.MsgAjp.appendBytes(MsgAjp.java:155)
        at org.apache.jk.common.JkInputStream.appendHead(JkInputStream.java:324)
        at org.apache.jk.core.MsgContext.action(MsgContext.java:266)
        at org.apache.coyote.Response.action(Response.java:183)
        at org.apache.coyote.Response.sendHeaders(Response.java:379)
        at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:305)
        at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:273)
        at org.apache.catalina.connector.Response.finishResponse(Response.java:492)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:322)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
        at java.lang.Thread.run(Thread.java:662)

Do you guys have any idea whats going wrong here?

greetings Bart Plasmans

Jason Tesser

unread,
Jun 13, 2013, 11:58:03 AM6/13/13
to dot...@googlegroups.com
This is not a dotCMS Issue. I believe you are using JKMod. It is an issue with the MAX Header Size for your JKMod. I bet if you submitted directly to tomcat you would not get this error

On Thu, Jun 13, 2013 at 10:49 AM, <bartpl...@gmail.com> wrote:
common.MsgAjp: Overflow


bartpl...@gmail.com

unread,
Jun 17, 2013, 2:44:23 AM6/17/13
to dot...@googlegroups.com
Hi Jason,

I disconnected the AJP connector and posted to the HTTP connector directly.
Now we get the following order:

[17/06/13 08:43:45:253 CEST] ERROR connector.CoyoteAdapter: An exception or error occurred in the container during the request processing
java.lang.ArrayIndexOutOfBoundsException: 8192
        at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:715)
        at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:622)
        at org.apache.coyote.http11.InternalOutputBuffer.sendHeader(InternalOutputBuffer.java:495)
        at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1624)
        at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:947)
        at org.apache.coyote.Response.action(Response.java:183)
        at org.apache.coyote.Response.sendHeaders(Response.java:379)
        at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:305)
        at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:273)
        at org.apache.catalina.connector.Response.finishResponse(Response.java:492)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:322)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:662)
[17/06/13 08:43:45:256 CEST] ERROR http11.Http11Processor: Error finishing response
java.lang.ArrayIndexOutOfBoundsException
        at java.lang.System.arraycopy(Native Method)
        at org.apache.coyote.http11.InternalOutputBuffer.write(InternalOutputBuffer.java:684)
        at org.apache.coyote.http11.InternalOutputBuffer.sendStatus(InternalOutputBuffer.java:419)
        at org.apache.coyote.http11.Http11Processor.prepareResponse(Http11Processor.java:1611)
        at org.apache.coyote.http11.Http11Processor.action(Http11Processor.java:947)
        at org.apache.coyote.Response.action(Response.java:181)
        at org.apache.coyote.http11.InternalOutputBuffer.endRequest(InternalOutputBuffer.java:379)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:892)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
        at java.lang.Thread.run(Thread.java:662)

Jason Tesser

unread,
Jun 17, 2013, 7:29:49 AM6/17/13
to dot...@googlegroups.com
I think you are uploading very large files or headers. Take a look here at the connector attributes http://tomcat.apache.org/tomcat-6.0-doc/config/http.html and see maxPostSize


--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com.
To post to this group, send email to dot...@googlegroups.com.
Visit this group at http://groups.google.com/group/dotcms.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

bartpl...@gmail.com

unread,
Jun 21, 2013, 6:09:40 AM6/21/13
to dot...@googlegroups.com, bartpl...@gmail.com
Thank you Jason,

we changed the settings and now it seems to work.

greetings Bart
Reply all
Reply to author
Forward
0 new messages