[
http://issues.apache.org/jira/browse/JAMES-466?page=comments#action_12374946 ]
Stefano Bagnara commented on JAMES-466:
---------------------------------------
Can you tell me where did you add the size/baos/messageExists logs?
The weird thing here is that you have the same mail stored twice with 2
different size/baos: can you post your config.xml?
>From the stacktrace I see the repository.store() method has been called by the
>RemoteDelivery, and looking at the message name I guess you have a gateway
>configured: am I right? Otherwise the mail names should end by
>"-to-<recipientdomainname>"
Can you add a few debug lines to the MessageInputStream class (log the message
name and the full stack trace in the "} catch (IOException e) {" block in the
pipedstream handling Thread. (MessageInputStream:67)
You may consider adding logs to the throwException() method
(MessageInputStream:126).
Have you identified a "problematic" message so that we can try reproducing this?
Another test could be to add a debug mailet just before the RemoteDelivery.
Something like the DumpSystemErr but saving the message to a file named like
the mail.getName() (instead of System.err) so that it logs every mail it
process.
> java.sql.SQLException: Error reading from InputStream java.io.IOException in
> current trunk
> ------------------------------------------------------------------------------------------
>
> Key: JAMES-466
> URL: http://issues.apache.org/jira/browse/JAMES-466
> Project: James
> Type: Bug
> Components: MailStore & MailRepository
> Versions: 2.3.0a1
> Environment: java 1.5, mysql-connector-java-3.0.17-ga-bin.jar
> Reporter: Norman Maurer
> Assignee: Stefano Bagnara
> Priority: Blocker
>
> After upgrading to latest trunk i notice this exception about 8 times today:
> 01/04/06 21:52:53 ERROR spoolmanager: Exception in processor <transport>
> javax.mail.MessagingException: Exception caught while storing mail Container:
> ;
> nested exception is:
> java.sql.SQLException: Error reading from InputStream
> java.io.IOException
> at
> org.apache.james.mailrepository.JDBCMailRepository.store(JDBCMailRepository.java:755)
> at
> org.apache.james.mailrepository.JDBCSpoolRepository.store(JDBCSpoolRepository.java:236)
> at
> org.apache.james.transport.mailets.RemoteDelivery.service(RemoteDelivery.java:1001)
> at
> org.apache.james.transport.LinearProcessor.service(LinearProcessor.java:414)
> at
> org.apache.james.transport.JamesSpoolManager.process(JamesSpoolManager.java:397)
> at
> org.apache.james.transport.JamesSpoolManager.run(JamesSpoolManager.java:306)
> at java.lang.Thread.run(Thread.java:595)
> 01/04/06 21:52:53 ERROR spoolmanager: An error occurred processing
> Mail1143921172623-45 through transport
> 01/04/06 21:52:53 ERROR spoolmanager: Result was error
> Whats the Problem ? Should i upgrade the mysql-connector ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]