Cairngorm problem add remote object MXML.

classic Classic list List threaded Threaded
38 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Cairngorm problem add remote object MXML.

De Carli Gustavo


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)"

</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 | Threaded
Open this post in threaded view
|

Re: Cairngorm problem add remote object MXML.

Alex Harui-2

What version of the compiler are you using?

 

What does the ServiceLocator source look like?  It might be an issue with defaultProperties for non-DOM objects.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Cairngorm problem add remote object MXML.

 

 


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)"

 

 



</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 | Threaded
Open this post in threaded view
|

Re: Cairngorm problem add remote object MXML.

De Carli Gustavo
Alex 

<version>0.9.7-SNAPSHOT</version>

Thank

El mié., 5 feb. 2020 a las 14:02, Alex Harui (<[hidden email]>) escribió:

What version of the compiler are you using?

 

What does the ServiceLocator source look like?  It might be an issue with defaultProperties for non-DOM objects.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Cairngorm problem add remote object MXML.

 

 


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)"

 

 



</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 | Threaded
Open this post in threaded view
|

Re: Cairngorm problem add remote object MXML.

Carlos Rovira-2
Hi,

Cairngorm depends on Flash APIs, so make a Royale migration could be not easy, or requires some expertise.
You can use Crux instead that has support for Cairngorm style Commands. Crux is the same as Swiz Framework for Flex but rewritten to work in Royale, and supports much more like dependency injection, Inversion of control, event handling, ...
You have 3 examples in the examples/crux folder you can check.
I recommend you Crux over Cairngorm since Swiz was born to substitute Cairngorm


El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (<[hidden email]>) escribió:
Alex 

<version>0.9.7-SNAPSHOT</version>

Thank

El mié., 5 feb. 2020 a las 14:02, Alex Harui (<[hidden email]>) escribió:

What version of the compiler are you using?

 

What does the ServiceLocator source look like?  It might be an issue with defaultProperties for non-DOM objects.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Cairngorm problem add remote object MXML.

 

 


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)"

 

 



</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 | Threaded
Open this post in threaded view
|

Re: Cairngorm problem add remote object MXML.

De Carli Gustavo
ok, I'll look to reimplement with crux
Thank.

El mié., 5 feb. 2020 a las 15:05, Carlos Rovira (<[hidden email]>) escribió:
Hi,

Cairngorm depends on Flash APIs, so make a Royale migration could be not easy, or requires some expertise.
You can use Crux instead that has support for Cairngorm style Commands. Crux is the same as Swiz Framework for Flex but rewritten to work in Royale, and supports much more like dependency injection, Inversion of control, event handling, ...
You have 3 examples in the examples/crux folder you can check.
I recommend you Crux over Cairngorm since Swiz was born to substitute Cairngorm


El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (<[hidden email]>) escribió:
Alex 

<version>0.9.7-SNAPSHOT</version>

Thank

El mié., 5 feb. 2020 a las 14:02, Alex Harui (<[hidden email]>) escribió:

What version of the compiler are you using?

 

What does the ServiceLocator source look like?  It might be an issue with defaultProperties for non-DOM objects.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Cairngorm problem add remote object MXML.

 

 


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)"

 

 



</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 | Threaded
Open this post in threaded view
|

Re: Cairngorm problem add remote object MXML.

Alex Harui-2
In reply to this post by Carlos Rovira-2

Carlos, What Flash APIs is Cairngorm dependent on?

 

-Alex

 

From: Carlos Rovira <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 10:05 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

Hi,

 

Cairngorm depends on Flash APIs, so make a Royale migration could be not easy, or requires some expertise.

You can use Crux instead that has support for Cairngorm style Commands. Crux is the same as Swiz Framework for Flex but rewritten to work in Royale, and supports much more like dependency injection, Inversion of control, event handling, ...

You have 3 examples in the examples/crux folder you can check.

I recommend you Crux over Cairngorm since Swiz was born to substitute Cairngorm

 

 

El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (<[hidden email]>) escribió:

Alex 

 

<version>0.9.7-SNAPSHOT</version>

 

Thank

 

El mié., 5 feb. 2020 a las 14:02, Alex Harui (<[hidden email]>) escribió:

What version of the compiler are you using?

 

What does the ServiceLocator source look like?  It might be an issue with defaultProperties for non-DOM objects.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Cairngorm problem add remote object MXML.

 

 


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)"

 

 

 

</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)


 

--

Carlos Rovira

 

Reply | Threaded
Open this post in threaded view
|

Re: Cairngorm problem add remote object MXML.

De Carli Gustavo


import flash.utils.describeType;
   --> import org.apache.royale.reflection.describeType;

import flash.utils.Dictionary; 
   --> import org.apache.royale.utils.ObjectMap;

And this method

/**
* Return all the accessors on this object.
* @param serviceLocator the IServiceLocator instance.
* @return this object's accessors.
*/
protected function getAccessors( serviceLocator : IServiceLocator ) : XMLList
{
/*
var description : XML = describeType( serviceLocator );
var accessors : XMLList = description.accessor.( @access == "readwrite" ).@name;
return accessors;
*/

return describeType( serviceLocator).accessors(@access == "readwrite" ).@name;
}



El mié., 5 feb. 2020 a las 16:04, Alex Harui (<[hidden email]>) escribió:

Carlos, What Flash APIs is Cairngorm dependent on?

 

-Alex

 

From: Carlos Rovira <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 10:05 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

Hi,

 

Cairngorm depends on Flash APIs, so make a Royale migration could be not easy, or requires some expertise.

You can use Crux instead that has support for Cairngorm style Commands. Crux is the same as Swiz Framework for Flex but rewritten to work in Royale, and supports much more like dependency injection, Inversion of control, event handling, ...

You have 3 examples in the examples/crux folder you can check.

I recommend you Crux over Cairngorm since Swiz was born to substitute Cairngorm

 

 

El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (<[hidden email]>) escribió:

Alex 

 

<version>0.9.7-SNAPSHOT</version>

 

Thank

 

El mié., 5 feb. 2020 a las 14:02, Alex Harui (<[hidden email]>) escribió:

What version of the compiler are you using?

 

What does the ServiceLocator source look like?  It might be an issue with defaultProperties for non-DOM objects.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Cairngorm problem add remote object MXML.

 

 


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)"

 

 

 

</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)


 

--

Carlos Rovira

 

Reply | Threaded
Open this post in threaded view
|

Re: Cairngorm problem add remote object MXML.

Greg Dove

That will still need some changes. I'd suggest it is best to remove the use of XML/XMLList in this library because reflection support in Royale is more like a more advanced reflection library that you can sometimes use in swf, instead of raw data (XML).

I will look into Cairngorm later today or tomorrow. It seems that it may be worth providing a direct port.




On Thu, Feb 6, 2020 at 9:00 AM De Carli Gustavo <[hidden email]> wrote:


import flash.utils.describeType;
   --> import org.apache.royale.reflection.describeType;

import flash.utils.Dictionary; 
   --> import org.apache.royale.utils.ObjectMap;

And this method

/**
* Return all the accessors on this object.
* @param serviceLocator the IServiceLocator instance.
* @return this object's accessors.
*/
protected function getAccessors( serviceLocator : IServiceLocator ) : XMLList
{
/*
var description : XML = describeType( serviceLocator );
var accessors : XMLList = description.accessor.( @access == "readwrite" ).@name;
return accessors;
*/

return describeType( serviceLocator).accessors(@access == "readwrite" ).@name;
}



El mié., 5 feb. 2020 a las 16:04, Alex Harui (<[hidden email]>) escribió:

Carlos, What Flash APIs is Cairngorm dependent on?

 

-Alex

 

From: Carlos Rovira <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 10:05 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

Hi,

 

Cairngorm depends on Flash APIs, so make a Royale migration could be not easy, or requires some expertise.

