Skip to main content
Question

Why do I receive java.lang.NullPointerException in application messages when creating a customer order?


Forum|alt.badge.img+4

I receive java.lang.NullPointerException in application messages when creating a customer order. Here is the error log I have received.

As I found this is not related to the content of the message. Can someone help me with this please?

 

java.lang.NullPointerException
    at java.lang.String.<init>(String.java:491)
    at ifs.fnd.util.Str.bytesUtf8ToString(Str.java:295)
    at ifs.fnd.connect.xml.ResponseEnvelope.createEnvelope(ResponseEnvelope.java:48)
    at ifs.fnd.connect.xml.ResponseEnvelope.<init>(ResponseEnvelope.java:43)
    at ifs.fnd.connect.process.AddressProcessor.extractResponseEnvelopeIfXml(AddressProcessor.java:426)
    at ifs.fnd.connect.process.AddressProcessor.processData(AddressProcessor.java:373)
    at ifs.fnd.connect.process.MessageProcessor.processAddresses(MessageProcessor.java:805)
    at ifs.fnd.connect.process.MessageProcessor.processMessage(MessageProcessor.java:343)

Forum|alt.badge.img+15
  • Superhero (Employee)
  • June 16, 2022

Hi @Imanka,

 

From the stack trace provided, the exception appears to be occurring when trying to convert Unicode UTF-8 byte stream to a Java string. What languages are used in the customer order? Does this happen for all of your customer orders?

 

Best regards,

Ben


Forum|alt.badge.img+4
  • Sidekick (Customer)
  • June 16, 2022

Hi @Ben Monroe ,

Thank you for the reply.

We are using Java and PLSQL. I checked the conversions of unicode UTF-8 byte stream to a Java, and didn’t find any clue.  This happens for all the customer orders. We get the customer order created without an issue, but the NullPointerException is there in the application message. And the message fails.

We got this issue once, and then changed,

Setup IFS Connect->Routing->INBOUND→ attribute to “none”. Then it was okay.

And then, again started to getting the error. 

 

Thanks, 

Imanka.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings