IBM Support

IT27728: JDBC DRIVER DOES WORK WITH JAVA8 BUT NOT WITH JAVA6

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • v11.1m4FP4 JDBC driver (4.25) does work with Java8 but not with
    Java6:
    
    Throws below error
    
    PropertyHandling.load(): file name =
    D:/SLHA/work/ld2295/1502392452851/2018_12_19_02_41_16/temp_insta
    ll//db2radm.properties
    Info [2018-12-19 03:31:14.415(TZ:Europe/Berlin)]: Current tool
    version (db2radm.jar): 26
    Info [2018-12-19 03:31:14.431(TZ:Europe/Berlin)]: Test the
    database connection
    Exception in thread "main" java.lang.NoClassDefFoundError:
    java/util/Base64
    at com.ibm.db2.jcc.am.ao.e(ao.java:3205)
    at com.ibm.db2.jcc.am.ao.a(ao.java:3080)
    at com.ibm.db2.jcc.am.ao.a(ao.java:1908)
    at com.ibm.db2.jcc.am.ao.a(ao.java:1946)
    at
    com.ibm.db2.jcc.am.Connection.isLicenseValidatedWithServerLicens
    eProc(Connection.java:9188)
    at
    com.ibm.db2.jcc.am.Connection.validatedByLicenseProc(Connection.
    java:5117)
    at
    com.ibm.db2.jcc.am.Connection.checkForLicenseRestrictions(Connec
    tion.java:5080)
    at
    com.ibm.db2.jcc.am.Connection.completeConnect(Connection.java:50
    26)
    at com.ibm.db2.jcc.t4.b.completeConnect(b.java:653)
    at com.ibm.db2.jcc.t4.b.a(b.java:455)
    at com.ibm.db2.jcc.t4.b.a(b.java:414)
    at com.ibm.db2.jcc.t4.b.<init>(b.java:352)
    at
    com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(DB2SimpleDataS
    ource.java:233)
    at
    com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(DB2SimpleDataS
    ource.java:200)
    at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:471)
    at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:113)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at InstallUtilities.DBInterface.connect(DBInterface.java:767)
    at
    InstallUtilities.TestConnect.testConnect(TestConnect.java:123)
    at InstallUtilities.TestConnect.main(TestConnect.java:103)
    Caused by: java.lang.ClassNotFoundException: java.util.Base64
    at java.net.URLClassLoader$1.run(URLClassLoader.java:281)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:269)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:376)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:344)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:317)
    

Local fix

  • NA
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * 1                                                            *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * v11.1m4FP4 JDBC driver (4.25) does work with Java8 but not   *
    * with                                                         *
    * Java6:                                                       *
    *                                                              *
    * Throws below error                                           *
    *                                                              *
    * PropertyHandling.load(): file name =                         *
    * D:/SLHA/work/ld2295/1502392452851/2018_12_19_02_41_16/temp_i *
    * nsta                                                         *
    * ll//db2radm.properties                                       *
    * Info [2018-12-19 03:31:14.415(TZ:Europe/Berlin)]: Current    *
    * tool                                                         *
    * version (db2radm.jar): 26                                    *
    * Info [2018-12-19 03:31:14.431(TZ:Europe/Berlin)]: Test the   *
    * database connection                                          *
    * Exception in thread "main" java.lang.NoClassDefFoundError:   *
    * java/util/Base64                                             *
    * at com.ibm.db2.jcc.am.ao.e(ao.java:3205)                     *
    * at com.ibm.db2.jcc.am.ao.a(ao.java:3080)                     *
    * at com.ibm.db2.jcc.am.ao.a(ao.java:1908)                     *
    * at com.ibm.db2.jcc.am.ao.a(ao.java:1946)                     *
    * at                                                           *
    * com.ibm.db2.jcc.am.Connection.isLicenseValidatedWithServerLi *
    * cens                                                         *
    * eProc(Connection.java:9188)                                  *
    * at                                                           *
    * com.ibm.db2.jcc.am.Connection.validatedByLicenseProc(Connect *
    * ion.                                                         *
    * java:5117)                                                   *
    * at                                                           *
    * com.ibm.db2.jcc.am.Connection.checkForLicenseRestrictions(Co *
    * nnec                                                         *
    * tion.java:5080)                                              *
    * at                                                           *
    * com.ibm.db2.jcc.am.Connection.completeConnect(Connection.jav *
    * a:50                                                         *
    * 26)                                                          *
    * at com.ibm.db2.jcc.t4.b.completeConnect(b.java:653)          *
    * at com.ibm.db2.jcc.t4.b.a(b.java:455)                        *
    * at com.ibm.db2.jcc.t4.b.a(b.java:414)                        *
    * at com.ibm.db2.jcc.t4.b.<init>(b.java:352)                   *
    * at                                                           *
    * com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(DB2SimpleD *
    * ataS                                                         *
    * ource.java:233)                                              *
    * at                                                           *
    * com.ibm.db2.jcc.DB2SimpleDataSource.getConnection(DB2SimpleD *
    * ataS                                                         *
    * ource.java:200)                                              *
    * at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:471)     *
    * at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:113)     *
    * at                                                           *
    * java.sql.DriverManager.getConnection(DriverManager.java:582) *
    * at                                                           *
    * java.sql.DriverManager.getConnection(DriverManager.java:185) *
    * at                                                           *
    * InstallUtilities.DBInterface.connect(DBInterface.java:767)   *
    * at                                                           *
    * InstallUtilities.TestConnect.testConnect(TestConnect.java:12 *
    * 3)                                                           *
    * at InstallUtilities.TestConnect.main(TestConnect.java:103)   *
    * Caused by: java.lang.ClassNotFoundException:                 *
    * java.util.Base64                                             *
    * at java.net.URLClassLoader$1.run(URLClassLoader.java:281)    *
    * at java.security.AccessController.doPrivileged(Native        *
    * Method)                                                      *
    * at                                                           *
    * java.net.URLClassLoader.findClass(URLClassLoader.java:269)   *
    * at java.lang.ClassLoader.loadClass(ClassLoader.java:376)     *
    * at                                                           *
    * sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:344 *
    * )                                                            *
    * at java.lang.ClassLoader.loadClass(ClassLoader.java:317)     *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Please upgrade to Vnext and use Jcc 4.25                     *
    ****************************************************************
    

Problem conclusion

  • Type-4 connectivity: JDBC driver backward compatibility issue,
    application works with Java8 but not Java6: The issue has been
    fixed and delivered in VNext ( Jcc 4.25) (Defect #wsdbu01411785
    )
    

Temporary fix

Comments

APAR Information

  • APAR number

    IT27728

  • Reported component name

    DB2 CONNECT

  • Reported component ID

    DB2CONNCT

  • Reported release

    B10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2019-01-11

  • Closed date

    2019-05-30

  • Last modified date

    2019-05-30

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    DB2 CONNECT

  • Fixed component ID

    DB2CONNCT

Applicable component levels

  • RB10 PSY

       UP

[{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M"},"Platform":[{"code":"PF054","label":"z Systems"}],"Version":"11.1","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
19 June 2020