David thanks for your mail. For this example, I am using vs code with maven to 
compile the project.
I intend to try out moonshine again. I had an issue with the maven plug in when 
using moonshine. But I was told it has been fixed with the lastest moonshine 
update.
I have fixed the mx remote object issue. I can now make calls to blazeds. For 
typed java ArrayList, I noticed that blazeds returns 
"mx.collections.ArrayCollection" object in my as3 class. So I have to do a 
conversion to "org.apache.royale.collections.ArrayList" to use in the jewel 
datagrid. 

Regards,

    On Thursday, June 24, 2021, 06:47:57 PM GMT+1, 
users-digest-h...@royale.apache.org <users-digest-h...@royale.apache.org> 
wrote:  
 
 
users Digest 24 Jun 2021 17:47:56 -0000 Issue 1725

Topics (messages 4770 through 4773)

Re: Switching from js remoteObject to mx remoteObject
    4770 by: Maria Jose Esteve
    4772 by: Maria Jose Esteve

Re: Blaze ds does not serialize typed java arrayList to as3 arrayList correctly
    4771 by: David Slotemaker de Bruine

Re: users Digest 23 Jun 2021 15:46:41 -0000 Issue 1724
    4773 by: romanisitua.yahoo.com

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: users@royale.apache.org
To unsubscribe, e-mail: users-digest-unsubscr...@royale.apache.org
For additional commands, e-mail: users-digest-h...@royale.apache.org