You can use Crux instead that has support for Cairngorm style Commands. Crux is the same as Swiz Framework for Flex but rewritten to work in Royale, and supports much more like dependency injection, Inversion of control, event handling, ...

You have 3 examples in the examples/crux folder you can check.

I recommend you Crux over Cairngorm since Swiz was born to substitute Cairngorm

 

 

El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (<[hidden email]>) escribió:

Alex 

 

<version>0.9.7-SNAPSHOT</version>

 

Thank

 

El mié., 5 feb. 2020 a las 14:02, Alex Harui (<[hidden email]>) escribió:

What version of the compiler are you using?

 

What does the ServiceLocator source look like?  It might be an issue with defaultProperties for non-DOM objects.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Cairngorm problem add remote object MXML.

 

 


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)"

 

 

 

</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)


 

--

Carlos Rovira

 

Reply | Threaded
Open this post in threaded view
|

Re: Cairngorm problem add remote object MXML.

Carlos Rovira-2
In reply to this post by Alex Harui-2
Hi Alex,

I don't have the Cairngorm code at hand, we left it long time ago (maybe around 2008) in favor of Swiz that was the new generation of frameworks at that time that brings IOC, DI...

But I remember there was many flash APIs involved. Maybe most of them are now emulated in Royale and could be not difficult to do (I,e Reflection). Maybe other things regarding add to stage events...don't remember well. Cairngorm was just few classes, so it could be ported in this project with not much effort for an experienced Royale developer, but not for someone new here.

HTH

Carlos

El mié., 5 feb. 2020 a las 20:04, Alex Harui (<[hidden email]>) escribió:

Carlos, What Flash APIs is Cairngorm dependent on?

 

-Alex

 

From: Carlos Rovira <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 10:05 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

Hi,

 

Cairngorm depends on Flash APIs, so make a Royale migration could be not easy, or requires some expertise.

You can use Crux instead that has support for Cairngorm style Commands. Crux is the same as Swiz Framework for Flex but rewritten to work in Royale, and supports much more like dependency injection, Inversion of control, event handling, ...

You have 3 examples in the examples/crux folder you can check.

I recommend you Crux over Cairngorm since Swiz was born to substitute Cairngorm

 

 

El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (<[hidden email]>) escribió:

Alex 

 

<version>0.9.7-SNAPSHOT</version>

 

Thank

 

El mié., 5 feb. 2020 a las 14:02, Alex Harui (<[hidden email]>) escribió:

What version of the compiler are you using?

 

What does the ServiceLocator source look like?  It might be an issue with defaultProperties for non-DOM objects.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Cairngorm problem add remote object MXML.

 

 


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)"

 

 

 

</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)


 

--

Carlos Rovira

 



--
Reply | Threaded
Open this post in threaded view
|

Re: Cairngorm problem add remote object MXML.

T-san
Hi, F.Y.I.

The following is a list of imports in the cairngorm source code.

import com.adobe.cairngorm.AllCairngormTests;
import com.adobe.cairngorm.business.AbstractServices;
import com.adobe.cairngorm.business.IServiceLocator;;
import com.adobe.cairngorm.business.ServiceLocator;
import com.adobe.cairngorm.CairngormError;
import com.adobe.cairngorm.CairngormMessageCodes;
import com.adobe.cairngorm.commands.Command;
import com.adobe.cairngorm.commands.ICommand;
import com.adobe.cairngorm.control.CairngormEvent;
import com.adobe.cairngorm.control.CairngormEventDispatcher;
import com.adobe.cairngorm.control.TestCairngormEvent;
import com.adobe.cairngorm.control.TestCairngormEventDispatcher;
import com.adobe.cairngorm.control.TestFrontController;
import com.adobe.cairngorm.mocks.MockICommand;
import com.adobe.cairngorm.vo.IValueObject;
import flash.events.Event;
import flash.events.EventDispatcher;
import flash.events.IEventDispatcher;
import flash.utils.describeType;
import flash.utils.Dictionary;
import flash.utils.getQualifiedClassName;
import flexunit.framework.Test;
import flexunit.framework.TestCase;
import flexunit.framework.TestSuite;
import mx.core.IMXMLObject;
import mx.core.mx_internal;
import mx.data.DataService;
import mx.messaging.Consumer;
import mx.messaging.MessageAgent;
import mx.messaging.Producer;
import mx.resources.ResourceManager;
import mx.rpc.AbstractInvoker;
import mx.rpc.AbstractService;
import mx.rpc.http.HTTPService;
import mx.rpc.remoting.RemoteObject;
import mx.rpc.soap.WebService;
import mx.utils.StringUtil;

On Thu, Feb 6, 2020 at 8:49 AM Carlos Rovira <[hidden email]> wrote:
Hi Alex,

I don't have the Cairngorm code at hand, we left it long time ago (maybe around 2008) in favor of Swiz that was the new generation of frameworks at that time that brings IOC, DI...

But I remember there was many flash APIs involved. Maybe most of them are now emulated in Royale and could be not difficult to do (I,e Reflection). Maybe other things regarding add to stage events...don't remember well. Cairngorm was just few classes, so it could be ported in this project with not much effort for an experienced Royale developer, but not for someone new here.

HTH

Carlos

El mié., 5 feb. 2020 a las 20:04, Alex Harui (<[hidden email]>) escribió:

Carlos, What Flash APIs is Cairngorm dependent on?

 

-Alex

 

From: Carlos Rovira <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 10:05 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

Hi,

 

Cairngorm depends on Flash APIs, so make a Royale migration could be not easy, or requires some expertise.

You can use Crux instead that has support for Cairngorm style Commands. Crux is the same as Swiz Framework for Flex but rewritten to work in Royale, and supports much more like dependency injection, Inversion of control, event handling, ...

You have 3 examples in the examples/crux folder you can check.

I recommend you Crux over Cairngorm since Swiz was born to substitute Cairngorm

 

 

El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (<[hidden email]>) escribió:

Alex 

 

<version>0.9.7-SNAPSHOT</version>

 

Thank

 

El mié., 5 feb. 2020 a las 14:02, Alex Harui (<[hidden email]>) escribió:

What version of the compiler are you using?

 

What does the ServiceLocator source look like?  It might be an issue with defaultProperties for non-DOM objects.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Cairngorm problem add remote object MXML.

 

 


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)"

 

 

 

</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)


 

--

Carlos Rovira

 



--


--
Shoichiro Takeshita
武下 祥一郎
Reply | Threaded
Open this post in threaded view
|

Re: Cairngorm problem add remote object MXML.

Alex Harui-2
In reply to this post by De Carli Gustavo

I grabbed ServiceLocator.as and was able to produce the null0 problem, but the cause is that ServiceLocator does not have a default property.  Did your MXML work in Flex?  What ServiceLocator property would be assigned the mx:RemoteObject?

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 12:00 PM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

 

 

import flash.utils.describeType;

   --> import org.apache.royale.reflection.describeType;

import flash.utils.Dictionary; 

   --> import org.apache.royale.utils.ObjectMap;

 

And this method

 

 

/**

 

* Return all the accessors on this object.

 

* @param serviceLocator the IServiceLocator instance.

 

* @return this object's accessors.

 

*/

 

protected

function getAccessors(

serviceLocator : IServiceLocator ) :

XMLList

 

{

 

/*

 

var description : XML = describeType( serviceLocator );

 

var accessors : XMLList = description.accessor.( @access == "readwrite" ).@name;

 

 

return accessors;

 

*/

 



return describeType( serviceLocator).accessors(@access ==

"readwrite" ).@name;

 

}

 

 

 

 

El mié., 5 feb. 2020 a las 16:04, Alex Harui (<[hidden email]>) escribió:

Carlos, What Flash APIs is Cairngorm dependent on?

 

-Alex

 

