cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Null pointer Exception when using Error handling in rest receiver channel im SAP PO

0 Likes
252

Hi, 

My scenario is proxy -> synchronous REST.

The REST service I'm calling returns an empty message when the input data is incorrect, including error information in custom headers.

This generates an exception in PO: java.io.IOException: java.io.EOFException

In the error handling tab in the rest receiver channel, when using "Text Content" -> "Result Message is Empty", I still get an EOFException.

The only way to work around this is to use the "Exception" option in "error handling". It should work fine, but when using the "Exception" option in the "Error Handling" tab, we get the following exception in message monitoring:

java.lang.NullPointerException: When trying to invoke the java.lang.CharSequence.toString() method on a null object loaded from the local variable 'replacement'

Any ideas on how to resolve this null pointer exception?

It happens no matter what kind of message I put in "Message Content".

Thanks And regards.

Alex-

Accepted Solutions (0)

Answers (0)