Skip to main content

IV25172: SQLEXCEPTION WHEN CONNECTING TO A DATABASE USING JDBC-ODBC API


Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • Error Message: N/A
    .
    Stack Trace: The following stack and message will be printed on
    a 64 bit JRE on Windows.
    java.sql.SQLException: <OSB>Microsoft<CSB><OSB>ODBC Driver
    Manager<CSB> Invalid string or buffer length
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6969)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7126)
    at sun.jdbc.odbc.JdbcOdbc.SQLGetDataString(JdbcOdbc.java:3919)
    at
    sun.jdbc.odbc.JdbcOdbcResultSet.getDataString(JdbcOdbcResultSet.
    java:5710)
    at
    sun.jdbc.odbc.JdbcOdbcResultSet.getString(JdbcOdbcResultSet.java
    :366)
    at
    sun.jdbc.odbc.JdbcOdbcConnection.buildTypeInfo(JdbcOdbcConnectio
    n.java:1515)
    at
    sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.j
    ava:393)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:186)
    at java.sql.DriverManager.getConnection(DriverManager.java:322)
    at java.sql.DriverManager.getConnection(DriverManager.java:358)
    at TestConnection.main(TestConnection.java:13)
    .
    The problem does not arise on Windows 32 bit.
    

Local fix

Problem summary

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR12
    6.0.1 SR4
    .
    SQLGetData function definition is corrected with appropriate
    data types as per the MSDN specification. This APAR is not
    applicable to Java 7 as JDBC-ODBC bridge is not supported from
    Java 7.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV25172

  • Reported component name

    JAVA CLASS LIBS

  • Reported component ID

    620700130

  • Reported release

    600

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-07-24

  • Closed date

    2012-08-16

  • Last modified date

    2012-08-16

  • 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

    JAVA CLASS LIBS

  • Fixed component ID

    620700130

Applicable component levels

  • R600 PSY

       UP

Rate this page:

(0 users)Average rating

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page:


(0 users)Average rating

Add comments

Document information

Runtimes for Java Technology

Java Class Libraries


Software version:
6.0


Reference #:
IV25172


Modified date:
2012-08-16

Translate my page

Content navigation