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

Exception while deliver mail to more then one recipient

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.0-M2
    • Fix Version/s: 3.0-beta3
    • Component/s: Queue
    • Labels:
      None

      Description

      INFO 14:43:30,846 | james.mailetcontext | Temporary exception delivering mail (Mail1304966609277-045228a0-35f9-4afa-8af9-15a7ff28723c-to-kgc.com: javax.mail.MessagingException: IOException while sending message;
      nested exception is:
      java.io.IOException: Bad file descriptor
      at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1141)
      at slpcore.pop3server.smarthost.SlpRemoteDelivery.deliver(SlpRemoteDelivery.java:1030)
      at slpcore.pop3server.smarthost.SlpRemoteDelivery.run(SlpRemoteDelivery.java:757)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: java.io.IOException: Bad file descriptor
      at java.io.RandomAccessFile.seek(Native Method)
      at javax.mail.util.SharedFileInputStream.fill(SharedFileInputStream.java:268)
      at javax.mail.util.SharedFileInputStream.read1(SharedFileInputStream.java:313)
      at javax.mail.util.SharedFileInputStream.read(SharedFileInputStream.java:351)
      at java.io.FilterInputStream.read(FilterInputStream.java:90)
      at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1025)
      at org.apache.commons.io.IOUtils.copy(IOUtils.java:999)
      at org.apache.james.core.MimeMessageWrapper.writeTo(MimeMessageWrapper.java:315)
      at org.apache.james.core.MimeMessageWrapper.writeTo(MimeMessageWrapper.java:290)
      at org.apache.james.core.MimeMessageWrapper.writeTo(MimeMessageWrapper.java:279)
      at org.apache.james.core.MimeMessageCopyOnWriteProxy.writeTo(MimeMessageCopyOnWriteProxy.java:191)
      at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099)
      ... 3 more

      INFO 14:48:33,153 | james.mailetcontext | Exception caught in RemoteDelivery.run()
      org.apache.james.queue.api.MailQueue$MailQueueException: Unable to dequeue next message;
      nested exception is:
      org.apache.james.queue.api.MailQueue$MailQueueException: Unable to populate MimeMessage for mail Mail1304966609277-045228a0-35f9-4afa-8af9-15a7ff2872
      3c-to-kgc.com;
      nested exception is:
      java.io.FileNotFoundException: /opt/rls/james-imap/bin/../var/store/activemq/blob-transfer/4/ID_mazur1-60447-1304496067048-3_2_33_1_3492 (No such fil
      e or directory)
      at org.apache.james.queue.jms.JMSMailQueue.deQueue(JMSMailQueue.java:171)
      at slpcore.pop3server.smarthost.SlpRemoteDelivery.run(SlpRemoteDelivery.java:745)
      at java.lang.Thread.run(Thread.java:662)
      Caused by: org.apache.james.queue.api.MailQueue$MailQueueException: Unable to populate MimeMessage for mail Mail1304966609277-045228a0-35f9-4afa-8af9-15a7ff2
      8723c-to-kgc.com;
      nested exception is:
      java.io.FileNotFoundException: /opt/rls/james-imap/bin/../var/store/activemq/blob-transfer/4/ID_mazur1-60447-1304496067048-3_2_33_1_3492 (No such fil
      e or directory)
      at org.apache.james.queue.activemq.ActiveMQMailQueue.populateMailMimeMessage(ActiveMQMailQueue.java:157)
      at org.apache.james.queue.jms.JMSMailQueue.createMail(JMSMailQueue.java:365)
      at org.apache.james.queue.activemq.ActiveMQMailQueue.createMailQueueItem(ActiveMQMailQueue.java:266)
      at org.apache.james.queue.jms.JMSMailQueue.deQueue(JMSMailQueue.java:114)
      ... 2 more
      Caused by: java.io.FileNotFoundException: /opt/rls/james-imap/bin/../var/store/activemq/blob-transfer/4/ID_mazur1-60447-1304496067048-3_2_33_1_3492 (No such
      file or directory)
      at java.io.RandomAccessFile.open(Native Method)
      at java.io.RandomAccessFile.<init>(RandomAccessFile.java:216)
      at javax.mail.util.SharedFileInputStream$SharedFile.<init>(SharedFileInputStream.java:120)
      at javax.mail.util.SharedFileInputStream.<init>(SharedFileInputStream.java:194)
      at javax.mail.util.SharedFileInputStream.<init>(SharedFileInputStream.java:169)
      at org.apache.james.queue.activemq.FileSystemBlobStrategy.getInputStream(FileSystemBlobStrategy.java:141)
      at org.apache.activemq.blob.BlobDownloader.getInputStream(BlobDownloader.java:37)
      at org.apache.activemq.command.ActiveMQBlobMessage.getInputStream(ActiveMQBlobMessage.java:131)
      at org.apache.james.queue.activemq.ActiveMQMailQueue.populateMailMimeMessage(ActiveMQMailQueue.java:141)
      ... 5 more

      INFO 14:50:57,707 | james.mailetcontext | Permanent exception delivering mail (Mail1304966876346-f6ba889f-5526-447b-9f34-2fa376457d10-to-icrw.org: java.lang.RuntimeException: Stream closed
      at javax.mail.util.SharedFileInputStream.newStream(SharedFileInputStream.java:507)
      at org.apache.james.queue.activemq.MimeMessageBlobMessageSource.getInputStream(MimeMessageBlobMessageSource.java:53)
      at org.apache.james.core.MimeMessageWrapper.writeTo(MimeMessageWrapper.java:303)
      at org.apache.james.core.MimeMessageWrapper.writeTo(MimeMessageWrapper.java:290)
      at org.apache.james.core.MimeMessageWrapper.writeTo(MimeMessageWrapper.java:279)
      at org.apache.james.core.MimeMessageCopyOnWriteProxy.writeTo(MimeMessageCopyOnWriteProxy.java:191)
      at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099)
      at slpcore.pop3server.smarthost.SlpRemoteDelivery.deliver(SlpRemoteDelivery.java:1030)
      at slpcore.pop3server.smarthost.SlpRemoteDelivery.run(SlpRemoteDelivery.java:757)
      at java.lang.Thread.run(Thread.java:662)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: