Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-3698

Reporting of non-http errors doesn't work in javascript client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.4.1
    • None
    • JavaScript Client
    • None
    • Moderate

    Description

      In cxf-utils.js, org_apache_cxf_client_onReadyState calls this.onerror with the wrong argument types in a couple of places. In one place it passes in a caught exception, and in another it passes in string. The onerror handler (which is generated for each method by wsdl2java) is expecting to be passed a reference to a CxfApacheOrgClient, and hence doesn't actually end up doing anything useful, including not calling the user onerror handler. I looked at creating a simple patch, but this will involve changing the js code generator and not just the static js because currently the generated handlers expect to find the error information in the request object, and those properties are read-only.

      Attachments

        Activity

          People

            Unassigned Unassigned
            svella Shon Vella
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: