[opencms-dev] max_allowed_packet

Alex V Londkevich lond at udm.ru
Thu Apr 24 16:01:01 CEST 2003


I can not import a bigsize file.
I use Tomcat 4.0.6
I did not find parametr "max_allowed_packet" in tomcat settings (server.xml);
What must I do?

i get  errors :


Importing /kupol/client/doc/kupol-price-vent.rtf Exception 
java.lang.IllegalArgumentException: Packet is larger than 
max_allowed_packetmax_allowed_packet from server configuration of 1047552 
bytes
at com.mysql.jdbc.Buffer.ensureCapacity(Unknown Source)
at com.mysql.jdbc.Buffer.writeBytesNoNull(Unknown Source)
at com.mysql.jdbc.PreparedStatement.executeUpdate(Unknown Source)
at com.mysql.jdbc.PreparedStatement.executeUpdate(Unknown Source)
at 
com.opencms.dbpool.CmsPreparedStatement.executeUpdate(CmsPreparedStatement.java:176)
at 
com.opencms.file.genericSql.CmsDbAccess.createFileContent(CmsDbAccess.java:12640)
at 
com.opencms.file.genericSql.CmsDbAccess.createResource(CmsDbAccess.java:1406)
at 
com.opencms.file.genericSql.CmsResourceBroker.createResource(CmsResourceBroker.java:1986)
at com.opencms.file.CmsObject.doCreateResource(CmsObject.java:1061)
at 
com.opencms.file.CmsResourceTypePlain.importResource(CmsResourceTypePlain.java:404)
at com.opencms.file.CmsObject.importResource(CmsObject.java:2171)
at com.opencms.file.CmsImport.importResource(CmsImport.java:487)
at com.opencms.file.CmsImport.importResources(CmsImport.java:609)
at com.opencms.file.CmsImport.importResources(CmsImport.java:526)
at 
com.opencms.file.genericSql.CmsResourceBroker.importResources(CmsResourceBroker.java:4147)
at com.opencms.file.CmsObject.importResources(CmsObject.java:2197)
at 
com.opencms.workplace.CmsAdminDatabaseImportThread.run(CmsAdminDatabaseImportThread.java:79)



More information about the opencms-dev mailing list