Tuesday 6 December 2016

‘Put’ operation failed due to a stale connection

You are getting the following error when trying to execute FTP connection using FtpAdapter on 11g:
Exception occured when binding was invoked. Exception occured during invocation of JCA binding: “JCA Binding execute of Reference operation ‘Put’ failed due to…….A stale Connection Factory or Connection Handle may be used”
The cause of the problem:
You performed a redeployment  to the FtpAdapter in the WebLogic server.
During the redeployment there are already existing connection in the connection pool, that are being managed by the JCA ConnectionManager.
The WebLogic server doesn’t inform the connection pool about the new change (can be seen in weblogic-ra.xml). So now, Because there are already existing connections within the pool, they become stale

To solve this error:
Perform Update and not Redeploy to the FtpAdapter (Updates the weblogic-ra.xml):
  1. Go to Weblogic console
  2. Click on Deployments
  3. Click on FtpAdapter
  4. Modify and Save your new setting
  5. Click on Deployments
  6. Mark the FtpAdapter checkbox
  7. Click the Update button
  8. Choose “Update this application in place with new deployment plan changes. (A deployment plan must be specified for this option)”
  9. Click Finish

No comments:

Post a Comment