You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Shon Vella (JIRA)" <ji...@apache.org> on 2011/08/01 23:16:51 UTC
[jira] [Created] (CXF-3698) Reporting of non-http errors doesn't
work in javascript client
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