From: Carlos Rovira <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 10:05 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

Hi,

 

Cairngorm depends on Flash APIs, so make a Royale migration could be not easy, or requires some expertise.

You can use Crux instead that has support for Cairngorm style Commands. Crux is the same as Swiz Framework for Flex but rewritten to work in Royale, and supports much more like dependency injection, Inversion of control, event handling, ...

You have 3 examples in the examples/crux folder you can check.

I recommend you Crux over Cairngorm since Swiz was born to substitute Cairngorm

 

 

El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (<[hidden email]>) escribió:

Alex 

 

<version>0.9.7-SNAPSHOT</version>

 

Thank

 

El mié., 5 feb. 2020 a las 14:02, Alex Harui (<[hidden email]>) escribió:

What version of the compiler are you using?

 

What does the ServiceLocator source look like?  It might be an issue with defaultProperties for non-DOM objects.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Cairngorm problem add remote object MXML.

 

 


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)"

 

 

 

</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)


 

--

Carlos Rovira

 

Reply | Threaded
Open this post in threaded view
|

Re: Cairngorm problem add remote object MXML.

De Carli Gustavo
Alex : 

In flex use the swc. I am seeing the same thing that you are commenting, I do not understand where it assigns the remote objects to the ServiceLocator. This would have to be added to the "services" attribute of the RemoteObjects class. I will try to assign by code without using the mxml to see if it does not generate the error "null0".

El mié., 5 feb. 2020 a las 23:15, Alex Harui (<[hidden email]>) escribió:

I grabbed ServiceLocator.as and was able to produce the null0 problem, but the cause is that ServiceLocator does not have a default property.  Did your MXML work in Flex?  What ServiceLocator property would be assigned the mx:RemoteObject?

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 12:00 PM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

 

 

import flash.utils.describeType;

   --> import org.apache.royale.reflection.describeType;

import flash.utils.Dictionary; 

   --> import org.apache.royale.utils.ObjectMap;

 

And this method

 

 

/**

 

* Return all the accessors on this object.

 

* @param serviceLocator the IServiceLocator instance.

 

* @return this object's accessors.

 

*/

 

protected

function getAccessors(

serviceLocator : IServiceLocator ) :

XMLList

 

{

 

/*

 

var description : XML = describeType( serviceLocator );

 

var accessors : XMLList = description.accessor.( @access == "readwrite" ).@name;

 

 

return accessors;

 

*/

 



return describeType( serviceLocator).accessors(@access ==

"readwrite" ).@name;

 

}

 

 

 

 

El mié., 5 feb. 2020 a las 16:04, Alex Harui (<[hidden email]>) escribió:

Carlos, What Flash APIs is Cairngorm dependent on?

 

-Alex

 

From: Carlos Rovira <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 10:05 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

Hi,

 

Cairngorm depends on Flash APIs, so make a Royale migration could be not easy, or requires some expertise.

You can use Crux instead that has support for Cairngorm style Commands. Crux is the same as Swiz Framework for Flex but rewritten to work in Royale, and supports much more like dependency injection, Inversion of control, event handling, ...

You have 3 examples in the examples/crux folder you can check.

I recommend you Crux over Cairngorm since Swiz was born to substitute Cairngorm

 

 

El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (<[hidden email]>) escribió:

Alex 

 

<version>0.9.7-SNAPSHOT</version>

 

Thank

 

El mié., 5 feb. 2020 a las 14:02, Alex Harui (<[hidden email]>) escribió:

What version of the compiler are you using?

 

What does the ServiceLocator source look like?  It might be an issue with defaultProperties for non-DOM objects.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Cairngorm problem add remote object MXML.

 

 


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)"

 

 

 

</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)


 

--

Carlos Rovira

 

Reply | Threaded
Open this post in threaded view
|

Re: Cairngorm problem add remote object MXML.

Greg Dove

There does not appear to be a default property, like an array to put the 'children' in. I think it just creates the children as instances and makes sure they have id properties on the mxml-generated subclass that the instances are assigned to.

The services are then identified and categorised by iterating the accessors of the ServiceLocator subclass via reflection and checking their types and then registering them.
Although it is and mxml instance of ServiceLocator, it is also an enforced singleton which is accessed elsewhere from code. At least that is how it appears to be set up to me.

I already took a look at the code and have made (not many) local changes and have the Cairngorm swc compiling via maven for both js and swf. I have not tested it. Things like weak event listeners are gone.
The main issue I think will be the Event.ADDED and Event.REMOVED for ViewHelper automated register/unregister. Maybe we can have a CaingormViewBase class with support for these, or perhaps we can use the ADDED/REMOVED_FROM_STAGE emulation support that Crux uses, and that might be all that is needed, but it may not always work the same.

I'll try to tidy it up and share it tomorrow. The licence is BSD and is permissive (https://sourceforge.net/adobe/cairngorm/code/HEAD/tree/cairngorm/trunk/frameworks/cairngorm/License.txt) - It seems to be to be similar to others like MIT etc, but I don't know specifically what the rules are for Apache with that licence (in terms of possibility to include in Royale itself).





On Thu, Feb 6, 2020 at 3:40 PM De Carli Gustavo <[hidden email]> wrote:
Alex : 

In flex use the swc. I am seeing the same thing that you are commenting, I do not understand where it assigns the remote objects to the ServiceLocator. This would have to be added to the "services" attribute of the RemoteObjects class. I will try to assign by code without using the mxml to see if it does not generate the error "null0".

El mié., 5 feb. 2020 a las 23:15, Alex Harui (<[hidden email]>) escribió:

I grabbed ServiceLocator.as and was able to produce the null0 problem, but the cause is that ServiceLocator does not have a default property.  Did your MXML work in Flex?  What ServiceLocator property would be assigned the mx:RemoteObject?

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 12:00 PM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

 

 

import flash.utils.describeType;

   --> import org.apache.royale.reflection.describeType;

import flash.utils.Dictionary; 

   --> import org.apache.royale.utils.ObjectMap;

 

And this method

 

 

/**

 

* Return all the accessors on this object.

 

* @param serviceLocator the IServiceLocator instance.

 

* @return this object's accessors.

 

*/

 

protected

function getAccessors(

serviceLocator : IServiceLocator ) :

XMLList

 

{

 

/*

 

var description : XML = describeType( serviceLocator );

 

var accessors : XMLList = description.accessor.( @access == "readwrite" ).@name;

 

 

return accessors;

 

*/

 



return describeType( serviceLocator).accessors(@access ==

"readwrite" ).@name;

 

}

 

 

 

 

El mié., 5 feb. 2020 a las 16:04, Alex Harui (<[hidden email]>) escribió:

Carlos, What Flash APIs is Cairngorm dependent on?

 

-Alex

 

From: Carlos Rovira <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 10:05 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

Hi,

 

Cairngorm depends on Flash APIs, so make a Royale migration could be not easy, or requires some expertise.

You can use Crux instead that has support for Cairngorm style Commands. Crux is the same as Swiz Framework for Flex but rewritten to work in Royale, and supports much more like dependency injection, Inversion of control, event handling, ...

You have 3 examples in the examples/crux folder you can check.

I recommend you Crux over Cairngorm since Swiz was born to substitute Cairngorm

 

 

El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (<[hidden email]>) escribió:

Alex 

 

<version>0.9.7-SNAPSHOT</version>

 

Thank

 

El mié., 5 feb. 2020 a las 14:02, Alex Harui (<[hidden email]>) escribió:

What version of the compiler are you using?

 

What does the ServiceLocator source look like?  It might be an issue with defaultProperties for non-DOM objects.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Cairngorm problem add remote object MXML.

 

 


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)"

 

 

 

</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)


 

--

Carlos Rovira

 

Reply | Threaded
Open this post in threaded view
|

Re: Cairngorm problem add remote object MXML.

