WebSphere J2CA0081E Cleanup failed

Ash
1 min readJul 24, 2021

--

One common exception that you may encounter through the system logs is the J2CA0081E, from Websphere which tells that “method cleanup failed while trying to execute method cleanup on ManagedConnection WSRdbManagedConnectionImpl”.

The highlight of the exception will say that “Caught exception: com.ibm.ws.exception.WsException: DSRA0080E…”. The core issue is that there is a problem in the transaction handling of the application. You may have initiated a Database Connection JDBC or Pooling and that you have inadvertently set the AutoCommit to FALSE in certain situations for a particular transaction processing and have forgot to set it to TRUE afterwards.

As a result, once your transaction processing has been performed, by the time WebSphere initiates the cleanup phase for the Database Connections, the container cannot proceed further because of the AutoCommit. And thus, it will throw this exception in your System logs.

Whenever, you see this kind of exceptions in your System logs, make sure that you verify the whole process of your trasaction handling whether it is container managed or handled programatically.

--

--

Ash

Technical Dev Lead in Java Technologies, exploring the influence of software engineering.