You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "David Arendt (Jira)" <se...@james.apache.org> on 2019/10/04 20:40:00 UTC

[jira] [Created] (JAMES-2911) Unable to send mail from James SMTP gateway

David Arendt created JAMES-2911:
-----------------------------------

             Summary: Unable to send mail from James SMTP gateway
                 Key: JAMES-2911
                 URL: https://issues.apache.org/jira/browse/JAMES-2911
             Project: James Server
          Issue Type: Bug
          Components: SMTPServer
    Affects Versions: 3.4.0
            Reporter: David Arendt
             Fix For: 3.3.0


In James 3.3.0 mail sending from James using an SMTP gateway is working flawlessly. On 3.4.0 it produces the following exceptions:

 INFO | jvm 1 | 2019/10/04 13:35:49 | ERROR 13:35:49,067 | org.apache.james.transport.mailets.remote.delivery.MailDelivrer | Generic exception = permanent failure: org.apache.geronimo.ja
vamail.transport.smtp.SMTPTransport cannot be cast to com.sun.mail.smtp.SMTPTransport
INFO | jvm 1 | 2019/10/04 13:35:49 | java.lang.ClassCastException: org.apache.geronimo.javamail.transport.smtp.SMTPTransport cannot be cast to com.sun.mail.smtp.SMTPTransport
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.james.transport.mailets.remote.delivery.MailDelivrerToHost.tryDeliveryToHost(MailDelivrerToHost.java:66)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.james.transport.mailets.remote.delivery.MailDelivrer.doDeliver(MailDelivrer.java:126)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.james.transport.mailets.remote.delivery.MailDelivrer.tryDeliver(MailDelivrer.java:108)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.james.transport.mailets.remote.delivery.MailDelivrer.deliver(MailDelivrer.java:77)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.james.transport.mailets.remote.delivery.DeliveryRunnable.attemptDelivery(DeliveryRunnable.java:126)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.james.transport.mailets.remote.delivery.DeliveryRunnable.processMail(DeliveryRunnable.java:109)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.james.transport.mailets.remote.delivery.DeliveryRunnable.runStep(DeliveryRunnable.java:96)
INFO | jvm 1 | 2019/10/04 13:35:49 | at reactor.core.publisher.FluxFlatMap$FlatMapMain.onNext(FluxFlatMap.java:350)
INFO | jvm 1 | 2019/10/04 13:35:49 | at reactor.core.publisher.FluxPublishOn$PublishOnSubscriber.runAsync(FluxPublishOn.java:398)
INFO | jvm 1 | 2019/10/04 13:35:49 | at reactor.core.publisher.FluxPublishOn$PublishOnSubscriber.run(FluxPublishOn.java:484)
INFO | jvm 1 | 2019/10/04 13:35:49 | at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:84)
INFO | jvm 1 | 2019/10/04 13:35:49 | at reactor.core.scheduler.WorkerTask.call(WorkerTask.java:37)
INFO | jvm 1 | 2019/10/04 13:35:49 | at java.util.concurrent.FutureTask.run(FutureTask.java:266)
INFO | jvm 1 | 2019/10/04 13:35:49 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
INFO | jvm 1 | 2019/10/04 13:35:49 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
INFO | jvm 1 | 2019/10/04 13:35:49 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
INFO | jvm 1 | 2019/10/04 13:35:49 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
INFO | jvm 1 | 2019/10/04 13:35:49 | at java.lang.Thread.run(Thread.java:748)