T-san
Greg,   

Thanks for your work. We already have your Crux framework replacing Cairngorm, it is great if Cairngorm works with Royale.  It will save a plenty of time of emulation work.

2020年2月6日(木) 12:33 Greg Dove <[hidden email]>:

There does not appear to be a default property, like an array to put the 'children' in. I think it just creates the children as instances and makes sure they have id properties on the mxml-generated subclass that the instances are assigned to.

The services are then identified and categorised by iterating the accessors of the ServiceLocator subclass via reflection and checking their types and then registering them.
Although it is and mxml instance of ServiceLocator, it is also an enforced singleton which is accessed elsewhere from code. At least that is how it appears to be set up to me.

I already took a look at the code and have made (not many) local changes and have the Cairngorm swc compiling via maven for both js and swf. I have not tested it. Things like weak event listeners are gone.
The main issue I think will be the Event.ADDED and Event.REMOVED for ViewHelper automated register/unregister. Maybe we can have a CaingormViewBase class with support for these, or perhaps we can use the ADDED/REMOVED_FROM_STAGE emulation support that Crux uses, and that might be all that is needed, but it may not always work the same.

I'll try to tidy it up and share it tomorrow. The licence is BSD and is permissive (https://sourceforge.net/adobe/cairngorm/code/HEAD/tree/cairngorm/trunk/frameworks/cairngorm/License.txt) - It seems to be to be similar to others like MIT etc, but I don't know specifically what the rules are for Apache with that licence (in terms of possibility to include in Royale itself).





On Thu, Feb 6, 2020 at 3:40 PM De Carli Gustavo <[hidden email]> wrote:
Alex : 

In flex use the swc. I am seeing the same thing that you are commenting, I do not understand where it assigns the remote objects to the ServiceLocator. This would have to be added to the "services" attribute of the RemoteObjects class. I will try to assign by code without using the mxml to see if it does not generate the error "null0".

El mié., 5 feb. 2020 a las 23:15, Alex Harui (<[hidden email]>) escribió:

I grabbed ServiceLocator.as and was able to produce the null0 problem, but the cause is that ServiceLocator does not have a default property.  Did your MXML work in Flex?  What ServiceLocator property would be assigned the mx:RemoteObject?

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 12:00 PM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

 

 

import flash.utils.describeType;

   --> import org.apache.royale.reflection.describeType;

import flash.utils.Dictionary; 

   --> import org.apache.royale.utils.ObjectMap;

 

And this method

 

 

/**

 

* Return all the accessors on this object.

 

* @param serviceLocator the IServiceLocator instance.

 

* @return this object's accessors.

 

*/

 

protected

function getAccessors(

serviceLocator : IServiceLocator ) :

XMLList

 

{

 

/*

 

var description : XML = describeType( serviceLocator );

 

var accessors : XMLList = description.accessor.( @access == "readwrite" ).@name;

 

 

return accessors;

 

*/

 



return describeType( serviceLocator).accessors(@access ==

"readwrite" ).@name;

 

}

 

 

 

 

El mié., 5 feb. 2020 a las 16:04, Alex Harui (<[hidden email]>) escribió:

Carlos, What Flash APIs is Cairngorm dependent on?

 

-Alex

 

From: Carlos Rovira <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 10:05 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

Hi,

 

Cairngorm depends on Flash APIs, so make a Royale migration could be not easy, or requires some expertise.

You can use Crux instead that has support for Cairngorm style Commands. Crux is the same as Swiz Framework for Flex but rewritten to work in Royale, and supports much more like dependency injection, Inversion of control, event handling, ...

You have 3 examples in the examples/crux folder you can check.

I recommend you Crux over Cairngorm since Swiz was born to substitute Cairngorm

 

 

El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (<[hidden email]>) escribió:

Alex 

 

<version>0.9.7-SNAPSHOT</version>

 

Thank

 

El mié., 5 feb. 2020 a las 14:02, Alex Harui (<[hidden email]>) escribió:

What version of the compiler are you using?

 

What does the ServiceLocator source look like?  It might be an issue with defaultProperties for non-DOM objects.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Cairngorm problem add remote object MXML.

 

 


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)"

 

 

 

</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)


 

--

Carlos Rovira

 

--
Shoichiro Takeshita
武下 祥一郎
Reply | Threaded
Open this post in threaded view
|

Re: Cairngorm problem add remote object MXML.

Greg Dove

Hi Takeshita,

Yes I think a few people have asked for Cairngorm or expressed interest in it. Given the choice, I personally think Crux will be a more modern/better option, but like I said, more people are asking for Cairngorm now, so probably it makes sense to port that too.

I'm also pleased to hear that you are using Crux, I hope it's working well for you. Please report any issues if you see them.

One small thing: I definitely understand that you were referring to the work I did on porting it to Royale, but just for the sake of anyone else who reads this: it's definitely not 'my Crux framework'. The code is ported from Swiz, and credit for the awesome features it has rests with the original authors of Swiz (I was in contact with the original developer during my efforts to port it to Royale).
Also, just so people are aware, Carlos sponsored the majority of my work on porting that, so you really have Carlos to thank for that.

cheers,
Greg

On Thu, Feb 6, 2020 at 5:04 PM Takeshita Shoichiro <[hidden email]> wrote:
Greg,   

Thanks for your work. We already have your Crux framework replacing Cairngorm, it is great if Cairngorm works with Royale.  It will save a plenty of time of emulation work.

2020年2月6日(木) 12:33 Greg Dove <[hidden email]>:

There does not appear to be a default property, like an array to put the 'children' in. I think it just creates the children as instances and makes sure they have id properties on the mxml-generated subclass that the instances are assigned to.

The services are then identified and categorised by iterating the accessors of the ServiceLocator subclass via reflection and checking their types and then registering them.
Although it is and mxml instance of ServiceLocator, it is also an enforced singleton which is accessed elsewhere from code. At least that is how it appears to be set up to me.

I already took a look at the code and have made (not many) local changes and have the Cairngorm swc compiling via maven for both js and swf. I have not tested it. Things like weak event listeners are gone.
The main issue I think will be the Event.ADDED and Event.REMOVED for ViewHelper automated register/unregister. Maybe we can have a CaingormViewBase class with support for these, or perhaps we can use the ADDED/REMOVED_FROM_STAGE emulation support that Crux uses, and that might be all that is needed, but it may not always work the same.

I'll try to tidy it up and share it tomorrow. The licence is BSD and is permissive (https://sourceforge.net/adobe/cairngorm/code/HEAD/tree/cairngorm/trunk/frameworks/cairngorm/License.txt) - It seems to be to be similar to others like MIT etc, but I don't know specifically what the rules are for Apache with that licence (in terms of possibility to include in Royale itself).





On Thu, Feb 6, 2020 at 3:40 PM De Carli Gustavo <[hidden email]> wrote:
Alex : 

In flex use the swc. I am seeing the same thing that you are commenting, I do not understand where it assigns the remote objects to the ServiceLocator. This would have to be added to the "services" attribute of the RemoteObjects class. I will try to assign by code without using the mxml to see if it does not generate the error "null0".

El mié., 5 feb. 2020 a las 23:15, Alex Harui (<[hidden email]>) escribió:

I grabbed ServiceLocator.as and was able to produce the null0 problem, but the cause is that ServiceLocator does not have a default property.  Did your MXML work in Flex?  What ServiceLocator property would be assigned the mx:RemoteObject?

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 12:00 PM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

 

 

import flash.utils.describeType;

   --> import org.apache.royale.reflection.describeType;

import flash.utils.Dictionary; 

   --> import org.apache.royale.utils.ObjectMap;

 

And this method

 

 

/**

 

* Return all the accessors on this object.

 

* @param serviceLocator the IServiceLocator instance.

 

* @return this object's accessors.

 

*/

 

protected

