You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Daniele Lozzi (JIRA)" <se...@james.apache.org> on 2010/10/21 11:45:15 UTC

[jira] Created: (JAMES-1077) Exception not managed during smtp dialog

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


[jira] Resolved: (JAMES-1077) Exception not managed during smtp dialog

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JAMES-1077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norman Maurer resolved JAMES-1077.
----------------------------------

    Resolution: Fixed

I just checked again the current code of 3.0-M1 and its already fixed there. 

See:
http://svn.apache.org/viewvc/james/server/trunk/smtpserver/src/main/java/org/apache/james/smtpserver/netty/SMTPChannelUpstreamHandler.java?view=markup  (line 85)

Anyway thx for reporting!

> 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
>            Assignee: Norman Maurer
>             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


[jira] Assigned: (JAMES-1077) Exception not managed during smtp dialog

Posted by "Norman Maurer (JIRA)" <se...@james.apache.org>.
     [ https://issues.apache.org/jira/browse/JAMES-1077?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Norman Maurer reassigned JAMES-1077:
------------------------------------

    Assignee: Norman Maurer

> 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
>            Assignee: Norman Maurer
>             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