2 Replies Latest reply: Mar 6, 2012 1:08 PM by juergen_hauser RSS

    BlazeDs Channel Call Error

    Flash Production Release Community Member

      Hi,

       

      I am using Flex/AS, BlazeDs and Java in my application.

       

      But randomly i keep on getting. Most of the times it works but at times it happens. Cant tell the exact scenario.

       

      Fault Code: Channel Call Failed

      Fault Detail: Error

       

      I cannot understand why this is occuring on our application. I have set all the properties correct.

       

      Is this because the channel is getting disconnected? If yes why is that happening so? Am I am missing some properties to set for the channel.

      Please find my channel definitions

       

      This is present in services-config.xml.

       

      <channels>

                          <channel-definition id="my-amf"  class="mx.messaging.channels.AMFChannel">

                                              <endpoint  url="http://{server.name}:{server.port}/{context.root}/messagebroker/amf" class="flex.messaging.endpoints.AMFEndpoint" />

                                              <properties>

                                                             <add-no-cache-headers>false</add-no-cache-headers>

                                              </properties>

                          </channel-definition>

       

       

                          <channel-definition id="my-secure-amf" class="mx.messaging.channels.SecureAMFChannel">

                                    <endpoint url="https://{server.name}:{server.port}/{context.root}/messagebroker/amfsecure" class="flex.messaging.endpoints.SecureAMFEndpoint" />

                                    <properties>

                                              <add-no-cache-headers>false</add-no-cache-headers>

                                    </properties>

                          </channel-definition>

       

              <channel-definition id="my-streaming-amf" class="mx.messaging.channels.StreamingAMFChannel">

                        <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/streamingamf" class="flex.messaging.endpoints.StreamingAMFEndpoint"/>

                          </channel-definition>

       

                          <channel-definition id="my-polling-amf" class="mx.messaging.channels.AMFChannel">

                                    <endpoint  url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling" class="flex.messaging.endpoints.AMFEndpoint" />

                                    <properties>

                                              <add-no-cache-headers>false</add-no-cache-headers>

                                              <polling-enabled>true</polling-enabled>

                                              <polling-interval-seconds>4</polling-interval-seconds>

                                    </properties>

                          </channel-definition>

       

                </channels>

       

      and in my remoting-config.xml i have default channel for all the destinations.

       

      <default-channels>

                  <channel ref="my-amf" />

                </default-channels>

       

      So please let me know if am doing something wrong.

       

      Can anyone please help how to sort this out as we are nearing our Production release?

       

       

      Thanks

      Srirama