File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
JDBC and Relational Databases
Error while pulling data from db2
Joined: Aug 27, 2006
Dec 21, 2006 13:59:00
I am getting the following error while pulling data from db2
Error Trace in closeConnection() :java.sql.Connection.close() requested while a transaction is in progress on the connection.The transaction remains active, and the connection cannot be closed.
But the data is pulled successfully,
Can any one help me in finding solution for the above error
Joined: Aug 24, 2005
Dec 21, 2006 20:21:00
Either call Connection.setAutoCommit(true) [usually done when you open the connection] to automatically commit the transaction or explicitly call commit() or rollback() just before close().
[ December 21, 2006: Message edited by: Scott Johnson ]
I agree. Here's the link:
subject: Error while pulling data from db2
wsad problem data connection importing catalog primary key null..
Error Connecting To DB2
Problem while connecting to db2
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015