Error "java.lang.NoSuchMethodError: oracle.i18n.text.converter.CharacterConverterOGS.getInstance" (Doc ID 465177.1)

Last updated on JUNE 02, 2017

Applies to:

JDBC - Version 11.1.0.6 to 12.1.0.2.0 [Release 11.1 to 12.1]
Information in this document applies to any platform.

Symptoms

An application runs in a version 1.6 JVM on a Tomcat version 5.5 application server and connects to a version 10.2.0.3 database via JDBC/Thin 11.1.0.6 ojdbc6.jar.

When the application uses the Oracle Globalization Development Kit (GDK) orai18n library classes OraSimpleDateFormat, OraDateFormat or OraNumberFormat to perform date and number formatting with the familiar Oracle TO_CHAR format models rather than using Java equivalents, the application fails with:

    java.lang.NoSuchMethodError: oracle.i18n.text.converter.CharacterConverterOGS.getInstance(I)Loracle/i18n/text/converter/CharacterConverter;
        at oracle.sql.converter.CharacterConverterFactoryOGS.make(CharacterConverterFactoryOGS.java:43)
        at oracle.sql.CharacterSetWithConverter.getInstance(CharacterSetWithConverter.java:95)
        at oracle.sql.CharacterSetFactoryThin.make(CharacterSetFactoryThin.java:126)
        at oracle.sql.CharacterSet.make(CharacterSet.java:447)
        at oracle.sql.CHAR.<clinit>(CHAR.java:66)
        at oracle.jdbc.oracore.OracleTypeCHAR.toDatum(OracleTypeCHAR.java:142)
        at oracle.sql.StructDescriptor.toOracleArray(StructDescriptor.java:719) 
        at oracle.sql.StructDescriptor.toArray(StructDescriptor.java:1286)
        at oracle.sql.STRUCT.<init>(STRUCT.java:156)
        <... application specific methods ...>


With a version 1.4 JVM, a version 4.1 Tomcat application server, and JDBC/Thin 10.2.0.3 ojdbc14.jar the error does not occur.

Changes

Tomcat was upgraded from version 4.1 to 5.5.
The JDK was upgraded from 1.4 to 1.6.
The JDBC/Thin driver was upgraded from 10.2.0.3 ojdbc14.jar to 11.1.0.6 ojdbc6.jar.

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