[opencms-dev] Tomcat/Apache Problem with Image Uploading

simon wilks simon.wilks at silion.ch
Tue Jun 12 11:40:14 CEST 2001


Hi all,

I am using Tomcat with OpenCms 4.3.8 and 4.3.18 on W2K and RedHat 7.0 and
7.1 and have the same problem on all.

If I access Tomcat directly over Port 8080 I CAN upload images into the
image library.

If I access over Apache using mod_jk I cannot upload any images and get the
Java Exception:


java.lang.StringIndexOutOfBoundsException: String index out of range: -1
	at java.lang.RuntimeException.(RuntimeException.java:49)
	at java.lang.IndexOutOfBoundsException.(IndexOutOfBoundsException.java:46)
	at
java.lang.StringIndexOutOfBoundsException.(StringIndexOutOfBoundsException.j
ava:59)
	at java.lang.StringBuffer.setLength(StringBuffer.java:244)
	at
com.opencms.core.CmsMultipartInputStreamHandler.readLine(CmsMultipartInputSt
reamHandler.java:117)
	at
com.opencms.core.CmsRequestHttpServlet.readNextPart(CmsRequestHttpServlet.ja
va:516)
	at
com.opencms.core.CmsRequestHttpServlet.readRequest(CmsRequestHttpServlet.jav
a:658)
	at com.opencms.core.CmsRequestHttpServlet.(CmsRequestHttpServlet.java:135)
	at com.opencms.core.OpenCmsHttpServlet.doPost(OpenCmsHttpServlet.java:511)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at com.opencms.boot.OpenCmsServlet.service(OpenCmsServlet.java:106)
	at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
	at org.apache.tomcat.core.Handler.service(Handler.java:286)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection
(Ajp13ConnectionHandler.java:160)
	at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:498)

Does anyone using Tomcat have this problem or know what is going on here?

Regards,

Simon.




More information about the opencms-dev mailing list