Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-4021

JSON-RPC OVER SCA HTTP BINDING DOES NOT RETURN A JSON OBJECT AFTER AN EXCEPTION

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Java SCA HTTP Binding
    • None

    Description

      JSON-RPC over SCA HTTP binding does not return a JSON object after an exception.

      The spec indicates a well formed JSON object should be returned in case of an error: http://json-rpc.org/wiki/specification

      But while creating a fault message in JSONRPCWireFormatInterceptor.createJSONFaultMessage the body is simply set to the throwable:
      private Message createJSONFaultMessage(Throwable throwable)

      { Message jsonFaultMessage = messageFactory.createMessage(); jsonFaultMessage.setBody(throwable); return jsonFaultMessage; }

      Attachments

        Activity

          People

            Unassigned Unassigned
            ctedlock Collin Tedlock
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: