[opencms-dev] Please help to upload file>16MB
Rafael Diaz Valdes
Rafael.Diaz.Valdes at cern.ch
Thu Mar 3 12:38:01 CET 2005
Hi list
Please I need help, I want to upload a file with size> 16M, i made the following changes in my configuration:
mysql (my.cnf)
[mysqld]
max_allowed_packet=512M
key_buffer_size=512M
also i put the JAVA_OPTS
JAVA_OPTS = "-Xmx1024m -Xms512m"
In the workplace the first step to upload the files is finished but when you select the file type the process never end, after that i have to close the section and login again, then I can find the file in the wokplace but when you click on it this is the error:
*************************************************************
com.opencms.core.CmsException: 4 Sql exception. Detailed error: [com.opencms.file.mySql.CmsDbAccess] Error during query: Unexpected Exception: java.lang.IndexOutOfBoundsException message given: null
Nested Stack Trace:
** BEGIN NESTED EXCEPTION **
java.lang.IndexOutOfBoundsException
STACKTRACE:
java.lang.IndexOutOfBoundsException
at java.io.BufferedInputStream.read(BufferedInputStream.java:272)
at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:1058)
at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:1374)
at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:705)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:263)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:985)
at com.mysql.jdbc.Connection.execSQL(Connection.java:1844)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1458)
at com.opencms.dbpool.CmsPreparedStatement.executeQuery(CmsPreparedStatement.java:173)
at com.opencms.file.mySql.CmsDbAccess.readFile(CmsDbAccess.java:674)
at com.opencms.file.genericSql.CmsResourceBroker.readFile(CmsResourceBroker.java:5203)
at com.opencms.file.CmsObject.readFile(CmsObject.java:2888)
at com.opencms.core.OpenCms.initResource(OpenCms.java:793)
at com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:306)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Thread.java:534)
Please I need to solve this problem so fast, i going to apreciate your help
best regards
rafael
More information about the opencms-dev
mailing list