Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-1077

Exception not managed during smtp dialog

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.1
    • 3.0-M1
    • SMTPServer
    • None
    • Environment with SCA6000HSM installed on

    Description

      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.

      Attachments

        Activity

          People

            norman Norman Maurer
            dlozzi Daniele Lozzi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: