RPC Fault - remote Object / cfc

Hi,
I have had a problem for a long time now. It happens when I  run applications from Flex Builder 3 that call remoteObjects that  again calls coldFusion cfc-files. The first time I run the applications after I have started Flex Builder, it always works ok. But after 5 - 10 minutes  of using Flex Builder without running the application in the browser… if I then run the appication, I get an error after the browser has loaded the swf-file. If I refresh the browser after the error occur , it works fine.
This error only happens on my local coldFusion development server (built in). When I deploy the applications, everything works fine all the time.
The error I get is as follows:
An ActionScript error has occurred:
[RPC Fault faultString="java.lang.NullPointerException" faultCode="Server.Processing" faultDetail="null"]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.2.0\frameworks\p rojects\rpc\src\mx\rpc\AbstractInvoker.as:220]
at mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder .as:53]
at mx.rpc::AsyncRequest/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncR equest.as:103]
at NetConnectionMessageResponder/statusHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\ src\mx\messaging\channels\NetConnectionChannel.as:569]
at mx.messaging::MessageResponder/status()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx \messaging\MessageResponder.as:222]
Can anybod help me on this one?
Thanks

Ok, nevermind, I figured out what I was doing wrong. I had
accidentally setup my application.cfc in a wrong way, I had set all
of the onrequest en onapplication event handlers to
access="package" instead of "public", this generated an error
ofcourse...
I'll just go bang my head against a wall for a while
now....

