[ https://issues.apache.org/jira/browse/JAMES-2033?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16029178#comment-16029178 ]
Tellier Benoit commented on JAMES-2033: --------------------------------------- We detected an additional issue with the original fix, the mail being marked as moved after having being enqueued to RemoteDelivrey. The problem is actually wider, and can be seen: - on re-dequeue upon failure - on rescheduled send (eg: Forward / Redirect*) Thus we decided to not propagate an exception upon not found email, ad only issue an INFO log. > RemoteDelivery raising error on JMAP sent emails > ------------------------------------------------ > > Key: JAMES-2033 > URL: https://issues.apache.org/jira/browse/JAMES-2033 > Project: James Server > Issue Type: Bug > Reporter: Quynh Nguyen > > Here is the stack trace: > {code} > 01:35:42.905 [ERROR] o.a.j.m.i.JamesMailetContext - Exception caught in > RemoteDelivery.run() > org.apache.james.jmap.send.exception.MailShouldBeInOutboxException: Message > with Id CassandraMessageId{uuid=245689c0-35ea-11e7-8564-ddd22b16a7b9} can't > be found in outbox > at > org.apache.james.jmap.send.PostDequeueDecorator.assertMessageBelongsToOutbox(PostDequeueDecorator.java:123) > at > org.apache.james.jmap.send.PostDequeueDecorator.moveFromOutboxToSent(PostDequeueDecorator.java:111) > at > org.apache.james.jmap.send.PostDequeueDecorator.done(PostDequeueDecorator.java:79) > at > org.apache.james.transport.mailets.remoteDelivery.DeliveryRunnable.runStep(DeliveryRunnable.java:112) > at > org.apache.james.transport.mailets.remoteDelivery.DeliveryRunnable.run(DeliveryRunnable.java:87) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > {code} > What happen is very simple: > - User sends a mail > - mail is getting processed and is being processed by REmoteDelivery > - RemoteDelivery copies the email and enqueue it it a dedicated MailQueue > - JamesMailSpooler execute the dequeue decorator and moves the mail out of > outbox > - RemoteDelivery threads dequeue the email, send it > - As the mail is dequeued a second time the DequeueDecorator is executed a > second time. But the mail no more is in the Outbox. It then raise this error! > Workaround : Add an attribute to the mail to not try to move it two time -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org