James Server
  1. James Server
  2. JAMES-1077

Exception not managed during smtp dialog

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.1
    • Fix Version/s: 3.0-M1
    • Component/s: SMTPServer
    • Labels:
      None
    • Environment:
      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.

        Activity

        Daniele Lozzi created issue -
        Norman Maurer made changes -
        Field Original Value New Value
        Assignee Norman Maurer [ norman ]
        Norman Maurer made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Mark Thomas made changes -
        Workflow jira [ 12524852 ] Default workflow, editable Closed status [ 12566831 ]
        Mark Thomas made changes -
        Workflow Default workflow, editable Closed status [ 12566831 ] jira [ 12581900 ]

          People

          • Assignee:
            Norman Maurer
            Reporter:
            Daniele Lozzi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development