You will need to provide more information. What were you doing when this exception occurred? Also,
please include the full stack trace.
Jose Diaz wrote:
I am getting it error and no idea about the solution.
This is the method:
public void commit() throws SQLException {
if (con == null) throw new SQLException(CLOSED);
if (((XAResourceImpl) xaCon.getXAResource()).isTransaction())
throw new SQLException("Cannot commit a transactional connection: See JDBC 2.0
Optional Package Specification section 7.1 (p25)");
try {
con.commit();
} catch (SQLException e) {
setError(e);
throw e;
}
}
Please, let me know if someone can help with it issue.
Regards
Jose.