function getAccessors(

serviceLocator : IServiceLocator ) :

XMLList

 

{

 

/*

 

var description : XML = describeType( serviceLocator );

 

var accessors : XMLList = description.accessor.( @access == "readwrite" ).@name;

 

 

return accessors;

 

*/

 



return describeType( serviceLocator).accessors(@access ==

"readwrite" ).@name;

 

}

 

 

 

 

El mié., 5 feb. 2020 a las 16:04, Alex Harui (<[hidden email]>) escribió:

Carlos, What Flash APIs is Cairngorm dependent on?

 

-Alex

 

From: Carlos Rovira <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 10:05 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

Hi,

 

Cairngorm depends on Flash APIs, so make a Royale migration could be not easy, or requires some expertise.

You can use Crux instead that has support for Cairngorm style Commands. Crux is the same as Swiz Framework for Flex but rewritten to work in Royale, and supports much more like dependency injection, Inversion of control, event handling, ...

You have 3 examples in the examples/crux folder you can check.

I recommend you Crux over Cairngorm since Swiz was born to substitute Cairngorm

 

 

El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (<[hidden email]>) escribió:

Alex 

 

<version>0.9.7-SNAPSHOT</version>

 

Thank

 

El mié., 5 feb. 2020 a las 14:02, Alex Harui (<[hidden email]>) escribió:

What version of the compiler are you using?

 

What does the ServiceLocator source look like?  It might be an issue with defaultProperties for non-DOM objects.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Cairngorm problem add remote object MXML.

 

 


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)"

 

 

 

</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)


 

--

Carlos Rovira

 

--
Shoichiro Takeshita
武下 祥一郎
Reply | Threaded
Open this post in threaded view
|

Re: Cairngorm problem add remote object MXML.

T-san
Greg, thanks for your clarification.  Anyway, it is  a great work.  Carlos, thanks all the times.^_^

2020年2月6日(木) 13:22 Greg Dove <[hidden email]>:

Hi Takeshita,

Yes I think a few people have asked for Cairngorm or expressed interest in it. Given the choice, I personally think Crux will be a more modern/better option, but like I said, more people are asking for Cairngorm now, so probably it makes sense to port that too.

I'm also pleased to hear that you are using Crux, I hope it's working well for you. Please report any issues if you see them.

One small thing: I definitely understand that you were referring to the work I did on porting it to Royale, but just for the sake of anyone else who reads this: it's definitely not 'my Crux framework'. The code is ported from Swiz, and credit for the awesome features it has rests with the original authors of Swiz (I was in contact with the original developer during my efforts to port it to Royale).
Also, just so people are aware, Carlos sponsored the majority of my work on porting that, so you really have Carlos to thank for that.

cheers,
Greg

On Thu, Feb 6, 2020 at 5:04 PM Takeshita Shoichiro <[hidden email]> wrote:
Greg,   

Thanks for your work. We already have your Crux framework replacing Cairngorm, it is great if Cairngorm works with Royale.  It will save a plenty of time of emulation work.

2020年2月6日(木) 12:33 Greg Dove <[hidden email]>:

There does not appear to be a default property, like an array to put the 'children' in. I think it just creates the children as instances and makes sure they have id properties on the mxml-generated subclass that the instances are assigned to.

The services are then identified and categorised by iterating the accessors of the ServiceLocator subclass via reflection and checking their types and then registering them.
Although it is and mxml instance of ServiceLocator, it is also an enforced singleton which is accessed elsewhere from code. At least that is how it appears to be set up to me.

I already took a look at the code and have made (not many) local changes and have the Cairngorm swc compiling via maven for both js and swf. I have not tested it. Things like weak event listeners are gone.
The main issue I think will be the Event.ADDED and Event.REMOVED for ViewHelper automated register/unregister. Maybe we can have a CaingormViewBase class with support for these, or perhaps we can use the ADDED/REMOVED_FROM_STAGE emulation support that Crux uses, and that might be all that is needed, but it may not always work the same.

I'll try to tidy it up and share it tomorrow. The licence is BSD and is permissive (https://sourceforge.net/adobe/cairngorm/code/HEAD/tree/cairngorm/trunk/frameworks/cairngorm/License.txt) - It seems to be to be similar to others like MIT etc, but I don't know specifically what the rules are for Apache with that licence (in terms of possibility to include in Royale itself).





On Thu, Feb 6, 2020 at 3:40 PM De Carli Gustavo <[hidden email]> wrote:
Alex : 

In flex use the swc. I am seeing the same thing that you are commenting, I do not understand where it assigns the remote objects to the ServiceLocator. This would have to be added to the "services" attribute of the RemoteObjects class. I will try to assign by code without using the mxml to see if it does not generate the error "null0".

El mié., 5 feb. 2020 a las 23:15, Alex Harui (<[hidden email]>) escribió:

I grabbed ServiceLocator.as and was able to produce the null0 problem, but the cause is that ServiceLocator does not have a default property.  Did your MXML work in Flex?  What ServiceLocator property would be assigned the mx:RemoteObject?

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 12:00 PM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

 

 

import flash.utils.describeType;

   --> import org.apache.royale.reflection.describeType;

import flash.utils.Dictionary; 

   --> import org.apache.royale.utils.ObjectMap;

 

And this method

 

 

/**

 

* Return all the accessors on this object.

 

* @param serviceLocator the IServiceLocator instance.

 

* @return this object's accessors.

 

*/

 

protected

function getAccessors(

serviceLocator : IServiceLocator ) :

XMLList

 

{

 

/*

 

var description : XML = describeType( serviceLocator );

 

var accessors : XMLList = description.accessor.( @access == "readwrite" ).@name;

 

 

return accessors;

 

*/

 



return describeType( serviceLocator).accessors(@access ==

"readwrite" ).@name;

 

}

 

 

 

 

El mié., 5 feb. 2020 a las 16:04, Alex Harui (<[hidden email]>) escribió:

Carlos, What Flash APIs is Cairngorm dependent on?

 

-Alex

 

From: Carlos Rovira <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 10:05 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

Hi,

 

Cairngorm depends on Flash APIs, so make a Royale migration could be not easy, or requires some expertise.

You can use Crux instead that has support for Cairngorm style Commands. Crux is the same as Swiz Framework for Flex but rewritten to work in Royale, and supports much more like dependency injection, Inversion of control, event handling, ...

You have 3 examples in the examples/crux folder you can check.

I recommend you Crux over Cairngorm since Swiz was born to substitute Cairngorm

 

 

El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (<[hidden email]>) escribió:

Alex 

 

<version>0.9.7-SNAPSHOT</version>

 

Thank

 

El mié., 5 feb. 2020 a las 14:02, Alex Harui (<[hidden email]>) escribió:

What version of the compiler are you using?

 

What does the ServiceLocator source look like?  It might be an issue with defaultProperties for non-DOM objects.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Cairngorm problem add remote object MXML.

 

 


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)"

 

 

 

</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)


 

--

Carlos Rovira

 

--
Shoichiro Takeshita
武下 祥一郎
--
Shoichiro Takeshita
武下 祥一郎
Reply | Threaded
Open this post in threaded view
|

Re: Cairngorm problem add remote object MXML.

Alex Harui-2
In reply to this post by Greg Dove

Good to know.  I will see if I can get the compiler to handle that correctly.  I didn’t know that was a valid scenario.

 

From: Greg Dove <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:33 PM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 


There does not appear to be a default property, like an array to put the 'children' in. I think it just creates the children as instances and makes sure they have id properties on the mxml-generated subclass that the instances are assigned to.

 

The services are then identified and categorised by iterating the accessors of the ServiceLocator subclass via reflection and checking their types and then registering them.

Although it is and mxml instance of ServiceLocator, it is also an enforced singleton which is accessed elsewhere from code. At least that is how it appears to be set up to me.

 

