[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

onException - properties and headers are lost

Hi guys

I have a business requirement where if an api call fails, I need to store
the payload in a database for future retry.

I have an onException clause like this

        .log("Records are dropping due to excessing number of socket
connections created. Dropping DPCI : ${property.dpci} , TCIN :

I have added a property called "originalPayload" containing the received
data. I want it to access the property in processor "

I get NullPointorException accessing the property "originalPayload" ,
reason being all headers and properties of the original exchange are lost
by the time flow comes to onException block.

What is the way I can achieve my requirement?


( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-camel-users/msg03343.html on line 97
Call Stack
10.0008363576{main}( ).../msg03343.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-camel-users/msg03343.html on line 97
Call Stack
10.0008363576{main}( ).../msg03343.html:0