× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Are there any known problems with the Native DB2 drivers and
DatabaseMetaData getProcedureColumns()? Code which works perfect under the
toolbox drivers is getting the following exception when using the native DB2
drivers instead:

java.lang.NullPointerException
      com/ibm/db2/jdbc/app/DB2ResultSet.getInt(I)I+80
(DB2ResultSet.java:2968)
      com/ibm/db2/jdbc/app/DB2RSGetProcedureColumns.getInt(I)I+112
(DB2RSGetProcedureColumns.java:319)
      com/ibm/db2/jdbc/app/DB2ResultSet.getInt(Ljava/lang/String;)I+43
(DB2ResultSet.java:5412)

com/hypere/ebiz/server/ProcedureExecuter.prepareCallableStatement(Lcom/hyper
e/ebiz/edata/DataSet;)Ljava/sql/CallableStatement;+52
(ProcedureExecuter.java:191)
      ...

After doing a successful getProcedureColumns(), there three possible places
in my code where the getInt() could be throwing an exception (I am still
looking into which one):

 getInt("DATA_TYPE"), getInt("COLUMN_TYPE") or if dataType is CHAR/VARCHAR,
getInt("LENGTH").

As far as I know we have the most recent CUM/PTFs etc., but I wold be happy
to check the system against any specific PTF numbers.
I will post again when I have more info as to exactly where it is throwing
the exception.

Regards,

Luther

luther.miller @ hypere.com


+---
| This is the JAVA/400 Mailing List!
| To submit a new message, send your mail to JAVA400-L@midrange.com.
| To subscribe to this list send email to JAVA400-L-SUB@midrange.com.
| To unsubscribe from this list send email to JAVA400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner: joe@zappie.net
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.