A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
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..
Problem while connecting to db2
Error Connecting To DB2
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014