I already took a look at the code and have made (not many) local changes and have the Cairngorm swc compiling via maven for both js and swf. I have not tested it. Things like weak event listeners are gone.

The main issue I think will be the Event.ADDED and Event.REMOVED for ViewHelper automated register/unregister. Maybe we can have a CaingormViewBase class with support for these, or perhaps we can use the ADDED/REMOVED_FROM_STAGE emulation support that Crux uses, and that might be all that is needed, but it may not always work the same.

 

I'll try to tidy it up and share it tomorrow. The licence is BSD and is permissive (https://sourceforge.net/adobe/cairngorm/code/HEAD/tree/cairngorm/trunk/frameworks/cairngorm/License.txt) - It seems to be to be similar to others like MIT etc, but I don't know specifically what the rules are for Apache with that licence (in terms of possibility to include in Royale itself).

 

 

 

 

 

On Thu, Feb 6, 2020 at 3:40 PM De Carli Gustavo <[hidden email]> wrote:

Alex : 


In flex use the swc. I am seeing the same thing that you are commenting, I do not understand where it assigns the remote objects to the ServiceLocator. This would have to be added to the "services" attribute of the RemoteObjects class. I will try to assign by code without using the mxml to see if it does not generate the error "null0".

 

El mié., 5 feb. 2020 a las 23:15, Alex Harui (<[hidden email]>) escribió:

I grabbed ServiceLocator.as and was able to produce the null0 problem, but the cause is that ServiceLocator does not have a default property.  Did your MXML work in Flex?  What ServiceLocator property would be assigned the mx:RemoteObject?

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 12:00 PM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

 

 

import flash.utils.describeType;

   --> import org.apache.royale.reflection.describeType;

import flash.utils.Dictionary; 

   --> import org.apache.royale.utils.ObjectMap;

 

And this method

 

 

/**

 

* Return all the accessors on this object.

 

* @param serviceLocator the IServiceLocator instance.

 

* @return this object's accessors.

 

*/

 

protected

function getAccessors(

serviceLocator : IServiceLocator ) :

XMLList

 

{

 

/*

 

var description : XML = describeType( serviceLocator );

 

var accessors : XMLList = description.accessor.( @access == "readwrite" ).@name;

 

 

return accessors;

 

*/

 

 

return describeType( serviceLocator).accessors(@access ==

"readwrite" ).@name;

 

}

 

 

 

 

El mié., 5 feb. 2020 a las 16:04, Alex Harui (<[hidden email]>) escribió:

Carlos, What Flash APIs is Cairngorm dependent on?

 

-Alex

 

From: Carlos Rovira <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 10:05 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

Hi,

 

Cairngorm depends on Flash APIs, so make a Royale migration could be not easy, or requires some expertise.

You can use Crux instead that has support for Cairngorm style Commands. Crux is the same as Swiz Framework for Flex but rewritten to work in Royale, and supports much more like dependency injection, Inversion of control, event handling, ...

You have 3 examples in the examples/crux folder you can check.

I recommend you Crux over Cairngorm since Swiz was born to substitute Cairngorm

 

 

El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (<[hidden email]>) escribió:

Alex 

 

<version>0.9.7-SNAPSHOT</version>

 

Thank

 

El mié., 5 feb. 2020 a las 14:02, Alex Harui (<[hidden email]>) escribió:

What version of the compiler are you using?

 

What does the ServiceLocator source look like?  It might be an issue with defaultProperties for non-DOM objects.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Cairngorm problem add remote object MXML.

 

 


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)"

 

 

 

</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)


 

--

Carlos Rovira

 

Reply | Threaded
Open this post in threaded view
|

Re: Cairngorm problem add remote object MXML.

Carlos Rovira-2
In reply to this post by T-san
Thanks Greg, for the sponsor credits, and thanks Takeshita for the words :)

I know Cairngorm could be good for people wanting to migrate with the less effort possible. Anyway, I recommend, if possible to try to switch to Crux. We already did that several years ago in Flex, since all DI, IOC stuff, make us be more efficient and increase options. For people creating new apps, for me there's no doubt, for people migrating, should contemplate the Crux option if they continue evolving the app with new features...

just my 2 :)

Carlos



El jue., 6 feb. 2020 a las 5:28, Takeshita Shoichiro (<[hidden email]>) escribió:
Greg, thanks for your clarification.  Anyway, it is  a great work.  Carlos, thanks all the times.^_^

2020年2月6日(木) 13:22 Greg Dove <[hidden email]>:

Hi Takeshita,

Yes I think a few people have asked for Cairngorm or expressed interest in it. Given the choice, I personally think Crux will be a more modern/better option, but like I said, more people are asking for Cairngorm now, so probably it makes sense to port that too.

I'm also pleased to hear that you are using Crux, I hope it's working well for you. Please report any issues if you see them.

One small thing: I definitely understand that you were referring to the work I did on porting it to Royale, but just for the sake of anyone else who reads this: it's definitely not 'my Crux framework'. The code is ported from Swiz, and credit for the awesome features it has rests with the original authors of Swiz (I was in contact with the original developer during my efforts to port it to Royale).
Also, just so people are aware, Carlos sponsored the majority of my work on porting that, so you really have Carlos to thank for that.

cheers,
Greg

On Thu, Feb 6, 2020 at 5:04 PM Takeshita Shoichiro <[hidden email]> wrote:
Greg,   

Thanks for your work. We already have your Crux framework replacing Cairngorm, it is great if Cairngorm works with Royale.  It will save a plenty of time of emulation work.

2020年2月6日(木) 12:33 Greg Dove <[hidden email]>:

There does not appear to be a default property, like an array to put the 'children' in. I think it just creates the children as instances and makes sure they have id properties on the mxml-generated subclass that the instances are assigned to.

The services are then identified and categorised by iterating the accessors of the ServiceLocator subclass via reflection and checking their types and then registering them.
Although it is and mxml instance of ServiceLocator, it is also an enforced singleton which is accessed elsewhere from code. At least that is how it appears to be set up to me.

I already took a look at the code and have made (not many) local changes and have the Cairngorm swc compiling via maven for both js and swf. I have not tested it. Things like weak event listeners are gone.
The main issue I think will be the Event.ADDED and Event.REMOVED for ViewHelper automated register/unregister. Maybe we can have a CaingormViewBase class with support for these, or perhaps we can use the ADDED/REMOVED_FROM_STAGE emulation support that Crux uses, and that might be all that is needed, but it may not always work the same.

I'll try to tidy it up and share it tomorrow. The licence is BSD and is permissive (https://sourceforge.net/adobe/cairngorm/code/HEAD/tree/cairngorm/trunk/frameworks/cairngorm/License.txt) - It seems to be to be similar to others like MIT etc, but I don't know specifically what the rules are for Apache with that licence (in terms of possibility to include in Royale itself).





On Thu, Feb 6, 2020 at 3:40 PM De Carli Gustavo <[hidden email]> wrote:
Alex : 

In flex use the swc. I am seeing the same thing that you are commenting, I do not understand where it assigns the remote objects to the ServiceLocator. This would have to be added to the "services" attribute of the RemoteObjects class. I will try to assign by code without using the mxml to see if it does not generate the error "null0".

El mié., 5 feb. 2020 a las 23:15, Alex Harui (<[hidden email]>) escribió:

I grabbed ServiceLocator.as and was able to produce the null0 problem, but the cause is that ServiceLocator does not have a default property.  Did your MXML work in Flex?  What ServiceLocator property would be assigned the mx:RemoteObject?

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 12:00 PM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

 

 

import flash.utils.describeType;

   --> import org.apache.royale.reflection.describeType;

import flash.utils.Dictionary; 

   --> import org.apache.royale.utils.ObjectMap;

 

And this method

 

 

