IV16885: CACHEDROWSETSWRITER.INSERTNEWROW() THROWS SQLEXCEPTION

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: java.sql.SQLException: Invalid column name
    .
    Stack Trace: java.sql.SQLException: Invalid column name
            at
    com.sun.rowset.CachedRowSetImpl.getColIdxByName(CachedRowSetImpl
    .java
    :1643)
            at
    com.sun.rowset.CachedRowSetImpl.getObject(CachedRowSetImpl.java:
    3023)
            at
    com.sun.rowset.internal.CachedRowSetWriter.insertNewRow(CachedRo
    wSetW
    riter.java:847)
            at
    com.sun.rowset.internal.CachedRowSetWriter.writeData(CachedRowSe
    tWrit
    er.java:346)
            at
    com.sun.rowset.CachedRowSetImpl.acceptChanges(CachedRowSetImpl.j
    ava:8
    75)
            at
    com.sun.rowset.CachedRowSetImpl.acceptChanges(CachedRowSetImpl.j
    ava:9
    34)
            at TestRowset2.performTest(TestRowset2.java:116)
            at TestRowset2.main(TestRowset2.java:125)
    .
    This problem occurs when the CachedRowSet object is created with
    a query which excludes primary key as the primary key is
    declared as autoincrement.
    

Local fix

Problem summary

  • Problem was caused as the algorithm to check the duplicate
    primary keys was not considering the fact that primary key can
    be autoincrement and need not be present in the CachedRowSet
    object.
    

Problem conclusion

  • This defect will be fixed in:
    6.0.0 SR11
    6.0.1 SR3
    7.0.0 SR2
    .
    JVM code has been updated to handle the scenario when primary
    key is autoincrement.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV16885

  • 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-03-10

  • Closed date

    2012-05-18

  • Last modified date

    2012-09-02

  • 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

  • R700 PSY

       UP



Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

Runtimes for Java Technology
Java Class Libraries

Software version:

6.0

Reference #:

IV16885

Modified date:

2012-09-02

Translate my page

Machine Translation

Content navigation