I am trying to call my blazeds service from royale.Trying to follow the
guidelines specified here
https://apache.github.io/royale-docs/features/loading-external-data/remoteobject
I get the following error:
[onFault]
AbstractMessage.readExternalLanguage.as:254 ReferenceError: Error #1056: Cannot
create property faultDetail on
flex.messaging.messages.ErrorMessageLanguage.as:254 ReferenceError: Error
#1056: Cannot create property faultCode on
flex.messaging.messages.ErrorMessageLanguage.as:254 ReferenceError: Error
#1056: Cannot create property faultString on
flex.messaging.messages.ErrorMessageLanguage.as:254 ReferenceError: Error
#1056: Cannot create property rootCause on
flex.messaging.messages.ErrorMessageLanguage.as:254 ReferenceError: Error
#1056: Cannot create property extendedData on
flex.messaging.messages.ErrorMessage
Code snippets are as follows
trace(" -- registerClassAlias for royale array list -- ");
registerClassAlias('org.apache.royale.collections.ArrayList', ArrayList);
The above was registered at the main application.mxml.
<j:beads> <js:ApplicationDataBinding /> <js:RemoteObject
id="service" endPoint =
"http://localhost:8080/messagebroker/websocket-amf" destination =
"contactService" result="onResult(event)" fault="onFault(event)"/>
</j:beads>
trace(" about to call contactService.getContacts ... ");
service.send("contactService.getContacts", null);
private function onResult(param0:ResultEvent):void {
trace(" -- onResult oh ! -- ");
}
private function onFault(param0:FaultEvent):void {
trace(" -- onFailure oh ! -- ");
var errorMessage : String = param0.message as String;
trace(" Error :: " + errorMessage);
trace("[onFault]", param0); }
I am using jewel.
I am tested my blazeds end point using the java amf client. It works fine. This
is my first attempt at calling a blazeds end point from royale.
Any ideas ?