IBM Support

IC70619: EXECUTING AN SQLJ SINGLETON SELECT STATEMENT WITH THE "SELECT INTO" CONSTRUCT MAY LEAD TO ERROR -4470 (RESULT SET IS CLOSED)

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • When SQLJ runtime is used to execute a singleton select
    statement which includes "SELECT INTO" construct, operation may
    end abnormally throwing following exception:
    com.ibm.db2.jcc.am.SqlException: [jcc][10120][10943][4.9.78001]
    Invalid operation: result set is closed ERRORCODE=-4470,
    SQLSTATE=null
      at com.ibm.db2.jcc.am.ed.a(ed.java:660)
      at com.ibm.db2.jcc.am.ed.a(ed.java:60)
      at com.ibm.db2.jcc.am.ed.a(ed.java:103)
      at com.ibm.db2.jcc.am.dn.yb(dn.java:3990)
      at com.ibm.db2.jcc.am.dn.getFetchSize(dn.java:1126)
      at
    com.ibm.ws.rsadapter.jdbc.WSJccPreparedStatement.<init>(WSJccPre
    paredStatement.java:176)
      at
    com.ibm.ws.rsadapter.jdbc.WSJccConnection.prepareSQLJStatement(W
    SJccConnection.java:632)
      at com.ibm.db2.jcc.sqlj.m.<init>(m.java:257)
      at com.ibm.db2.jcc.sqlj.e.getStatement(e.java:137)
      at
    sqlj.runtime.ExecutionContext$StatementStack.setStatement(Execut
    ionContext.java:1172)
      at
    sqlj.runtime.ExecutionContext.registerStatement(ExecutionContext
    .java:695)
    
    This problem is most likely to occur in IBM Websphere
    Application Server (v7) environment.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * IBM Websphere Application Server (v7)                        *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * When SQLJ runtime is used to execute a singleton select      *
    * statement which includes "SELECT INTO" construct, operation  *
    * may end abnormally throwing following exception:             *
    * com.ibm.db2.jcc.am.SqlException:                             *
    * [jcc][10120][10943][4.9.78001]                               *
    * Invalid operation: result set is closed ERRORCODE=-4470,     *
    * SQLSTATE=null                                                *
    * at com.ibm.db2.jcc.am.ed.a(ed.java:660)                      *
    * at com.ibm.db2.jcc.am.ed.a(ed.java:60)                       *
    * at com.ibm.db2.jcc.am.ed.a(ed.java:103)                      *
    * at com.ibm.db2.jcc.am.dn.yb(dn.java:3990)                    *
    * at com.ibm.db2.jcc.am.dn.getFetchSize(dn.java:1126)          *
    * at                                                           *
    * com.ibm.ws.rsadapter.jdbc.WSJccPreparedStatement.<init>(WSJccP
    * at                                                           *
    * com.ibm.ws.rsadapter.jdbc.WSJccConnection.prepareSQLJStatement
    * at com.ibm.db2.jcc.sqlj.m.<init>(m.java:257)                 *
    * at com.ibm.db2.jcc.sqlj.e.getStatement(e.java:137)           *
    * at                                                           *
    * sqlj.runtime.ExecutionContext$StatementStack.setStatement(Exec
    * at                                                           *
    * sqlj.runtime.ExecutionContext.registerStatement(ExecutionConte
    *                                                              *
    *                                                              *
    * This problem is most likely to occur in IBM Websphere        *
    * Application Server (v7) environment.                         *
    ****************************************************************
    * RECOMMENDATION:                                              *
    * Upgrade to DB2 UDB for LUW version 9.7.300                   *
    ****************************************************************
    

Problem conclusion

  • Problem was first fixed in Version 9.7 Fix Pack 3
    At a minimum, this fix should be applied on the client
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC70619

  • 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-08-18

  • Closed date

    2011-05-02

  • Last modified date

    2011-05-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

    DB2 FOR LUW

  • Fixed component ID

    DB2FORLUW

Applicable component levels

  • R970 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:
16 September 2021