I wanted to know how to trace what code exactly caused the following warning in WebSphere.

WLTC0032W: One or more local transaction resources were rolled back during the cleanup of a LocalTransactionContainment.

In our application, we have a lot of classes from where we obtain a JNDI DataSource and execute SQL and I wanted to know is there a way by turning debug on in test environment to exactly pin-point the class that causes this warning. I am unable to find exception stack trace in SystemErr.log.

有帮助吗?

解决方案

The message indicates that you performed some local transaction work as part of that containment scope but did not commit. I suggest two options:

1) Commit the local transaction

connection.commit(); 

2) Putdata source to auto-commit

connection.setAutoCommit(true);
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top