This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes DB2SQLJConnection NullPointerException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "DB2SQLJConnection NullPointerException" Watch "DB2SQLJConnection NullPointerException" New topic
Author

DB2SQLJConnection NullPointerException

shiva
Greenhorn

Joined: Feb 03, 2004
Posts: 6
Could you help me out.. I am getting this error.
java.lang.NullPointerException
at COM.ibm.db2os390.sqlj.jdbc.DB2SQLJConnection.addStatement(DB2SQLJConn
ction.java:1096)
at COM.ibm.db2os390.sqlj.jdbc.DB2SQLJConnection.prepareCall(DB2SQLJConne
tion.java:1270)
at com.ibm.db2.jcc.DB2LogicalConnection.prepareCall(DB2LogicalConnection
java:177)
Using db2j2classes.zip for ConnectionPooling. Calling stored-proc. First call to the stored procedure is fine. Subsequent calls to the same stored-proc are throwing exceptions. Getting new connection before calling stored-proc.
Printed a few connections. they are
com.ibm.db2.jcc.DB2LogicalConnection@2b983f7�mClosed=fal
se;mConnection=573a83f4�:
com.ibm.db2.jcc.DB2LogicalConnection@38d483f4�mClosed=fa
lse;mConnection=573a83f4�:
What is mConnection? They show the same address
I am getting above error while
cstmt = con.prepareCall(sql);

Thanks
[ February 03, 2004: Message edited by: shiva ko ]
 
Don't get me started about those stupid light bulbs.
 
subject: DB2SQLJConnection NullPointerException
 
Similar Threads
Timeout in Stored Procedure
CLI0112E Error in assignment. SQLSTATE=22005
Problem calling stored proc in DB2 (Using Visual Age For Java)
Difference detween execute() and executeUpdate()..?
Class.forName()