Serge, thank you for your reply. I deleted the specification of the maximum
packet allowed, I also upgraded the jdbc connector for MySQL to 3.0.6-stable
but I get the following exception:
java.sql.SQLException: Communication link failure:
com.mysql.jdbc.PacketTooBigEx
ception
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:882)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:945)
at com.mysql.jdbc.Connection.execSQL(Connection.java:1809)
at
com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:1276)
at
org.apache.james.mailrepository.JDBCMailRepository.store(JDBCMailRepo
sitory.java:792)
<!-- BLA...BLA -->
Here follows the piece of config.xml related to the <smtpserver> element:
<!-- This sets the maximum allowed message size (in kilobytes) for this -->
<!-- SMTP service. If unspecified, the value defaults to 0, which
means no limit. -->
<maxmessagesize></maxmessagesize>
I experienced the same problem also with 0, or big numbers (i.e.
9999999999), but I obtained nothing. If you think this is a MySQL problem,
please let me know, and I'll search the reply somewhere else.
Thanks,
Marco
----- Original Message -----
From: "Serge Knystautas" <[EMAIL PROTECTED]>
To: "James Users List" <[EMAIL PROTECTED]>
Sent: Sunday, October 12, 2003 9:31 PM
Subject: Re: Usual encoding problem + size limit.
> Marco Tedone wrote:
> > Noel, just to let you know that I'm still receiving the following
exception
> > also with 2.2.0a13 sometime:
> >
> > java.io.IOException: Error in encoded stream, got 1
> > at
> > com.sun.mail.util.BASE64DecoderStream.decode(BASE64DecoderStream.java
> > :148)
> > at
> > <!-- BLA.....BLA -->
> >
> > Time ago I also sent an email related to a problem with my email size.
For
> > email larger that circa 1M I obtained an error which stated that the
email
> > was larger than 1048756, even if I specified no size limit in the
> > configuration file. I asked if this was a problem related to MySQL
(maybe
> > the driver) or to James, but I didn't receive any answer. Could you
please
> > illuminate me on this?
>
> The exception looks most like a bad mime message. A brief bit of info
> on the MySQL limitation is here: http://james.apache.org/FAQ.html#16.
> If you are getting an error message stating the email was larger than
> the 1 meg limit, double check you are editing the right limit in the
> conf file. Maybe try setting it to a different limit as it might be
> interpretting your "no size limit" as invalid and using a 1 meg default.
>
> --
> Serge Knystautas
> President
> Lokitech >>> software . strategy . design >> http://www.lokitech.com
> p. 301.656.5501
> e. [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]