-bash-5.2$ /opt/manzan/bin/manzan --configdir=/home/JONATHAN/mnzntest/test/e2e/msg/snd2email
Apache Camel version 3.14.8
target URI: smtp://na.relay.ibm.com:25?subject=hello from manzan&from=redacted@ibm.com&to=redacted@ibm.com&debugMode=true
DEBUG: setDebug: Jakarta Mail version 1.6.7
[ main] AbstractCamelContext INFO Routes startup (total:2 started:2)
[ main] AbstractCamelContext INFO Started route1 (direct://email_b)
[ main] AbstractCamelContext INFO Started logfile1 (timer://foo)
[ main] AbstractCamelContext INFO Apache Camel 3.14.8 (camel-1) started in 623ms (build:53ms init:309ms start:261ms)
[mel-1) thread #1 - timer://foo] DefaultErrorHandler ERROR Failed delivery for (MessageId: 3BA989F08AECB8B-0000000000000003 on ExchangeId: 3BA989F08AECB8B-0000000000000003). Exhausted after delivery attempt: 1 caught: java.lang.NullPointerException
Message History (complete message history is disabled)
---------------------------------------------------------------------------------------------------------------------------------------
RouteId ProcessorId Processor Elapsed (ms)
[logfile1 ] [logfile1 ] [from[timer://foo?period=5000&synchronous=true] ] [ 116]
...
[route1 ] [to1 ] [smtp://na.relay.ibm.com:xxxxxx@ibm.c ] [ 0]
Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
java.lang.NullPointerException: null
at org.apache.camel.component.mail.MailBinding.populateMailMessage(MailBinding.java:145) ~[manzan.jar:?]
at org.apache.camel.component.mail.MailProducer.process(MailProducer.java:66) ~[manzan.jar:?]
at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:172) ~[manzan.jar:?]
at org.apache.camel.processor.errorhandler.RedeliveryErrorHandler$SimpleTask.run(RedeliveryErrorHandler.java:477) ~[manzan.jar:?]
at org.apache.camel.impl.engine.DefaultReactiveExecutor$Worker.schedule(DefaultReactiveExecutor.java:193) ~[manzan.jar:?]
at org.apache.camel.impl.engine.DefaultReactiveExecutor.scheduleMain(DefaultReactiveExecutor.java:64) ~[manzan.jar:?]
at org.apache.camel.processor.Pipeline.process(Pipeline.java:185) ~[manzan.jar:?]
at org.apache.camel.impl.engine.CamelInternalProcessor.process(CamelInternalProcessor.java:398) ~[manzan.jar:?]
at org.apache.camel.impl.engine.DefaultAsyncProcessorAwaitManager.process(DefaultAsyncProcessorAwaitManager
vs locally
Date: Fri, 20 Sep 2024 15:44:57 -0400 (EDT)
From: redacted@ibm.com
To: redacted@ibm.com
Message-ID: <757778510.0.1726861497211@na.relay.ibm.com>
Subject: JavaInUse Invitation111
MIME-Version: 1.0
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
<?xml version="1.0" encoding="UTF-8"?>
<person user="hiram">
<firstName>Hiram</firstName>
<lastName>Chirino</lastName>
<city>London</city>
</person>
.
250 2.0.0 Ok: queued as 7F79658052
DEBUG SMTP: message successfully delivered to mail server
Email destination doesn't seem to work when running on ibm i, but does work locally. Possible related issue https://issues.apache.org/jira/browse/CAMEL-15156