"JBO-25009: Cannot create an object of type: oracle.jbo.domain.Number" (Doc ID 1557698.1)

Last updated on MARCH 01, 2016

Applies to:

Oracle JDeveloper - Version 10.1.3.5.0 to 10.1.3.5.0 [Release Oracle10g]
Information in this document applies to any platform.

Symptoms

A web application is developed using JDeveloper 10.1.3.5 and deployed to Oracle Containers for J2EE (OC4J).
BC4J Libraries are installed through JDeveloper 10.1.3.5 to the OC4J instance.

The web page consists of date fields. The below error is thrown while executing the application:


oracle.jbo.domain.DataCreationException: JBO-25009: Cannot create an object
of type:oracle.jbo.domain.Number with value:2013-01-18
  at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:776)
  at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:90)
  at oracle.jbo.domain.TypeFactory.checkEquals(TypeFactory.java:490)
  at oracle.jbo.server.RowFilterKey.paramQualifies(RowFilterKey.java:137)
  at oracle.jbo.server.EntityCache.findUnpostedRows(EntityCache.java:1423)
  . . .
## Detail 0 ##
java.lang.NumberFormatException: For input string: "1-"
  at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
  at java.lang.Integer.parseInt(Integer.java:456)
  at java.lang.Integer.parseInt(Integer.java:497)
  at oracle.sql.NUMBER.toBytes(NUMBER.java:1861)
  at oracle.sql.NUMBER.stringToBytes(NUMBER.java:3398)
  at oracle.sql.NUMBER.(NUMBER.java:277)
  at oracle.jbo.domain.Number.(Number.java:289)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
  . . .

The application works well when the 10.1.3.5 JDeveloper BC4J library installed on
OC4J is replaced with 9i BC4J library.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms