Results 1 to 5 of 5

Thread: RPC Fault

  1. #1
    Join Date
    Nov 2008
    Posts
    9

    Unhappy 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. #2

    Default

    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.

  3. #3
    Join Date
    Nov 2008
    Posts
    9

    Default

    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!

  4. #4

    Default

    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.

  5. #5
    Join Date
    Nov 2008
    Posts
    9

    Default

    Ah I see, thanks very much.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •