This content has been marked as final. Show 5 replies
After further investigations it seems that it is mandatory to attach a file to the first email sent to the endpoint.
Here's a summary of the situation:
I want to receive an email with an attachment (which is generated inside my process) after invoking my process using an email endpoint.
The email endpoint raises a branch stalled exception if I don't send my first email with an attachment.
If I put an attachment (any file of any type) in my first email everthing is ok and my generated PDF is sent by email when the process ends.
Here's a short part of the branch stalled stack trace:
javax.ejb.TransactionRolledbackLocalException: Invocation error.; CausedByException is: Invocation error.
Caused by: java.lang.NullPointerException
at com.adobe.idp.dsc.provider.service.email.impl.write.EmailResultHandlerImpl.sendResults(Em ailResultHandlerImpl.java:226)
... 181 more
do you still have a problem with this email endpoint?
Yes. The email endpoint doesn't work without an attachment.
I need to use it with or without attachment.
can you email me email@example.com
Use EmailReceiver instead of an Email Endpoint.
The design pattern is shown here:
(ALthough it's for files rather than emails, the principle is the same.)