Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

jdveloper 12.2.1.4 issue with oracle.jbo.domain.Number

SatishReddyApr 11 2025 — edited Apr 11 2025

Hi,

I'm facing an issue with oracle.jbo.domain.Number. The code works fine in JDeveloper 11g, and the corresponding column in the database is also of type Number.

However, when the value in the database is null, it's being converted to an unexpected or illegal value in the ViewObject (VO). If the value is not null, everything works as expected. I'm simply printing the value like this:

System.out.println("ConvRate: " + ConvRate);

getting below exception:

java.lang.IllegalArgumentException: Invalid Input Number

at oracle.sql.NUMBER.stringValue(NUMBER.java:2150)

at oracle.jbo.domain.Number.toString(Number.java:422)

at java.lang.String.valueOf(String.java:2994)

at java.lang.StringBuilder.append(StringBuilder.java:137)

Could you please help me understand what's going wrong?

Comments
Post Details
Added on Apr 11 2025
2 comments
195 views