[ 
http://issues.apache.org/jira/browse/JAMES-475?page=comments#action_12373747 ] 

Stefano Bagnara commented on JAMES-475:
---------------------------------------

I think I've found the problem and it should be related to dbfile only.
When I introduced the streaming to db (removing full in memory bytearray) I had 
to add precise message size calculation to store the message to db. I always 
calc the full message size while with dbfile only store headers to db!

This bug also show that an exception while storing to db report to the smtp 
protocol garbage (multiline reply with no multiline smtp convention). We should 
also fix that!


> SQLException on james trunk after build and without modifications of 
> config.xml
> -------------------------------------------------------------------------------
>
>          Key: JAMES-475
>          URL: http://issues.apache.org/jira/browse/JAMES-475
>      Project: James
>         Type: Bug

>     Reporter: Norman Maurer
>     Assignee: Stefano Bagnara

>
> Here is the problem:
> [EMAIL PROTECTED]:~/stuff/workspace/james-dev$ telnet localhost 25
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> 220 debbox SMTP Server (JAMES SMTP Server 2.3-dev) ready Sat, 8 Apr 2006 
> 15:04:3 1 +0200 (CEST)
> helo test.de
> 250 debbox Hello test.de (localhost [127.0.0.1])
> mail from: <[EMAIL PROTECTED]>
> 250 2.1.0 Sender <[EMAIL PROTECTED]> OK
> rcpt to: <[EMAIL PROTECTED]>
> 250 2.1.5 Recipient <[EMAIL PROTECTED]> OK
> rcpt to: <[EMAIL PROTECTED]>
> 250 2.1.5 Recipient <[EMAIL PROTECTED]> OK
> data
> 354 Ok Send data ending with <CRLF>.<CRLF>
> test
> .
> 451 4.0.0 Error processing message: Exception spooling message: Exception 
> caught  while storing mail Container: ;
>   nested exception is:
>         SQL Exception: An unexpected exception was thrown;
>   nested exception is:
>         class javax.mail.MessagingException: Exception caught while storing 
> mail  Container: ;
>   nested exception is:
>         SQL Exception: An unexpected exception was thrown

-- 
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]

Reply via email to