Error "java.lang.NoSuchMethodError: oracle.i18n.text.converter.CharacterConverterOGS.getInstance"

(Doc ID 465177.1)

Last updated on JUNE 02, 2017

Applies to:

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


An application runs in a version 1.6 JVM on a Tomcat version 5.5 application server and connects to a version database via JDBC/Thin 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(
        at oracle.sql.CharacterSetWithConverter.getInstance(
        at oracle.sql.CharacterSetFactoryThin.make(
        at oracle.sql.CharacterSet.make(
        at oracle.sql.CHAR.<clinit>(
        at oracle.jdbc.oracore.OracleTypeCHAR.toDatum(
        at oracle.sql.StructDescriptor.toOracleArray( 
        at oracle.sql.StructDescriptor.toArray(
        at oracle.sql.STRUCT.<init>(
        <... application specific methods ...>

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


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 ojdbc14.jar to ojdbc6.jar.


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