Announcement Announcement Module
Collapse
No announcement yet.
RPC Fault Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • RPC Fault

    Hi,

    I've been playing around with BlazeDS and Spring and I've been following Christophe Coenraets tutorial on the Adobe website.

    One thing that doesn't seem to be covered though is the "my-amf" configuration. My Flex front-end cannot seem to communicate with the back-end through remote objects.

    I think it's because there's a 404 error occuring when it tries to access http://localhost:8080/myapp/messagebroker/amf. The directory doesn't exist in my project consequently it doesn't appear when Tomcat expands the war file.

    The actual error displayed in the Flash debugger in the browser is:

    Code:
    [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" 
    faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 'http://localhost:8080/myapp/messagebroker/amf'"]
    at mx.data::ConcreteDataService/http://www.adobe.com/2006/flex/mx/internal::dispatchFaultEvent()
    at private::DataListRequestResponder/fault()
    at mx.rpc::AsyncRequest/fault()
    at mx.messaging::ChannelSet/private::faultPendingSends()
    at mx.messaging::ChannelSet/channelFaultHandler()
    at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.messaging::Channel/mx.messaging:Channel::connectFailed()
    at mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingChannel::connectFailed()
    at mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFChannel::statusHandler()
    Does anyone know what the problem could be?

    Thanks!

  • #2
    Few things no notice:

    1) have you done your project like the reference says: http://static.springframework.org/sp...tml/index.html ?

    2) If so, have you created the channelset manually? BlazeDS needs it.

    If I remember right, the Adobe example was the old way doing this.

    Comment


    • #3
      Thanks for the reply Durden.

      I looked at the Spring documentation but it seemed incomplete as it's quite short, the article that I followed is here: http://www.adobe.com/devnet/livecycl...ds_spring.html

      Do you have any more information on creating channel sets? I'm not familiar with that.

      Edit: Is creating the channel sets something that is done in XML like the following in services-config.xml:

      Code:
      <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>
              <polling-enabled>false</polling-enabled>
          </properties>
      </channel-definition>
      Thanks!

      Comment


      • #4
        For creating channel sets, see: http://forum.springframework.org/sho...5&postcount=18

        That Adobe article does not use the current Spring BlazeDS integration, so you should read the reference carefully, if you want to use it.

        Comment


        • #5
          Ah I see, thanks very much.

          Comment

          Working...
          X