/**

 

* Return all the accessors on this object.

 

* @param serviceLocator the IServiceLocator instance.

 

* @return this object's accessors.

 

*/

 

protected

function getAccessors(

serviceLocator : IServiceLocator ) :

XMLList

 

{

 

/*

 

var description : XML = describeType( serviceLocator );

 

var accessors : XMLList = description.accessor.( @access == "readwrite" ).@name;

 

 

return accessors;

 

*/

 



return describeType( serviceLocator).accessors(@access ==

"readwrite" ).@name;

 

}

 

 

 

 

El mié., 5 feb. 2020 a las 16:04, Alex Harui (<[hidden email]>) escribió:

Carlos, What Flash APIs is Cairngorm dependent on?

 

-Alex

 

From: Carlos Rovira <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 10:05 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

Hi,

 

Cairngorm depends on Flash APIs, so make a Royale migration could be not easy, or requires some expertise.

You can use Crux instead that has support for Cairngorm style Commands. Crux is the same as Swiz Framework for Flex but rewritten to work in Royale, and supports much more like dependency injection, Inversion of control, event handling, ...

You have 3 examples in the examples/crux folder you can check.

I recommend you Crux over Cairngorm since Swiz was born to substitute Cairngorm

 

 

El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (<[hidden email]>) escribió:

Alex 

 

<version>0.9.7-SNAPSHOT</version>

 

Thank

 

El mié., 5 feb. 2020 a las 14:02, Alex Harui (<[hidden email]>) escribió:

What version of the compiler are you using?

 

What does the ServiceLocator source look like?  It might be an issue with defaultProperties for non-DOM objects.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Cairngorm problem add remote object MXML.

 

 


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)"

 

 

 

</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)


 

--

Carlos Rovira

 

--
Shoichiro Takeshita
武下 祥一郎
--
Shoichiro Takeshita
武下 祥一郎


--
Reply | Threaded
Open this post in threaded view
|

Re: Cairngorm problem add remote object MXML.

De Carli Gustavo

Exactly, cairmgorm, as Carlos says, is not the best option, but we save a lot of time in migrations where they use it and leave more time for other questions.
 i will continue to test how to fill that array today.
Thank you very much for everyone in this collaboration.

Gustavo.

El jue., 6 feb. 2020 a las 8:39, Carlos Rovira (<[hidden email]>) escribió:
Thanks Greg, for the sponsor credits, and thanks Takeshita for the words :)

I know Cairngorm could be good for people wanting to migrate with the less effort possible. Anyway, I recommend, if possible to try to switch to Crux. We already did that several years ago in Flex, since all DI, IOC stuff, make us be more efficient and increase options. For people creating new apps, for me there's no doubt, for people migrating, should contemplate the Crux option if they continue evolving the app with new features...

just my 2 :)

Carlos



El jue., 6 feb. 2020 a las 5:28, Takeshita Shoichiro (<[hidden email]>) escribió:
Greg, thanks for your clarification.  Anyway, it is  a great work.  Carlos, thanks all the times.^_^

2020年2月6日(木) 13:22 Greg Dove <[hidden email]>:

Hi Takeshita,

Yes I think a few people have asked for Cairngorm or expressed interest in it. Given the choice, I personally think Crux will be a more modern/better option, but like I said, more people are asking for Cairngorm now, so probably it makes sense to port that too.

I'm also pleased to hear that you are using Crux, I hope it's working well for you. Please report any issues if you see them.

One small thing: I definitely understand that you were referring to the work I did on porting it to Royale, but just for the sake of anyone else who reads this: it's definitely not 'my Crux framework'. The code is ported from Swiz, and credit for the awesome features it has rests with the original authors of Swiz (I was in contact with the original developer during my efforts to port it to Royale).
Also, just so people are aware, Carlos sponsored the majority of my work on porting that, so you really have Carlos to thank for that.

cheers,
Greg

On Thu, Feb 6, 2020 at 5:04 PM Takeshita Shoichiro <[hidden email]> wrote:
Greg,   

Thanks for your work. We already have your Crux framework replacing Cairngorm, it is great if Cairngorm works with Royale.  It will save a plenty of time of emulation work.

2020年2月6日(木) 12:33 Greg Dove <[hidden email]>:

There does not appear to be a default property, like an array to put the 'children' in. I think it just creates the children as instances and makes sure they have id properties on the mxml-generated subclass that the instances are assigned to.

The services are then identified and categorised by iterating the accessors of the ServiceLocator subclass via reflection and checking their types and then registering them.
Although it is and mxml instance of ServiceLocator, it is also an enforced singleton which is accessed elsewhere from code. At least that is how it appears to be set up to me.

I already took a look at the code and have made (not many) local changes and have the Cairngorm swc compiling via maven for both js and swf. I have not tested it. Things like weak event listeners are gone.
The main issue I think will be the Event.ADDED and Event.REMOVED for ViewHelper automated register/unregister. Maybe we can have a CaingormViewBase class with support for these, or perhaps we can use the ADDED/REMOVED_FROM_STAGE emulation support that Crux uses, and that might be all that is needed, but it may not always work the same.

I'll try to tidy it up and share it tomorrow. The licence is BSD and is permissive (https://sourceforge.net/adobe/cairngorm/code/HEAD/tree/cairngorm/trunk/frameworks/cairngorm/License.txt) - It seems to be to be similar to others like MIT etc, but I don't know specifically what the rules are for Apache with that licence (in terms of possibility to include in Royale itself).





On Thu, Feb 6, 2020 at 3:40 PM De Carli Gustavo <[hidden email]> wrote:
Alex : 

In flex use the swc. I am seeing the same thing that you are commenting, I do not understand where it assigns the remote objects to the ServiceLocator. This would have to be added to the "services" attribute of the RemoteObjects class. I will try to assign by code without using the mxml to see if it does not generate the error "null0".

El mié., 5 feb. 2020 a las 23:15, Alex Harui (<[hidden email]>) escribió:

I grabbed ServiceLocator.as and was able to produce the null0 problem, but the cause is that ServiceLocator does not have a default property.  Did your MXML work in Flex?  What ServiceLocator property would be assigned the mx:RemoteObject?

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 12:00 PM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

 

 

import flash.utils.describeType;

   --> import org.apache.royale.reflection.describeType;

import flash.utils.Dictionary; 

   --> import org.apache.royale.utils.ObjectMap;

 

And this method

 

 

/**

 

* Return all the accessors on this object.

 

* @param serviceLocator the IServiceLocator instance.

 

* @return this object's accessors.

 

*/

 

protected

function getAccessors(

serviceLocator : IServiceLocator ) :

XMLList

 

{

 

/*

 

var description : XML = describeType( serviceLocator );

 

var accessors : XMLList = description.accessor.( @access == "readwrite" ).@name;

 

 

return accessors;

 

*/

 



return describeType( serviceLocator).accessors(@access ==

"readwrite" ).@name;

 

}

 

 

 

 

El mié., 5 feb. 2020 a las 16:04, Alex Harui (<[hidden email]>) escribió:

Carlos, What Flash APIs is Cairngorm dependent on?

 

-Alex

 

From: Carlos Rovira <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 10:05 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

Hi,

 

Cairngorm depends on Flash APIs, so make a Royale migration could be not easy, or requires some expertise.

You can use Crux instead that has support for Cairngorm style Commands. Crux is the same as Swiz Framework for Flex but rewritten to work in Royale, and supports much more like dependency injection, Inversion of control, event handling, ...

You have 3 examples in the examples/crux folder you can check.

I recommend you Crux over Cairngorm since Swiz was born to substitute Cairngorm

 

 

El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (<[hidden email]>) escribió:

Alex 

 

<version>0.9.7-SNAPSHOT</version>

 

Thank

 

El mié., 5 feb. 2020 a las 14:02, Alex Harui (<[hidden email]>) escribió:

