james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniele Lozzi (JIRA)" <server-...@james.apache.org>
Subject [jira] Created: (JAMES-1077) Exception not managed during smtp dialog
Date Thu, 21 Oct 2010 09:45:15 GMT
Exception not managed during smtp dialog
----------------------------------------

                 Key: JAMES-1077
                 URL: https://issues.apache.org/jira/browse/JAMES-1077
             Project: JAMES Server
          Issue Type: Bug
          Components: SMTPServer
    Affects Versions: 2.3.1
         Environment: Environment with SCA6000HSM installed on
            Reporter: Daniele Lozzi
             Fix For: 3.0-M1


If SCA6000 crash James begin to return this error during SMTP dialog after data command

> java.security.ProviderException: nextBytes() failed
>         at sun.security.pkcs11.P11SecureRandom.engineNextBytes(P11SecureRandom.java:96)
>         at java.security.SecureRandom.nextBytes(SecureRandom.java:413)
>         at java.security.SecureRandom.next(SecureRandom.java:435)
>         at java.util.Random.nextLong(Random.java:279)
>         at java.io.File.generateFile(File.java:1321)
>         at java.io.File.createTempFile(File.java:1430)
>         at java.io.File.createTempFile(File.java:1467)
>         at org.apache.james.core.MimeMessageInputStreamSource.<init>(MimeMessageInputStreamSource.java:75)
>         at org.apache.james.core.MailImpl.<init>(MailImpl.java:181)
>         at org.apache.james.smtpserver.DataCmdHandler.processMail(DataCmdHandler.java:266)
>         at org.apache.james.smtpserver.DataCmdHandler.doDATA(DataCmdHandler.java:133)
>         at org.apache.james.smtpserver.DataCmdHandler.onCommand(DataCmdHandler.java:81)
>         at org.apache.james.smtpserver.SMTPHandler.handleConnection(SMTPHandler.java:393)
>         at org.apache.james.util.connection.ServerConnection$ClientConnectionRunner.run(ServerConnection.java:432)
>         at org.apache.excalibur.thread.impl.ExecutableRunnable.execute(ExecutableRunnable.java:55)
>         at org.apache.excalibur.thread.impl.WorkerThread.run(WorkerThread.java:116)
> Caused by: sun.security.pkcs11.wrapper.PKCS11Exception: CKR_GENERAL_ERROR
>         at sun.security.pkcs11.wrapper.PKCS11.C_GenerateRandom(Native Method)
>         at sun.security.pkcs11.P11SecureRandom.engineNextBytes(P11SecureRandom.java:93)
>         ... 15 more

The problem vanish when SCA6000 is up, problem isn't error but the fact that James DIE in
SMTP dialog with no response code on DATA command (neither 4xx nor 5xx), probably an 451 code
is good.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message