My Oracle Support Banner

cannot return null value in number as JSON response at Rest Trigger (Doc ID 2638170.1)

Last updated on FEBRUARY 13, 2020

Applies to:

Oracle Integration-OIC - Version 18.2.5 and later
Information in this document applies to any platform.

Symptoms

When REST Adapter return JSON payload with number.

ex)
"id": 1

It is nillable.

However, if the value is null, above error is returned.

The real error is NumberFormatException.

===
Caused by: java.lang.NumberFormatException
at java.math.BigDecimal.<init>(BigDecimal.java:599)
at java.math.BigDecimal.<init>(BigDecimal.java:383)
at java.math.BigDecimal.<init>(BigDecimal.java:809)
at
oracle.tip.pc.services.translation.xlators.json.jackson.TypeDeducingJsonGenera
tor.writeString(TypeDeducingJsonGenerator.java:79)
... 74 more
===



Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.