1 Reply Latest reply on Jan 26, 2011 7:10 AM by tomj

    LCDS error when using Producer/Consumer messaging to exchange objects between clients. Please help!!

    Oscar Nazario

      Hello,

      I decided to test this with the  publish/subscribe messaging. Something I thought would work is not. Here  is the simple example;

       

                     
                       var btn:Button = new Button();
                       btn.label = "My Button ";
                       msg = new AsyncMessage();

                      msg.body = btn;
                       producer.send(msg);              

       

       

      Simple right? Well, this generates a fault;

      1/21/2011  10:37:55.462 [ERROR] mx.messaging.Producer  'D7094E2F-2CA1-39C0-1EC6-A9DE3171E836' producer fault for  'A11AE369-8349-8970-0C10-A9DE5113DA2E'.


      The LCDS log gets into more detail, AMF Deserialization ERROR....

      Please notice the use of Amf0 and Amf3 methods... I thought Amf0 was a thing of the past...

       

      Any ideas? Please help....

       

      [LCDS]01/21/2011 10:37:55.039 [ERROR] [Endpoint.RTMP] Deserialization failed for incoming data: Unknown AMF type '15'.
      flex.messaging.io.UnknownTypeException: Unknown AMF type '15'.
           at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:217)
           at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
           at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437)
           at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
           at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
           at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437)
           at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
           at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
           at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437)
           at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
           at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
           at flex.messaging.messages.AbstractMessage.readExternalBody(AbstractMessage.java:654)
           at flex.messaging.messages.AbstractMessage.readExternal(AbstractMessage.java:324)
           at flex.messaging.messages.AsyncMessage.readExternal(AsyncMessage.java:98)
           at flex.messaging.io.amf.Amf3Input.readExternalizable(Amf3Input.java:491)
           at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:420)
           at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
           at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
           at flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:123)
           at flex.messaging.io.amf.Amf0Input.readObject(Amf0Input.java:94)
           at flex.messaging.io.amf.AmfMessageDeserializer.readObject(AmfMessageDeserializer.java:227)
           at flex.messaging.io.tcchunk.TCCommand.readMessage(TCCommand.java:191)
           at flex.messaging.endpoints.RTMPConnection.serviceTCMessage(RTMPConnection.java:1024)
           at flex.messaging.endpoints.RTMPConnection.doRead(RTMPConnection.java:610)
           at flex.messaging.endpoints.RTMPProtocolHandler.doRead(RTMPProtocolHandler.java:125)
           at flex.messaging.socketserver.Connection$ConnectionReader.run(Connection.java:864)
           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
           at java.lang.Thread.run(Thread.java:662)

       

       

      Thanks,

      Oscar