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

                 Key: CXF-3698
                 URL: https://issues.apache.org/jira/browse/CXF-3698
             Project: CXF
          Issue Type: Bug
          Components: JavaScript Client
    Affects Versions: 2.4.1
            Reporter: Shon Vella


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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to