Search code examples
jsonwso2wso2-data-services-server

Error in getting JSON response from WSO2 DSS server where it contains a bit/boolean: "Error while writing to the output stream using JsonWriter"


I am getting the following error when I request a JSON response from WSO2 DSS service.

    {
  "Fault": {
    "faultcode": "soapenv:Server",
    "faultstring": "Error while writing to the output stream using JsonWriter",
    "detail": ""
  }
}

I noticed that this is happening when response contains a bit/boolean value. When I remove the latter the data is returned correctly in JSON.

Can any one help?


Solution

  • I hope you are using very old DSS server. This issue has been fixed with latest WSO2 DSS Server 3.5.0

    Or As Workaround you can change the message formatters and builders in /repository/conf/axis2/axis2.xml file