wso2 / integration-studio-examples

Example project files for WSO2 Integration Studio
Apache License 2.0
34 stars 21 forks source link

[implementing-a-choice-exception-strategy] Issues #89

Open isuruuy429 opened 4 years ago

isuruuy429 commented 4 years ago

Description: https://github.com/wso2/integration-studio-examples/tree/master/migration/mule/implementing-a-choice-exception-strategy

README.md: Set up and run the example

  1. The URLs should be changed to http://localhost:8290 instead of 8090.
  2. Once the following URL is called > http://localhost:8290/file?filePath=invalidPath getting the following response.
[2020-05-04 20:29:20,316] ERROR {org.wso2.carbon.connector.FileRead} - Invalid absolute URI "file://invalidPath".
[2020-05-04 20:29:20,317] ERROR {API_LOGGER.ReadCSVFileAndResponseJSON} - Invalid absolute URI "file://invalidPath".
[2020-05-04 20:29:20,330]  WARN {API_LOGGER.ReadCSVFileAndResponseJSON} - Executing fault handler due to exception encountered
[2020-05-04 20:29:20,331]  WARN {API_LOGGER.ReadCSVFileAndResponseJSON} - ERROR_CODE : 0 ERROR_MESSAGE : Error occured in the mediation of the class mediator
[2020-05-04 20:29:20,331]  WARN {API_LOGGER.ReadCSVFileAndResponseJSON} - Executing fault sequence mediator : org.apache.synapse.mediators.base.SequenceMediator
  1. When it is invoked http://localhost:8290/file?filePath=C:/input.csv, getting the following response. Actual:
    [{"orderId":null,"name":"name","pricePerUnit":null,"units":null},{"orderId":1,"name":"T-shirt","pricePerUnit":25,"units":2},{"orderId":2,"name":"Jacket","pricePerUnit":40.5,"units":3}]

Expected:

    [
          {
            "orderId": "1",
            "name": "T-shirt",
            "pricePerUnit": "25.0",
            "units": "2"
          },
          {
            "orderId": "2",
            "name": "Jacket",
            "pricePerUnit": "40.5",
            "units": "3"
          }
        ]