[ https://issues.apache.org/jira/browse/JAMES-1318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Norman Maurer updated JAMES-1318: --------------------------------- Component/s: Matchers/Mailets (bundled) Affects Version/s: 3.0-beta3 Fix Version/s: 3.0-beta4 Assignee: Norman Maurer > RemoteDelivery tries to modify the returned Collection of > Mail.getRecipients() directly > --------------------------------------------------------------------------------------- > > Key: JAMES-1318 > URL: https://issues.apache.org/jira/browse/JAMES-1318 > Project: JAMES Server > Issue Type: Bug > Components: Matchers/Mailets (bundled) > Affects Versions: 3.0-beta3 > Reporter: Norman Maurer > Assignee: Norman Maurer > Priority: Critical > Fix For: 3.0-beta4 > > > In RemoteDelivery we try to modify the returned Collection of > Mail.getRecipients() directly. This may fail because a Collection can be > read-only as remove etc is an optional implementation. We need to copy it and > then set it via Mail.setRecipients(..) to be 100% sure. > See this related stack trace: > INFO 17:41:25,409 | james.mailetcontext | Exception caught in > RemoteDelivery.run() > org.apache.james.queue.api.MailQueue$MailQueueException: Unable to perform > dequeue; > nested exception is: > java.lang.UnsupportedOperationException > at > org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:768) > at java.lang.Thread.run(Thread.java:679) > Caused by: java.lang.UnsupportedOperationException > at java.util.AbstractList.remove(AbstractList.java:161) > at java.util.AbstractList$Itr.remove(AbstractList.java:375) > at java.util.AbstractList.removeRange(AbstractList.java:572) > at java.util.AbstractList.clear(AbstractList.java:234) > at > org.apache.james.transport.mailets.RemoteDelivery.deliver(RemoteDelivery.java:1132) > at > org.apache.james.transport.mailets.RemoteDelivery.run(RemoteDelivery.java:718) > ... 1 more -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: server-dev-unsubscr...@james.apache.org For additional commands, e-mail: server-dev-h...@james.apache.org