wso2 / micro-integrator

The cloud-native configuration driven runtime that helps developers implement composite microservices.
https://wso2.com/integration/
Apache License 2.0
202 stars 218 forks source link

[Bug]: WSO2 EI7 Error connector after redeploying CAR #140 #3537

Open anupama-pathirage opened 1 month ago

anupama-pathirage commented 1 month ago

Description

Moving the issue from: https://github.com/wso2-extensions/esb-connector-file/issues/140

image

This is EI issue but test with MI too.

Description: When second API call is made, connector fails at initialising phase. Exception is not visible.

Affected Product Version:

EI 7.1.x MI 1.2.x

Steps to reproduce:

  1. Make a working scenario using File connector.
  2. Burn the logic into a CAR application, and create a simple createDirectory process.
  3. As per the code, init will be done at the first message only. For other messages it will not get called.
  4. Redeploy the same CApp.
  5. When doing the same invoke and create a new directory again, the console show the next errror

Caused by: java.lang.ClassCastException: org.wso2.carbon.connector.connection.FileSystemHandler cannot be cast to org.wso2.carbon.connector.connection.FileSystemHandler

Issue.log

Steps to Reproduce

No response

Affected Version(s)

No response

OS, DB, other environment details and versions

No response

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response