----------------------------------------------------------------------

 <!--#yiv1806134035 _filtered {} _filtered {} _filtered {} _filtered 
{}#yiv1806134035 #yiv1806134035 p.yiv1806134035MsoNormal, #yiv1806134035 
li.yiv1806134035MsoNormal, #yiv1806134035 div.yiv1806134035MsoNormal 
{margin:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv1806134035 
.yiv1806134035MsoChpDefault {font-size:10.0pt;} _filtered {}#yiv1806134035 
div.yiv1806134035WordSection1 {}-->
¿Cómo estás compilando? Ant, asconfigc, mvn? Te faltará indicar la dependencia 
a MXRoyale.swc/MXRoyaleJS.swc
 
  
 
  
 
De: romanisi...@yahoo.com <romanisi...@yahoo.com> 
Enviado el: martes, 22 de junio de 2021 11:38
Para: users@royale.apache.org
Asunto: Switching from js remoteObject to mx remoteObject
 
  
 
  
 
Hi everyone,
 
  
 
I am trying to switch from usingjs:RemoteObject to mx:RemoteObject.
 
I have studied the code in the "remote object amf test" project.
 
  
 
I am using jewel for the application. After registering the mx namespace
 
in the relevant places
 
  
 
xmlns:mx="library://ns.apache.org/royale/mx"
 
  
 
During compilation I get the following error
 
  
 
Content2.mxml(85): col: 11 Error: This tag is unexpected. It will be ignored.
 
  
 
          <mx:RemoteObject id="service" result="onResult(event)" 
fault="onFault(event)"
 
  
 
  
 
It appears the compiler does not recognise the mx:RemoteObject class. 
 
In other words the mx library is not loaded. I have checked my pom.xml to 
ensure that
 
the required royale dependencies is loaded.
 
  
 
Any ideas ?
 
  
 
  
 
Regards,
 
  
 
  
 
  
  <!--#yiv1806134035 _filtered {} _filtered {} _filtered {} _filtered 
{}#yiv1806134035 #yiv1806134035 p.yiv1806134035MsoNormal, #yiv1806134035 
li.yiv1806134035MsoNormal, #yiv1806134035 div.yiv1806134035MsoNormal 
{margin:0cm;font-size:11.0pt;font-family:"Calibri", sans-serif;}#yiv1806134035 
a:link, #yiv1806134035 span.yiv1806134035MsoHyperlink 
{color:#0563C1;text-decoration:underline;}#yiv1806134035 
.yiv1806134035MsoChpDefault {font-size:10.0pt;} _filtered {}#yiv1806134035 
div.yiv1806134035WordSection1 {}-->
Forgive me, I did not translate...
 
“How are you compiling? Ant, asconfigc, mvn? You will be missing the dependency 
to MXRoyale.swc/MXRoyaleJS.swc”
 
  
 
As David told you in the other post, the first thing you should do is to change 
to mx.
 
  
 
De: Maria Jose Esteve <mjest...@iest.com> 
Enviado el: miércoles, 23 de junio de 2021 17:48
Para: users@royale.apache.org
Asunto: RE: Switching from js remoteObject to mx remoteObject
 
  
 
¿Cómo estás compilando? Ant, asconfigc, mvn? Te faltará indicar la dependencia 
a MXRoyale.swc/MXRoyaleJS.swc
 
  
 
  
 
De: romanisi...@yahoo.com <romanisi...@yahoo.com>
Enviado el: martes, 22 de junio de 2021 11:38
Para: users@royale.apache.org
Asunto: Switching from js remoteObject to mx remoteObject
 
  
 
  
 
Hi everyone,
 
  
 
I am trying to switch from usingjs:RemoteObject to mx:RemoteObject.
 
I have studied the code in the "remote object amf test" project.
 
  
 
I am using jewel for the application. After registering the mx namespace
 
in the relevant places
 
  
 
xmlns:mx="library://ns.apache.org/royale/mx"
 
  
 
During compilation I get the following error
 
  
 
Content2.mxml(85): col: 11 Error: This tag is unexpected. It will be ignored.
 
  
 
          <mx:RemoteObject id="service" result="onResult(event)" 
fault="onFault(event)"
 
  
 
  
 
It appears the compiler does not recognise the mx:RemoteObject class. 
 
In other words the mx library is not loaded. I have checked my pom.xml to 
ensure that
 
the required royale dependencies is loaded.
 
  
 
Any ideas ?
 
  
 
  
 
Regards,
 
  
 
  
 
  
 Hi Roman,
I use BlazeDS, and I had all sorts of trouble using the js:Remote and the 
experts recomended I use mx:Remote.
So you need to start there I think. What IDE are you using? I am using 
Moonshine.
I can send you my config if thats what you are on.
Cheers,
David
On Wed, 23 Jun 2021 at 17:46, Maria Jose Esteve <mjest...@iest.com> wrote:


Hi romanisitua,

 

I have not worked with Blazeds, I have always used FluorineFx with vb.net so I 
do not know if what I am going to tell you will be useful to you...

- Make sure that event.result returns the ShortType.vlues and StringType.values 
object, which "I understand you do get them right".

- Check that the type class of each of the rows of "values" is recognized and 
mapped (If you launch debug, you can set a breakpoint and expand event.result).

- If it has not recognized and mapped the classes.... Verify that they are 
defined in "com.test.generic.dto.types.*".

- Verify that in App.mxml you have indicated : 
registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);

- Could you send me the code of the callback function?

 

Verify me these points and we continue with the debugging.

 

Hiedra.

 

De: romanisi...@yahoo.com <romanisi...@yahoo.com>
Enviado el: martes, 22 de junio de 2021 22:50
Para: users@royale.apache.org
Asunto: Blaze ds does not serialize typed java arrayList to as3 arrayList 
correctly

 

 

Hi everyone,

 

I have the following classes server side

 

 public class ShortType

 {

   private List<Short> values;

   

   // values has getter and setter

 }

 

 

 public class StringType

 {

   private List<String> values;

   

   // values has getter and setter

 }

 

 

 With their corresponding as3 classes

 

  import org.apache.royale.collections.ArrayList;

 

     [RemoteClass(alias="com.test.generic.dto.types.ShortType")]

     [Bindable]

     public class ShortType 

    {

       

      

       private var _values:ArrayList;

 

 

     

 

 

  public function set values(values:ArrayList) : void

       {

              trace(" --- short values list set --- ");

 

           this._values = values;

       }

 

       public function get values():ArrayList

       {

           return this._values;

       }

   

   }

   

   

   import org.apache.royale.collections.ArrayList;

   

     [RemoteClass(alias="com.test.generic.dto.types.StringType")]

     [Bindable]

     public class StringType 

    {

       

      

       private var _values:ArrayList;

 

 

     

 

 

  public function set values(values:ArrayList) : void

       {

              trace(" --- short values list set --- ");

 

           this._values = values;

       }

 

       public function get values():ArrayList

       {

           return this._values;

       }

   

   }

   

   

   When trying to access the values arrayList in royale the content of the 
array list is incorrect

   

   for example if a put short values 14, 100 in the arrayList server side, I 
will get an array list with values (0, 1)

   

   The samething if I put String vales "Mr", "Mrs" in the arrayList server 
side, I will get an array list with values (0,1)

   

 

   Clearly blazeds is not serializing theList<String> and List<Short>. 

   

   Any ideas ? I am using js:RemoteObject to perform the call. 

   

   I tried switching to mx royale but I keep getting compiler errors whenever I 
reference mx royale classes. I tried to follow the example where mx royale 
remote object was used in a jewel app but compiler errors keep coming up.

   

 

 

   Would appreciate help on this. I am pretty stuck at the moment.

 

   

Regards,

   

   

   

 



-- 

David Slotemaker de Bruïne
Head of Educational Robotics







Av. Sarriá, 130 - 08017 Barcelona 

T. +34 932 523 729 ext. 135

dslotema...@vicensvives.com
 
Good Day,
Thanks for your response. I have resolved the issues I was having. I have been 
able to do test with mx royale remote object. I discovered that I had to use 
the maven compilation option "option-with-swf". Then added some more 
dependencies. I looked up the dependencies from the parent module in the Remote 
AMF example project.

I have noticed that blazeds returns an "mx.collections.ArrayCollection" object 
for arrayList of custom object or arrayList of String or arrayList of Short 
server side (java). 
As a result, adding the below code 
  registerClassAlias("flex.messaging.io.ArrayList", ArrayList);  // 

to give meorg.apache.royale.collections.ArrayList
Does not work. As a result, I have to convert to convert from  
"mx.collections.ArrayCollection" to "org.apache.royale.collections.ArrayList" 
to use my records in jewel datagrid.

I don't mind doing the conversion but I am wondering if this is an abnormal 
situation. Any ideas ?


Also please what is the maven dependency for import 
org.apache.royale.net.remoting.amf.AMFBinaryData
AMFBinaryData.DEBUG = true;
The above code does not compile. I had to comment it out.

Regards,
    On Thursday, June 24, 2021, 06:45:59 PM GMT+1, romanisi...@yahoo.com 
<romanisi...@yahoo.com> wrote:  
 
  Good Day,
Thanks for your response. I have resolved the issues I was having. I have been 
able to do test with mx royale remote object. I discovered that I had to use 
the maven compilation option "option-with-swf". Then added some more 
dependencies. I looked up the dependencies from the parent module in the Remote 
AMF example project.

I have noticed that blazeds returns an "mx.collections.ArrayCollection" object 
for arrayList of custom object or arrayList of String or arrayList of Short 
server side (java). 
As a result, adding the below code 
  registerClassAlias("flex.messaging.io.ArrayList", ArrayList);  // 

to give meorg.apache.royale.collections.ArrayList
Does not work. As a result, I have to convert to convert from  
"mx.collections.ArrayCollection" to "org.apache.royale.collections.ArrayList" 
to use my records in jewel datagrid.

I don't mind doing the conversion but I am wondering if this is an abnormal 
situation. Any ideas ?


Also please what is the maven dependency for import 
org.apache.royale.net.remoting.amf.AMFBinaryData
AMFBinaryData.DEBUG = true;
The above code does not compile. I had to comment it out.

Regards,    On Wednesday, June 23, 2021, 04:46:44 PM GMT+1, 
<users-digest-h...@royale.apache.org> wrote:  
 
 
users Digest 23 Jun 2021 15:46:41 -0000 Issue 1724

Topics (messages 4767 through 4769)

Switching from js remoteObject to mx remoteObject
    4767 by: romanisitua.yahoo.com

Blaze ds does not serialize typed java arrayList to as3 arrayList correctly
    4768 by: romanisitua.yahoo.com
    4769 by: Maria Jose Esteve

Administrivia:

---------------------------------------------------------------------
To post to the list, e-mail: users@royale.apache.org
To unsubscribe, e-mail: users-digest-unsubscr...@royale.apache.org
For additional commands, e-mail: users-digest-h...@royale.apache.org

----------------------------------------------------------------------


Hi everyone,
I am trying to switch from using js:RemoteObject to mx:RemoteObject.I have 
studied the code in the "remote object amf test" project.
I am using jewel for the application. After registering the mx namespacein the 
relevant places
xmlns:mx="library://ns.apache.org/royale/mx"
During compilation I get the following error
Content2.mxml(85): col: 11 Error: This tag is unexpected. It will be ignored.
          <mx:RemoteObject id="service" result="onResult(event)" 
fault="onFault(event)"      It appears the compiler does not recognise the 
mx:RemoteObject class. In other words the mx library is not loaded. I have 
checked my pom.xml to ensure thatthe required royale dependencies is loaded.
Any ideas ?

Regards,



Hi everyone,
I have the following classes server side
 public class ShortType {   private List<Short> values;      // values has 
getter and setter }   public class StringType {   private List<String> values;  
    // values has getter and setter }   With their corresponding as3 classes   
import org.apache.royale.collections.ArrayList;
     [RemoteClass(alias="com.test.generic.dto.types.ShortType")]     [Bindable] 
    public class ShortType     {                    private var 
_values:ArrayList;

            public function set values(values:ArrayList) : void       {         
     trace(" --- short values list set --- ");
           this._values = values;       }
       public function get values():ArrayList       {           return 
this._values;       }        }            import 
org.apache.royale.collections.ArrayList;         
[RemoteClass(alias="com.test.generic.dto.types.StringType")]     [Bindable]     
public class StringType     {                    private var _values:ArrayList;

            public function set values(values:ArrayList) : void       {         
     trace(" --- short values list set --- ");
           this._values = values;       }
       public function get values():ArrayList       {           return 
this._values;       }        }            When trying to access the values 
arrayList in royale the content of the array list is incorrect        for 
example if a put short values 14, 100 in the arrayList server side, I will get 
an array list with values (0, 1)        The samething if I put String vales 
"Mr", "Mrs" in the arrayList server side, I will get an array list with values 
(0,1)    
    Clearly blazeds is not serializing the List<String> and List<Short>.        
 Any ideas ? I am using js:RemoteObject to perform the call.         I tried 
switching to mx royale but I keep getting compiler errors whenever I reference 
mx royale classes. I tried to follow the example where mx royale remote object 
was used in a jewel app but compiler errors keep coming up.    

    Would appreciate help on this. I am pretty stuck at the moment.
    Regards,            
 #yiv1806134035 -- filtered {}#yiv1806134035 filtered {}#yiv1806134035 filtered 
{}#yiv1806134035 filtered {}#yiv1806134035 filtered {}#yiv1806134035 
p.yiv1806134035MsoNormal, #yiv1806134035 li.yiv1806134035MsoNormal, 
#yiv1806134035 div.yiv1806134035MsoNormal 
{margin:0cm;font-size:11.0pt;font-family:sans-serif;}#yiv1806134035 
.yiv1806134035MsoChpDefault {font-size:10.0pt;}#yiv1806134035 filtered 
{}#yiv1806134035 div.yiv1806134035WordSection1 {}#yiv1806134035 filtered 
{}#yiv1806134035 filtered {}#yiv1806134035 filtered {}#yiv1806134035 filtered 
{}#yiv1806134035 filtered {}#yiv1806134035 filtered {}#yiv1806134035 filtered 
{}#yiv1806134035 filtered {}#yiv1806134035 filtered {}#yiv1806134035 filtered 
{}#yiv1806134035 ol {margin-bottom:0cm;}#yiv1806134035 ul 
{margin-bottom:0cm;}#yiv1806134035 
Hi romanisitua,
 
  
 
I have not worked with Blazeds, I have always used FluorineFx with vb.net so I 
do not know if what I am going to tell you will be useful to you...
 
- Make sure that event.result returns the ShortType.vlues and StringType.values 
object, which "I understand you do get them right".
 
- Check that the type class of each of the rows of "values" is recognized and 
mapped (If you launch debug, you can set a breakpoint and expand event.result).
 
- If it has not recognized and mapped the classes.... Verify that they are 
defined in "com.test.generic.dto.types.*".
 
- Verify that in App.mxml you have indicated : 
registerClassAlias("flex.messaging.io.ArrayCollection", ArrayList);
 
- Could you send me the code of the callback function?
 
  
 
Verify me these points and we continue with the debugging.
 
  
 
Hiedra.
 
  
 
De: romanisi...@yahoo.com <romanisi...@yahoo.com>
Enviado el: martes, 22 de junio de 2021 22:50
Para: users@royale.apache.org
Asunto: Blaze ds does not serialize typed java arrayList to as3 arrayList 
correctly
 
  
 
  
 
Hi everyone,
 
  
 
I have the following classes server side
 
  
 
 public class ShortType
 
 {
 
   private List<Short> values;
 
   
 
   // values has getter and setter
 
 }
 
 
 
 
 
 public class StringType
 
 {
 
   private List<String> values;
 
   
 
   // values has getter and setter
 
 }
 
 
 
 
 
 With their corresponding as3 classes
 
 
 
  import org.apache.royale.collections.ArrayList;
 
  
 
     [RemoteClass(alias="com.test.generic.dto.types.ShortType")]
 
     [Bindable]
 
     public class ShortType 
 
    {
 
       
 
      
 
       private var _values:ArrayList;
 
  
 
  
 
     
 
 
 
 
 
  public function set values(values:ArrayList) : void
 
       {
 
              trace(" --- short values list set --- ");
 
  
 
           this._values = values;
 
       }
 
  
 
       public function get values():ArrayList
 
       {
 
           return this._values;
 
       }
 
   
 
   }
 
   
 
   
 
   import org.apache.royale.collections.ArrayList;
 
   
 
     [RemoteClass(alias="com.test.generic.dto.types.StringType")]
 
     [Bindable]
 
     public class StringType 
 
    {
 
       
 
      
 
       private var _values:ArrayList;
 
  
 
  
 
     
 
 
 
 
 
  public function set values(values:ArrayList) : void
 
       {
 
              trace(" --- short values list set --- ");
 
  
 
           this._values = values;
 
       }
 
  
 
       public function get values():ArrayList
 
       {
 
           return this._values;
 
       }
 
   
 
   }
 
   
 
   
 
   When trying to access the values arrayList in royale the content of the 
array list is incorrect
 
   
 
   for example if a put short values 14, 100 in the arrayList server side, I 
will get an array list with values (0, 1)
 
   
 
   The samething if I put String vales "Mr", "Mrs" in the arrayList server 
side, I will get an array list with values (0,1)
 
   
 
  
 
   Clearly blazeds is not serializing theList<String> and List<Short>. 
 
   
 
   Any ideas ? I am using js:RemoteObject to perform the call. 
 
   
 
   I tried switching to mx royale but I keep getting compiler errors whenever I 
reference mx royale classes. I tried to follow the example where mx royale 
remote object was used in a jewel app but compiler errors keep coming up.
 
   
 
  
 
  
 
   Would appreciate help on this. I am pretty stuck at the moment.
 
  
 
   
 
Regards,
 
   
 
   
 
   
 
  
       

Reply via email to