ORA-17164
Cannot call getXAResource() from physical connection with caching enabled.
Cause
The getXAResource() method is being called on a physical connection that has connection caching enabled.
Action
Disable connection caching if you need to use getXAResource() on the connection.