What version of the compiler are you using?

 

What does the ServiceLocator source look like?  It might be an issue with defaultProperties for non-DOM objects.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Cairngorm problem add remote object MXML.

 

 


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)"

 

 

 

</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)


 

--

Carlos Rovira

 

--
Shoichiro Takeshita
武下 祥一郎
--
Shoichiro Takeshita
武下 祥一郎


--
Reply | Threaded
Open this post in threaded view
|

Re: Cairngorm problem add remote object MXML.

Alex Harui-2

I just pushed a change to the compiler.  It should now have valid output for ServiceLocator.

 

The compiler change was interesting in that I changed an else clause that was put in to handle instances specified as children of top tags but was doing the wrong thing.  All of the compiler tests passed, but never hit that code so none of our tests actually used that code, even though the commit log implied it was for one of the tests.  Either I made the earlier change to propagate the fix for plain properties to instances or there is some other scenario for instances as children (without a default property) that I am not thinking of.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Thursday, February 6, 2020 at 6:03 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 


Exactly, cairmgorm, as Carlos says, is not the best option, but we save a lot of time in migrations where they use it and leave more time for other questions.

 i will continue to test how to fill that array today.

Thank you very much for everyone in this collaboration.



Gustavo.

 

El jue., 6 feb. 2020 a las 8:39, Carlos Rovira (<[hidden email]>) escribió:

Thanks Greg, for the sponsor credits, and thanks Takeshita for the words :)

 

I know Cairngorm could be good for people wanting to migrate with the less effort possible. Anyway, I recommend, if possible to try to switch to Crux. We already did that several years ago in Flex, since all DI, IOC stuff, make us be more efficient and increase options. For people creating new apps, for me there's no doubt, for people migrating, should contemplate the Crux option if they continue evolving the app with new features...

 

just my 2 :)

 

Carlos

 

 

 

El jue., 6 feb. 2020 a las 5:28, Takeshita Shoichiro (<[hidden email]>) escribió:

Greg, thanks for your clarification.  Anyway, it is  a great work.  Carlos, thanks all the times.^_^

 

202026() 13:22 Greg Dove <[hidden email]>:

 

Hi Takeshita,

 

Yes I think a few people have asked for Cairngorm or expressed interest in it. Given the choice, I personally think Crux will be a more modern/better option, but like I said, more people are asking for Cairngorm now, so probably it makes sense to port that too.

 

I'm also pleased to hear that you are using Crux, I hope it's working well for you. Please report any issues if you see them.

 

One small thing: I definitely understand that you were referring to the work I did on porting it to Royale, but just for the sake of anyone else who reads this: it's definitely not 'my Crux framework'. The code is ported from Swiz, and credit for the awesome features it has rests with the original authors of Swiz (I was in contact with the original developer during my efforts to port it to Royale).

Also, just so people are aware, Carlos sponsored the majority of my work on porting that, so you really have Carlos to thank for that.

 

cheers,

Greg

 

On Thu, Feb 6, 2020 at 5:04 PM Takeshita Shoichiro <[hidden email]> wrote:

Greg,   

 

Thanks for your work. We already have your Crux framework replacing Cairngorm, it is great if Cairngorm works with Royale.  It will save a plenty of time of emulation work.

 

202026() 12:33 Greg Dove <[hidden email]>:


There does not appear to be a default property, like an array to put the 'children' in. I think it just creates the children as instances and makes sure they have id properties on the mxml-generated subclass that the instances are assigned to.

 

The services are then identified and categorised by iterating the accessors of the ServiceLocator subclass via reflection and checking their types and then registering them.

Although it is and mxml instance of ServiceLocator, it is also an enforced singleton which is accessed elsewhere from code. At least that is how it appears to be set up to me.

 

I already took a look at the code and have made (not many) local changes and have the Cairngorm swc compiling via maven for both js and swf. I have not tested it. Things like weak event listeners are gone.

The main issue I think will be the Event.ADDED and Event.REMOVED for ViewHelper automated register/unregister. Maybe we can have a CaingormViewBase class with support for these, or perhaps we can use the ADDED/REMOVED_FROM_STAGE emulation support that Crux uses, and that might be all that is needed, but it may not always work the same.

 

I'll try to tidy it up and share it tomorrow. The licence is BSD and is permissive (https://sourceforge.net/adobe/cairngorm/code/HEAD/tree/cairngorm/trunk/frameworks/cairngorm/License.txt) - It seems to be to be similar to others like MIT etc, but I don't know specifically what the rules are for Apache with that licence (in terms of possibility to include in Royale itself).

 

 

 

 

 

On Thu, Feb 6, 2020 at 3:40 PM De Carli Gustavo <[hidden email]> wrote:

Alex : 


In flex use the swc. I am seeing the same thing that you are commenting, I do not understand where it assigns the remote objects to the ServiceLocator. This would have to be added to the "services" attribute of the RemoteObjects class. I will try to assign by code without using the mxml to see if it does not generate the error "null0".

 

El mié., 5 feb. 2020 a las 23:15, Alex Harui (<[hidden email]>) escribió:

I grabbed ServiceLocator.as and was able to produce the null0 problem, but the cause is that ServiceLocator does not have a default property.  Did your MXML work in Flex?  What ServiceLocator property would be assigned the mx:RemoteObject?

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 12:00 PM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

 

 

import flash.utils.describeType;

   --> import org.apache.royale.reflection.describeType;

import flash.utils.Dictionary; 

   --> import org.apache.royale.utils.ObjectMap;

 

And this method

 

 

/**

 

* Return all the accessors on this object.

 

* @param serviceLocator the IServiceLocator instance.

 

* @return this object's accessors.

 

*/

 

protected

function getAccessors(

serviceLocator : IServiceLocator ) :

XMLList

 

{

 

/*

 

var description : XML = describeType( serviceLocator );

 

var accessors : XMLList = description.accessor.( @access == "readwrite" ).@name;

 

 

return accessors;

 

*/

 

 

return describeType( serviceLocator).accessors(@access ==

"readwrite" ).@name;

 

}

 

 

 

 

El mié., 5 feb. 2020 a las 16:04, Alex Harui (<[hidden email]>) escribió:

Carlos, What Flash APIs is Cairngorm dependent on?

 

-Alex

 

From: Carlos Rovira <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 10:05 AM
To: "[hidden email]" <[hidden email]>
Subject: Re: Cairngorm problem add remote object MXML.

 

Hi,

 

Cairngorm depends on Flash APIs, so make a Royale migration could be not easy, or requires some expertise.

You can use Crux instead that has support for Cairngorm style Commands. Crux is the same as Swiz Framework for Flex but rewritten to work in Royale, and supports much more like dependency injection, Inversion of control, event handling, ...

You have 3 examples in the examples/crux folder you can check.

I recommend you Crux over Cairngorm since Swiz was born to substitute Cairngorm

 

 

El mié., 5 feb. 2020 a las 18:24, De Carli Gustavo (<[hidden email]>) escribió:

Alex 

 

<version>0.9.7-SNAPSHOT</version>

 

Thank

 

El mié., 5 feb. 2020 a las 14:02, Alex Harui (<[hidden email]>) escribió:

What version of the compiler are you using?

 

What does the ServiceLocator source look like?  It might be an issue with defaultProperties for non-DOM objects.

 

-Alex

 

From: De Carli Gustavo <[hidden email]>
Reply-To: "[hidden email]" <[hidden email]>
Date: Wednesday, February 5, 2020 at 7:35 AM
To: "[hidden email]" <[hidden email]>
Subject: Cairngorm problem add remote object MXML.

 

 


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)"

 

 

 

</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)


 

--

Carlos Rovira

 

--

Shoichiro Takeshita
武下 祥一郎

--

Shoichiro Takeshita
武下 祥一郎


 

--

Carlos Rovira

 

12