I am trying to transcribe gairngorm, at runtime it gives me an error in the
construction of the ServiceLocator, I understand that it is an error of the
MXMLDataInterpreter. Anyone have any idea of the problem.
Thank
Gustavo.

*1. CODE *

<?xml version="1.0" encoding="utf-8"?>
<cairngorm:ServiceLocator xmlns:fx="http://ns.adobe.com/mxml/2009";
xmlns:mx="library://ns.apache.org/royale/mx"
xmlns:cairngorm="com.adobe.cairngorm.business.*">

<mx:RemoteObject id="srvSeguridades"
destination="seguridades"
result="event.token.resultHandler(event)"
fault="event.token.faultHandler(event)"
endpoint="http://localhost:8080/messagebroker/amf"/>

</cairngorm:ServiceLocator>




*2. LINE OF ERROR (RED)*
/

**
 * @constructor
 * @extends {com.adobe.cairngorm.business.ServiceLocator}
 */
services.Servicio = function() {
  services.Servicio.base(this, 'constructor');

  /**
   * @private
   * @type {mx.rpc.remoting.mxml.RemoteObject}
   */
  this.srvSeguridades_;

  /**
   * @private
   * @type {Array}
   */
  this.mxmldd;

  /**
   * @private
   * @type {Array}
   */
  this.mxmldp;

  this.generateMXMLAttributes
  ([1,
mx.rpc.remoting.mxml.RemoteObject,
3,
'id',
true,
'srvSeguridades',
'destination',
true,
'seguridades',
'endpoint',
true,
'http://localhost:8080/messagebroker/amf',
0,
2,
'result',
this.$EH0,
'fault',
this.$EH1,
null0,   <- ERROR
0
  ]);

};


3. Trace  console log

Servicio.js:61 Uncaught ReferenceError: null0 is not defined
    at new services.Servicio (Servicio.js:61)
    at
Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLArray
(MXMLDataInterpreter.js:126)
    at
Function.org.apache.royale.utils.MXMLDataInterpreter.generateMXMLInstances
(MXMLDataInterpreter.js:271)
    at main.Main.mx.core.UIComponent.createChildren (UIComponent.js:923)
    at main.Main.mx.core.Container.createChildren (Container.js:136)
    at main.Main.mx.core.Application.createChildren (Application.js:122)
    at main.Main.mx.core.UIComponent.initialize (UIComponent.js:871)
    at main.Main.mx.core.UIComponent.addedToParent (UIComponent.js:417)
    at main.Main.mx.core.Container.addedToParent (Container.js:123)
    at
Main_mx_managers_SystemManager.org.apache.royale.core.UIBase.addElement
(UIBase.js:402)

Reply via email to