Similar Messages

  • RPC fault when calling a CFC from flex

    Hello there,
    I'm having some startup problems getting Flex and Colfusion 8
    to play nice with FDS. I'm using Flexbuilder 2.0.1 and Coldfusion 8
    developer edition on IIS on a windows box (XP professional).
    I use a very simple test CFC in my coldfusion site with just
    one function called 'getstring' which, surprise, surprise returns a
    string. I want to show this string on a label in my Flex frontend
    by using <mx:remoteobject>, the whole thing compiles
    perfectly, I use this mxml:
    <mx:RemoteObject id="TestService"
    source="cfc.DataTest"
    destination="ColdFusion"
    concurrency="multiple"
    makeObjectsBindable="true"
    showBusyCursor="true">
    <mx:method name="getString"
    result="doResult(event.result)" fault="doFault(event.fault)"/>
    </mx:RemoteObject>
    but after calling the remote method I get this error back:
    [RPC Fault faultString="coldfusion.xml.rpc.CFCServlet cannot
    be cast to coldfusion.runtime.CFPage" faultCode="Server.Processing"
    faultDetail="null"]
    Which is the same type of error I get when I call a CFC
    directly through the address bar in my browser, for example
    http://localhost/cfc/datatest.cfc
    I tried googling the error message but so far found nothing
    that indicated what I'm doing wrong...
    I'd really appreciate some help here, if you need more info
    let me know...
    thanx in advance

    Ok, nevermind, I figured out what I was doing wrong. I had
    accidentally setup my application.cfc in a wrong way, I had set all
    of the onrequest en onapplication event handlers to
    access="package" instead of "public", this generated an error
    ofcourse...
    I'll just go bang my head against a wall for a while
    now....

  • Flex and CFC with Remote Object

    I wrote a simple cold fusion componenet on my webserver at:
    http://www.paramountmediainc.com/webservices/eadexchange/agent_sys.cfc
    Now I want to play with that in Flex with a Remote Object.
    I'm writing the flex on my local machine. I tried this approach but
    was uncessfull:
    <mx:RemoteObject id="acctRO" showBusyCursor="true"
    source="webservices.eadexchange.agent_sys"
    endpoint="
    http://www.paramountmediainc.com/flashservices/gateway">
    I get the following error ...
    TypeError: Error #1034: Type Coercion failed: cannot convert
    Object@3b15da1 to mx.messaging.messages.ErrorMessage.
    Any ideas what I'm doing wrong here?

    You cant really replace Struts with Flex, maybe a view part
    , thats about is, you still need backend processioning
    logic,all that you are asking is difficult to answer is one reply,
    IMHO, best thing you can do is to dive into following URLs :
    http://www.adobe.com/devnet/flex/
    http://livedocs.adobe.com/flex/3/html/help.html?content=Part2_DevApps_1.html
    http://livedocs.adobe.com/blazeds/1/blazeds_devguide/
    http://livedocs.adobe.com/flex/3/html/help.html?content=Part6_ProgAS_1.html
    and of course your best friend :
    http://livedocs.adobe.com/flex/3/langref/index.html

  • $25 Reward - Calling a CFC via Remote Object or Web Service without making the result public

    I am just getting into Flex 2, so please forgive me for my
    newbe vocab.
    Here is how my applications have worked in the past, i.e.
    ColdFusion:
    <cfscript>
    //Create an instance of component
    order = CreateObject( 'component', 'PEK.Catalog.Order' );
    //Call methd
    theOrder = order.getOrder(1234);
    </cfscript>
    Display the order via HTML and CFML.
    getOrder() returns a query and 1234 is a sample orderID. The
    most important part of the solution I am looking for is that the it
    must not expose my getOrder() as a public web service. I am able to
    run the application with WS by making the mothod URL visible and
    remote, but this is no way near the security I would like to have.
    Here is my folder structure where components folder has been maped
    to CF.
    Application
    |__extentions
    | ... |__components
    | ... ... |__PEK
    |__wwwroot
    I guest there should be a way to call CFC with the thing
    remote object that I have no idea how to set up. So please what
    would be a solution to my security issues.
    Thank you in advance!

    Click
    Here for Link to Article
    I guess this article answers part of the question. It is very
    important to note that if the CFC is sitting on the same server as
    the CFC the component methods could be public and not remote, thus
    making it alot more secure.

  • Remote Object - not able to get the returned value from java method

         Hi ,
    I am developing one sample flex aplication that connects to the java code and displays the returned value from the
    java method in flex client. Here I am able to invoke the java method but not able to collect the returned value.
    lastResult is giving null .  I am able to see the sysout messages in server console.
    I am using flex 3.2 and blazeds server  and java 1.5
    Here is the code what I have written.
    <?xml version="1.0" encoding="utf-8"?><mx:WindowedApplication  xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#FFFFFF" initialize="initApp()">
     <mx:Script><![CDATA[
    import mx.controls.Alert; 
    import mx.binding.utils.ChangeWatcher; 
    import mx.rpc.events.ResultEvent; 
    import mx.messaging.*; 
    import mx.messaging.channels.* 
    public function initApp():void { 
         var cs:ChannelSet = new ChannelSet(); 
         var customChannel:Channel = new AMFChannel("my-amf", "http://localhost:8400/blazeds/messagebroker/amf");     cs.addChannel(customChannel);
         remoteObj.channelSet = cs;
    public function writeToConsole():void {      remoteObj.writeToConsole(
    "hello from Flash client");
          var returnedVal:String = remoteObj.setName().lastResult;     Alert.show(returnedVal);
    //[Bindable] 
    // private var returnedVal:String; 
    ]]>
    </mx:Script>
    <mx:RemoteObject id="remoteObj" destination="sro" /> 
    <mx:Form width="437" height="281">
     <mx:FormItem>  
    </mx:FormItem>  
    <mx:Button label="Write To Server Console" click="writeToConsole()"/>
     </mx:Form>
     </mx:WindowedApplication>
    Java code
    public  
         public SimpleRemoteObject(){  
              super();     }
      class SimpleRemoteObject { 
         public void writeToConsole(String msg) {          System.out.println("SimpleRemoteObject.write: " + msg);     }
         public String setName(){          System.
    out.println("Name changed in Java"); 
              return "Name changed in Java";
    And I have configured destination in  remote-config.xml
    <destination id="sro">
       <properties>    
        <source>SimpleRemoteObject</source>
        <scope>application</scope>
       </properties>
      </destination>
    Please help me .

    You are not able to get the returned value because if you see the Remote object help you will realise you have to use result="resultfn()" and fault = "faultfn()"
    In this you define what you wish to do.
    More importantly in the remote object you need to define which method you wish to call using the method class like this
    <mx:RemoteObject id="remoteObj" destination="sro" result="r1" fault="f1"  >
         <Method name="javaMethodName" result="r2" fault="f2"/>
    <mx:RemoteObject>
    r2 is the function where you get the result back from java and can use it to send the alert.

  • Error while using Remote object

    Badri can you please put the code that we are using

    The remoting-config.xml code is
    <?xml version="1.0" encoding="UTF-8"?>
    <service id="remoting-service"
    class="flex.messaging.services.RemotingService">
    <adapters>
    <adapter-definition id="java-object"
    class="flex.messaging.services.remoting.adapters.JavaAdapter"
    default="true"/>
    </adapters>
    <default-channels>
    <channel ref="my-amf"/>
    </default-channels>
    <destination id="GISDBChart">
    <properties>
    <source>com.ge.gis.reports.GISDBChart</source>
    <scope>application<scope>
    </properties>
    </destination>
    <destination id="GISDBReport">
    <properties>
    <source>com.ge.gis.reports.GISDBReport</source>
    <scope>application<scope>
    </properties>
    </destination>
    </service>
    The service-config.xml code is
    <?xml version="1.0" encoding="UTF-8"?>
    <services-config>
    <services>
    <service-include file-path="remoting-config.xml" />
    </services>
    <security>
    <login-command
    class="flex.messaging.security.TomcatLoginCommand"
    server="Tomcat"/>
    <security-constraint id="basic-read-access">
    <auth-method>Basic</auth-method>
    <roles>
    <role>guests</role>
    <role>accountants</role>
    <role>employees</role>
    <role>managers</role>
    </roles>
    </security-constraint>
    </security>
    <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>
    <polling-enabled>false</polling-enabled>
    </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>
    <!--HTTPS requests on some browsers do not work when
    pragma "no-cache" are set-->
    <add-no-cache-headers>false</add-no-cache-headers>
    </properties>
    </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>
    <polling-enabled>true</polling-enabled>
    <polling-interval-seconds>8</polling-interval-seconds>
    </properties>
    </channel-definition>
    </channels>
    <logging>
    <target class="flex.messaging.log.ConsoleTarget"
    level="Error">
    <properties>
    <prefix>[Flex] </prefix>
    <includeDate>false</includeDate>
    <includeTime>false</includeTime>
    <includeLevel>false</includeLevel>
    <includeCategory>false</includeCategory>
    </properties>
    <filters>
    <pattern>Endpoint.*</pattern>
    <pattern>Service.*</pattern>
    <pattern>Configuration</pattern>
    </filters>
    </target>
    </logging>
    <system>
    <redeploy>
    <enabled>true</enabled>
    <watch-interval>20</watch-interval>
    <watch-file>{context.root}/WEB-INF/flex/services-config.xml</watch-file>
    <touch-file>{context.root}/WEB-INF/web.xml</touch-file>
    </redeploy>
    </system>
    </services-config>
    The Error is
    getFaultHandler: [FaultEvent fault=[RPC Fault
    faultString="Send failed" faultCode="Client.Error.MessageSend"
    faultDetail="Channel.Connect.Failed error
    NetConnection.Call.Failed: HTTP: Status 503: url: '
    http://alpigedv4275.corporate.ge.com/portal/messagebroker/amf'"
    messageId="06F0E133-07D6-FBCE-037C-DD26A718AE9D" type="fault"
    bubbles=false cancelable=true eventPhase=2]
    Please Guide me with this problem.... Its Urgentttttt

  • When  submit remote object call getting error Client.Error.DeliveryInDoubt

    Hello,
    We are having very weird error DeliveryInDoubt from blazeds.
    [ERROR] failed to call the remote service !!![FaultEvent fault=[RPC Fault faultString="Channel disconnected" faultCode="Client.Error.DeliveryInDoubt" faultDetail="Channel disconnected before an acknowledgement was received"] messageId="98F7B030-0FE0-0B88-300C-EC422D055E21" type="fault" bubbles=false cancelable=true eventPhase=2
    Error does not happen every time, but rather from time to time but happens on all client machines.
    Environment:
    blazeds v3.
    Flex application with Remote Object.
    Browser IE7.
    Object that passed to blazeds is complex and might have 100 items.But number of items does not seem affect error occurences.
    Short description for the object passed to blazeds remote object call for processing:
    Remote Object call takes an argument ArrayCollection of SyncRequest objects (_requestSyncList)
                    var syncRequest:SyncRequest = new SyncRequest();
                    var syncObject:Object = new Object();
                    syncObject[requestBuilder.direction] = requestBuilder.jobMap;
                    syncRequest.syncJobs = syncObject;
                    _requestSyncList.addItem(syncRequest);          
    requestBuilder.jobMap is an object that have different artifacts.
    jobMap[obj.artifact] = myColl;
    myColl is ArrayCollection of artifact of SyncJob
    Here is the definition of SyncJob
       public class SyncJob
            public var jobName:String;
            [ArrayElementType("com.farmers.docprocessing.remotesync.vo.JobParameter")]
            public var jobParams:ArrayCollection;
    Not sure what causing that issue and how to debug it. 
    Please advice.
    Thank you

    Not without you psoting some code.
    Possible problem: Difference between object type being returned, vs the type of the reference (i.e., the method that returns an object should have a return type of the interface name).

  • Sample Example on Remote Object

    Hi All,
    I am doing a sample program in Flex using Remote Object, when
    i enter Data in TextInput and click getData(button) in the TextArea
    conrol the the Data in TextInput should be displayed along with
    that some updation, these updations are declared
    in the Java. when i click on the Button(getData) it will
    update the Data using the RemoteObject. Here is my Application..
    Also described the desired path in RemoteConfig.xml
    Text.mxml
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:RemoteObject id="srv" destination="testsession"
    fault="faultHandler(event)" >
    <mx:method name="getMessage" result="display(event)"
    ></mx:method>
    </mx:RemoteObject>
    <mx:Script>
    <![CDATA[
    import flash.net.navigateToURL;
    import mx.rpc.events.ResultEvent;
    import mx.controls.Alert;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    public function getMessage():void {
    Alert.show("alertin echo"+ input.text);
    srv.echoMessage(input.text);
    public function display(event:ResultEvent):void {
    Alert.show("In display Response");
    output.text = event.result();
    private function faultHandler(event:FaultEvent):void
    Alert.show("Server Message: Error"+event.message);
    } ]]>
    </mx:Script>
    <mx:Panel title="Sample" width="320">
    <mx:Form width="500">
    <mx:FormItem label="Input Message"> <mx:TextInput
    id="input"/> </mx:FormItem>
    <mx:FormItem> <mx:Button label="Get Message"
    click="getMessage()"/> </mx:FormItem>
    <mx:FormItem label="Output Message">
    <mx:TextArea id="output" show="getMessage()"/>
    </mx:FormItem>
    </mx:Form>
    </mx:Panel>
    </mx:Application>
    Here is My Java Application
    EchoService.java:
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import java.util.Date;
    public class EchoService
    public String echo( String inputMessage ) throws Exception
    StringBuffer result = new StringBuffer();
    result.append("EchoService received ");
    result.append(inputMessage);
    result.append(" at ");
    result.append(dateFormat.format(new Date()));
    return result.toString();
    private DateFormat dateFormat = new
    SimpleDateFormat("HH:mm:ss");
    when i run these am getting an Error at ServerMessage as:
    ERROR:
    Server Message: Error(mx.messaging.messages::ErrorMessage)#0
    body = (Object)#1
    clientId = (null)
    correlationId = "F3C89B4B-8166-32AA-7C80-5F0CE42EFB40"
    destination = ""
    extendedData = (null)
    faultCode = "Client.Error.MessageSend"
    faultDetail = "Channel.Connect.Failed error
    NetConnection.Call.Failed: HTTP: Status 500: url: '
    http://localhost:8600/messagebroker/amf'"
    faultString = "Send failed"
    headers = (Object)#2
    messageId = "443DBB42-8B18-84D8-151F-5F0CED757E35"
    rootCause = (Object)#3
    code = "NetConnection.Call.Failed"
    description = "HTTP: Status 500"
    details = "
    http://localhost:8600/messagebroker/amf"
    level = "error"
    timestamp = 0
    timeToLive = 0
    can anyone help me how to achieve this.
    Thanks,
    Raa
    Text
    ERROR

    James,
    Go through the blogs and articles in this thread.
    Re: Integrating SSO with Yahoo
    Hope this helps.
    Cheers,
    Sandeep Tudumu

  • Two remote objects calls on the same php class

    Hi to all,
           I've encountered a strange issue while developing with remote objects.
    I've a mxml component with an init() method inside which is called by a menu.
    When the init() method is called it makes 7 remote object calls which are bound to some components' dataprovider.
    Among this calls I've got 2 remote object which refer to the same remote class. This because I have to call the class twice and the bind the result to two different combobox. Below you find the code:
    <mx:RemoteObject id="myFile" source="myRemoteClass" destination="amfphp"  showBusyCursor="true" makeObjectsBindable="true" fault="traceFault(event)"/>
    <mx:RemoteObject id="myXls"  source="myRemoteClass" destination="amfphp"  showBusyCursor="true" makeObjectsBindable="true" fault="traceFault(event)"/>
    in the init function I make this calls:
    myFile.listDir("dir_1")
    myXls.listDir("dir_2")
    then in the mxml code I bound the result of myFile to combobox1 and the result of myXls on combobox2.
    The problem arise when I call the myXls' listDir method. When I call it I receive the following error:
    code:
    Client.Error.DeliveryInDoubt
    Message:
    Channel disconnected
    Detail:
    Channel disconnected before an acknowledgement was received
    The strange thing is that not only the myXls object returns this error, but also all the other 6 remote object return the same error above.
    I'm not sure, but I guess that the error could be caused by the two remote object which call the same php remote class. If I comment one of the two calls everything works fine.
    Do you have any suggestion about?
    Thanks!!
    Bye
    Luke

    Hi Jan.
    1) We have the 2 VO, each with 3 rows to fill in data. What I mean is that when i just fill in all the fields for the first row of the first VO, and the value of one of these fields is bigger than 50, then after the exception is thrown and the message is displayed, the fields for the first VO are duplicated and shown in the second VO as if the user had inserted them.
    2) We tried yesterday the validateEntity and a Method and Atributte Validator approaches after reading that white paper with the same results.
    The validation is correctly done using any of the those methods.
    I will try to reproduce this issue with the HR schema.
    Thanks in advance once again.

  • Creating remote objects and passing the retrieved data to modules

    I found at this Adobe tutorial a nice "RemoteService" class that  creates a RemoteObject and contains the functions for handling the  result and fault events. If I wanted to use this approach, how could I  pass the data from the result handler to interfaces that modules from  the main application could use?
    I could put the RemoteService/RemoteObject in the modules, but (in my  opinion- and I could be wrong) the best design seems to be using the  remote calls in the main app and passing the data along to the modules.
    Ultimately, I would like to know what the "best practices" are for creating remote objects and passing the retrieved data to modules
    Thanks!

    public void mouseClicked(MouseEvent e) {
      X x = new X(e.getX(), e.getY());
    }I don't see the difficulty.

  • Error While calling remote object

    [RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://localhost:8080/Remote/messagebroker/amf'"]
    This is the error I am getting when I am trying to call a method in java
    This is java code
    package demo;
    public class  Hello
    public String sayHello()
    System.out.println("1st Method is calledddddddd");
    return "Hello World!";
    public String sayHelloWithParam(String str){
    System.out.println("2nd Method is calledddddddd");
    return "You have typed  "+str;
    This is my mxml code
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.ResultEvent;
    public function sayHello(event:ResultEvent):void{
    label1.text=event.result.toString();
    public function sayHelloWithParameter(event:ResultEvent):void{
    label1.text=event.result.toString();
    ]]>
    </mx:Script>
    <mx:RemoteObject id="hello" destination="helloworldclass" fault="mx.controls.Alert.show(event.fault.toString())">
    <mx:method name="sayHello" result="sayHello(event)"/>
    <mx:method name="sayHelloWithParam" result="sayHelloWithParameter(event)"/>
    </mx:RemoteObject>
    <mx:Label x="55" y="51" text="Label" id="label1"/>
    <mx:Button x="253" y="49" label="Button1" click="hello.sayHello()"/>
    <mx:TextInput x="55" y="106" id="t1"/>
    <mx:Button x="253" y="106" label="Button2" click="hello.sayHelloWithParam.send();"/>
    </mx:Application>
    When I click the button I am getting that error..
    Please help me in solving this

    Your server code must be faulty. If things work well you should see a blank screen when you point your browser to the amf endpoint.
    An Apache message like "The requested resource (/bpm-backend/whatever) is not available." indicates that something in your server app is not working properly or not mapped right.

  • Breaking up data in a remote object

    Currently I have a chart that gets its data using a remote
    object connection. The chart currently shows a months worth of
    data. Now I need to break that monthly data into weekly data. The
    customer would rather have the data spread acroos four weekly
    charts instead of just one monthly chart. The customer would then
    just click click a 'Next' or 'Previous' button to cycle through the
    charts.
    I know that I just change the function (CFC) that calls for
    the data to only return a weeks worth of data, but I don't want to
    make a separate data call every time the user clicks 'Next' or
    'Previous'
    Is there a way to grab the whole month's data set and then
    divide it into weekly data sets within the app?

    Okay I figured this one out. If I add a hSlider with two
    thumbs I can set the thumbs with just a couple of functions.
    Basically when the user clicks either button a function is called
    that passes in a predetermined value of how many tick marks to
    move.
    The HSlider has a property called 'values' that holds the
    positions of all the thumbs. Using some simple functions they can
    easily be manipulated.
    Setting the slider's visible property to 'false' will keep
    the navigation focused on just the buttons.

  • RPC Fault at Transport level?

    One of our Flash programmers is receiving the following error in Flex when connecting to an external MS-SQL DB server.
    "[RPC Fault faultString="A Transport-level error has occurred when receiving results from the server. (provider: TCP Provider, error: 0 -- The specified network name is no longer available.)"  faultCode="Server.Processing" faultDetail="null"]
    Apparently my googlefu is no good today as I've not found anything remotely close yet.  Any assistance would be greatly apparectiated.
    Thanks

    Please see attached images which I have got,
    I am using:
    Latest BlazeDS + Flex 3.0 plugin.
    Server JBoss 4.0.2
    I am not getting exactly why this is working so?

  • Daisy-chaining remote object calls

    If you want to get data from a series of CFCs using remote
    object, and each call depends on data received from the previous
    call, you have to daisy-chain the functions making the calls,
    otherwise there is no way to guarantee that the data is available
    in time (in practice it is never available in time) because the
    main thread races on regardless.
    Now if you want to refresh parts of the data, or you want to
    get a different set of data from one or more of the same CFCs, you
    either can use the same functions and set up a different set of
    daisy-chains with multiple boolean tests to see which chain of
    links should be being followed ( and this ends up something akin to
    a four-dimensional Hampton Court maze), or you have to duplicate
    the remote calls over and over again in different sets of functions
    and resultHandlers. Either way you end up with a horrible mess.
    Is there any way to write a class that can suspend the main
    thread, pending a remote call listener sending a resume main thread
    event.
    The other way that would work (though this would not be as
    good) is to change addEventListener, so that you can pass arguments
    into the resultHandler.
    Does anyone have any ideas that could lead to a solution to
    this problem? It's giving me gray hair.
    Doug

    "suspend the main thread, pending a remote call.." No. Can't
    be done.
    ..."pass arguments into the resultHandler..." Yes, this is
    done using the AsyncToken. (ACT pattern)
    The send() methods returns an AsyncToken object. You can use
    this dynamic object to add almost anything you want to the token,
    including strings, and functions (google the term "closure").
    As I am still not comfortable with anonymous functions, I
    like to pass strings. I pass an identifier, which I can use in a
    switch statement to determine the next step. Sometimes I pass a
    "nextStep" string to define finer grain conditionality.
    I use a single dataService object and result handler function
    for all calls.
    Tracy

  • Flex/Air and Web Services/Remote Objects

    If I'm calling a web service operation, either through the
    mx:webservice or mx:remoteobject tags, do I need to configure my
    Flex or Air project (I'm using the latest Flex Builder IDE) with
    the "use remote object access service" when creating the project?
    When do I need to configure services-config.xml or
    remoting-config.xml?
    Can't I simply call a web service operation by specifying the
    endpoint (if using mx:remoteobject) or the wsdl location for the
    service and then invoking one of its methods? I'm having a very
    difficult time consuming a web service through either method (even
    on my own local ColdFusion 8 developer instance) and need some
    assistance. I've looked all over the internet for help, but, so
    far, without success.
    Thanks,
    -Jose

    You do not need to specify any server to use any of the RPC
    protocols.
    Have you looked at an example?
    You have not said what problems you are having.
    Be aware of crossdomain security issues.
    Tracy

Maybe you are looking for

  • Read-receipt of mail

    how do I get the read-receipt of mail

  • Rollback segment  creation problem

    When i try to create rollback segment on oracle 9iRelease2 database in linux operating system, i got the following error, ORA-30019: Illegal rollback Segment operation in Automatic Undo mode. I have already modified Undo_management as manual in init

  • Security Warning In EP

    Hi, I am encountering a strange problem, In my portal when i try to navigate to some iviews , It shows a warning message that "This page contains both Secure and nonsecure item  Do u want to Display the Nonsecure items ? ". It should also be noticed

  • Upgrading my Broadband package

    Hello, My Broadband service was recently switched over from talktalk to BT. I am currently looking into upgrading from the current package that is being received at my residence. The current package in my house at the moment is BT total broadband opt

  • The audio on my macbook air keeps shutting down

    I have just had a new Macbook air with OS X 10.9 on it. The audio works on speakers and also on headphones when I start up the computer, but after I plug in my headphones and used an application like Skype or just itunes, and then close the screen fo