on 03-21-2021 12:29 PM
Hi Experts,
I am working on a CPI Iflow in which I need to log the original message(headers+body) using exception subprocess whenever the message execution is failed. To achieve this, I have maintained exception subprocess with SFTP channel to post the failed message into the SFTP server. While executing the flow, I am getting below error.
Error Details:
org.apache.camel.component.file.GenericFileOperationFailedException: Cannot write null body to file:
As per my observation:
Queries:
Thanks.
Hi Kumar,
You can achieve this my creating a backup of the message by putting it into a property (expression, java.lang.String, ${body}) which you can then use to create the body in a content modifier in your exception sub process.
You have to create that backup at the start of the flow, of course.
Kr.
Ivo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
8 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.