My Oracle Support Banner

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

Last updated on SEPTEMBER 26, 2019

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.


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

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