Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.4.1
-
None
-
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.