You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by JRC <po...@neonkiwi.com> on 2002/10/21 22:37:06 UTC
Packet is larger than max_allowed_packet
WinXP
JDK1.3.1_04
James 2.0a2 + POP3Handler.java 2.1a1-2002-08-18
I've recently switched from file to database for inbox repository and am encountering the following issue. database will not accept files larger than around 500K-800K. where do i make the needed changes to allow larger files? config.xml is <maxmessagesize>0</maxmessagesize>
Phoenix 3.1a1-dev
James 2.0a2
Started POP3 Server plain:110
Started SMTP Server plain:25
Started NNTP Server plain:119
java.lang.IllegalArgumentException: Packet is larger than max_allowed_packet fro
m server configuration of 1048576 bytes
at org.gjt.mm.mysql.Buffer.ensureCapacity(Buffer.java:398)
at org.gjt.mm.mysql.Buffer.writeBytesNoNull(Buffer.java:386)
at org.gjt.mm.mysql.PreparedStatement.execute(PreparedStatement.java:103
6)
at org.apache.james.mailrepository.JDBCMailRepository.store(JDBCMailRepo
sitory.java:423)
at org.apache.james.James.storeMail(James.java:435)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.avalon.phoenix.components.application.BlockInvocationHandl
er.invoke(BlockInvocationHandler.java:88)
at $Proxy9.storeM....................................................etc., etc.
regards,
RE: Packet is larger than max_allowed_packet
Posted by "Noel J. Bergman" <no...@devtech.com>.
This isn't a James issue. This is a configuration item for MySQL.
http://www.mail-archive.com/james-user@jakarta.apache.org/msg01670.html
This probably belongs in the FAQ and the Using JDBC sections.
One thing that you won't find documented elsewhere is this:
http://www.mail-archive.com/james-dev@jakarta.apache.org/msg03415.html
--- Noel
-----Original Message-----
From: JRC [mailto:postmaster@neonkiwi.com]
Sent: Monday, October 21, 2002 16:37
To: james-user
Subject: Packet is larger than max_allowed_packet
WinXP
JDK1.3.1_04
James 2.0a2 + POP3Handler.java 2.1a1-2002-08-18
I've recently switched from file to database for inbox repository and am
encountering the following issue. database will not accept files larger
than around 500K-800K. where do i make the needed changes to allow larger
files? config.xml is <maxmessagesize>0</maxmessagesize>
Phoenix 3.1a1-dev
James 2.0a2
Started POP3 Server plain:110
Started SMTP Server plain:25
Started NNTP Server plain:119
java.lang.IllegalArgumentException: Packet is larger than max_allowed_packet
fro
m server configuration of 1048576 bytes
at org.gjt.mm.mysql.Buffer.ensureCapacity(Buffer.java:398)
at org.gjt.mm.mysql.Buffer.writeBytesNoNull(Buffer.java:386)
at
org.gjt.mm.mysql.PreparedStatement.execute(PreparedStatement.java:103
6)
at
org.apache.james.mailrepository.JDBCMailRepository.store(JDBCMailRepo
sitory.java:423)
at org.apache.james.James.storeMail(James.java:435)
at java.lang.reflect.Method.invoke(Native Method)
at
org.apache.avalon.phoenix.components.application.BlockInvocationHandl
er.invoke(BlockInvocationHandler.java:88)
at
$Proxy9.storeM....................................................etc., etc.
regards,
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>