[opencms-dev] Error in uploading the file

Ørnulf Risnes ornulf.risnes at nsd.uib.no
Tue Jan 13 07:22:02 CET 2004


Hi, I bet this is related to limits in the default MySql-configuration.

Try editing your "my.cnf"-file (mysql-config) in your \mysql-folder.

Add/edit the following line in the file:
set-variable    = max_allowed_packet=10M

Restart mysql.


Best regards,
Ørnulf Risnes
Nesstar ltd.



Radhakrishnan, Hariharassudhan (Cognizant) wrote:
> Hi,
>         I try to upload a file to the 950 KB file to OpenCMS. But i'm 
> getting the following error:
> 
> com.opencms.core.cmsException: 0 Unknown exception. Detailed Error: 
> CmsException ID: 0
> root cause was java.lang.IllegalArgumentException: Packet is larger than 
> max_allowed_packet from server configuration of 1048576 bytes
> 
>                 at 
> cms.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java: 
> 194).
> 
> Even i tried increasing the limit of workplace.file.maxuploadsize 
> property in opencms.properties file to 2 mb. But still i'm getting that 
> error.
> 
> I'm running opencms 5.0 in Win XP.
> 
> Help is appreciated.
> 
> Thanks,
> Hari.
> 
> 
> ------------------------------------------------------------------------
> 
> 
> This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information.
> If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. 
> Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly 
> prohibited and may be unlawful.
> 
> 		Visit us at http://www.cognizant.com




More information about the opencms-dev mailing list