INFO | jvm 1 | 2019/10/04 13:35:49 | ERROR 13:35:49,123 | org.apache.james.mailetcontainer.impl.camel.CamelProcessor | Exception calling DSNBounce: null
INFO | jvm 1 | 2019/10/04 13:35:49 | java.lang.NullPointerException
INFO | jvm 1 | 2019/10/04 13:35:49 | at javax.mail.internet.MimeMessage.setHeader(MimeMessage.java:1547)
INFO | jvm 1 | 2019/10/04 13:35:49 | at javax.mail.internet.MimeMessage.setRecipients(MimeMessage.java:449)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.james.server.core.MimeMessageCopyOnWriteProxy.setRecipients(MimeMessageCopyOnWriteProxy.java:390)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.james.transport.mailets.redirect.MailModifier.setTo(MailModifier.java:127)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.james.transport.mailets.DSNBounce.trySendBounce(DSNBounce.java:269)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.james.transport.mailets.DSNBounce.service(DSNBounce.java:240)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.james.mailetcontainer.impl.camel.CamelProcessor.process(CamelProcessor.java:81)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.james.mailetcontainer.impl.camel.CamelMailetProcessor$MailetContainerRouteBuilder.handleMailet(CamelMailetProcessor.java:178)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.james.mailetcontainer.impl.camel.CamelMailetProcessor$MailetContainerRouteBuilder.lambda$configure$0(CamelMailetProcessor.java:155)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.processor.DelegateSyncProcessor.process(DelegateSyncProcessor.java:63)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:715)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:638)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:248)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.processor.Splitter.process(Splitter.java:129)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:548)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.processor.Pipeline.process(Pipeline.java:138)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.processor.Pipeline.process(Pipeline.java:101)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:76)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.processor.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:186)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.processor.SharedCamelInternalProcessor.process(SharedCamelInternalProcessor.java:86)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:541)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.impl.ProducerCache$1.doInProducer(ProducerCache.java:506)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.impl.ProducerCache.doInProducer(ProducerCache.java:369)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.impl.ProducerCache.sendExchange(ProducerCache.java:506)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.impl.ProducerCache.send(ProducerCache.java:229)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.impl.DefaultProducerTemplate.send(DefaultProducerTemplate.java:144)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:161)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.camel.impl.DefaultProducerTemplate.sendBody(DefaultProducerTemplate.java:168)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.james.mailetcontainer.impl.camel.CamelMailetProcessor.service(CamelMailetProcessor.java:68)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.james.mailetcontainer.lib.AbstractStateCompositeProcessor.handleWithProcessor(AbstractStateCompositeProcessor.java:96)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.james.mailetcontainer.lib.AbstractStateCompositeProcessor.service(AbstractStateCompositeProcessor.java:78)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.james.mailetcontainer.impl.JamesMailSpooler.performProcessMail(JamesMailSpooler.java:154)
INFO | jvm 1 | 2019/10/04 13:35:49 | at org.apache.james.mailetcontainer.impl.JamesMailSpooler.lambda$processMail$2(JamesMailSpooler.java:141)
INFO | jvm 1 | 2019/10/04 13:35:49 | at reactor.core.publisher.MonoCallable.call(MonoCallable.java:91)
INFO | jvm 1 | 2019/10/04 13:35:49 | at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.drain(MonoIgnoreThen.java:135)
INFO | jvm 1 | 2019/10/04 13:35:49 | at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreMain.ignoreDone(MonoIgnoreThen.java:190)
INFO | jvm 1 | 2019/10/04 13:35:49 | at reactor.core.publisher.MonoIgnoreThen$ThenIgnoreInner.onComplete(MonoIgnoreThen.java:240)
INFO | jvm 1 | 2019/10/04 13:35:49 | at reactor.core.publisher.FluxSubscribeOnCallable$CallableSubscribeOnSubscription.run(FluxSubscribeOnCallable.java:235)
INFO | jvm 1 | 2019/10/04 13:35:49 | at reactor.core.scheduler.ElasticScheduler$DirectScheduleTask.run(ElasticScheduler.java:292)
INFO | jvm 1 | 2019/10/04 13:35:49 | at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:50)
INFO | jvm 1 | 2019/10/04 13:35:49 | at reactor.core.scheduler.SchedulerTask.call(SchedulerTask.java:27)
INFO | jvm 1 | 2019/10/04 13:35:49 | at java.util.concurrent.FutureTask.run(FutureTask.java:266)
INFO | jvm 1 | 2019/10/04 13:35:49 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
INFO | jvm 1 | 2019/10/04 13:35:49 | at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
INFO | jvm 1 | 2019/10/04 13:35:49 | at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
INFO | jvm 1 | 2019/10/04 13:35:49 | at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
INFO | jvm 1 | 2019/10/04 13:35:49 | at java.lang.Thread.run(Thread.java:748)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org