IBM Support

IC69090: JDBC/JCC DRIVER ACCEPTS JDBC:DEFAULT:CONNECTION WHEN RUNNING ON CLIENT SIDE.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • A client using the JDBC/JCC driver will accept the JDBC URL
    jdbc:default:connection which eventually results in the
    exception below:
    
    com.ibm.db2.jcc.b.SqlException: [jcc][10389][12245][3.53.70]
    Failure in
    loading native library db2jcct2, java.lang.UnsatisfiedLinkError:
    db2jcct2 (Not found in java.library.path):  ERRORCODE=-4472,
    SQLSTATE=null
    at com.ibm.db2.jcc.b.bd.a(bd.java:660)
    at com.ibm.db2.jcc.b.bd.a(bd.java:60)
    at com.ibm.db2.jcc.b.bd.a(bd.java:94)
    at com.ibm.db2.jcc.t2.a.a(a.java:37)
    at
    com.ibm.db2.jcc.t2.T2Configuration.<clinit>(T2Configuration.java
    :94)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
    at com.ibm.db2.jcc.DB2Driver.connect(DB2Driver.java:211)
    at java.sql.DriverManager.getConnection(DriverManager.java:572)
    at java.sql.DriverManager.getConnection(DriverManager.java:218)
    ...
    ...
    
    Normally jdbc:default:connection is used inside of a Java stored
    procedure/user defined function running on the server side.
    
    There are some environments where multiple JDBC drivers from
    different vendors are loaded into the same JVM.  Some JDBC
    drivers will accept jdbc:default:connection while others do not.
    
    This fix ensures that the IBM JDBC/JCC driver does not try to
    load the db2jcct2 library when it receives the JDBC URL
    jdbc:default:connection which may mislead the user into
    thinking an error has occurred.
    

Local fix

  • Do not use the JDBC URL jdbc:default:connection when trying to
    establish a connection to the DB2 database from a client.
    

Problem summary

  • See ERROR DESCRIPTION.
    

Problem conclusion

  • At minimum the client side Java application should use the
    JDBC/JCC driver included with v9.7 FP3.
    

Temporary fix

  • See LOCAL FIX.
    

Comments

APAR Information

  • APAR number

    IC69090

  • Reported component name

    DB2 FOR LUW

  • Reported component ID

    DB2FORLUW

  • Reported release

    970

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-06-09

  • Closed date

    2010-10-04

  • Last modified date

    2010-10-04

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

    IC69089

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

Fix information

  • Fixed component name

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R820 PSN

       UP

  • R910 PSN

       UP

  • R950 PSN

       UP

  • R970 PSN

       UP

  • R980 PSN

       UP

[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Product":{"code":"SSEPGG","label":"DB2 for Linux- UNIX and Windows"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.7"}]

Document Information

Modified date:
17 September 2021