I am getting the below error while making JDBC calls to the database. I am using –
- Microsoft SQL Server 2005
- Weblogic 10
java.sql.SQLException:
[SQLState=null][ErrorCode=0]Unexpected
exception while enlisting XAConnection
java.sql.SQLException: Transaction
rolled back: Unknown reason
at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1419)
at weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1331)
at weblogic.jdbc.jta.DataSource.getConnection(DataSource.java:426)
at weblogic.jdbc.jta.DataSource.connect(DataSource.java:383)
at weblogic.jdbc.common.internal.RmiDataSource.getConnection(RmiDataSource.java:339)
Any thoughts as to why this is coming? Or any way i can debug it?
I found the issue. There was a Infinite loop in my code which was causing the connection leak.