Actionscript :: Flex RemoteObject Timeouts?

Oct 21, 2009

I've been tinkering around with Flex RemoteObjects, and I've found that they aren't very well behaved with respect to timing out.First, I can't figure out how to set a timeout on "connect". I know I can set requstTimeout, which will correctly timeout after an initial handshake... But if the server doesn't handshake, the connection doesn't time out (eg, the server accepts the connection, then does nothing with it, the client will just be left hanging).

Second, when a requestTimeout fires (timing out the request), Flex doesn't actually take any steps to tear down the connection - it just leaves it hanging there (no RST or the like). Clearly, this is more than a little bit undesirable. Is there any way to explicitly tear down the connection after the timeout?

View 1 Replies


Similar Posts:


Flex :: Script Timeouts (Error 1502) And WebService Component

Sep 7, 2010

I am getting a script timeout (error #1502) when I am calling a SharePoint Web Service (CopyIntoItems) when trying to upload large files (greater than 40 MB). The error does not occur when using the Web Service for smaller files. The large files can be uploaded directly to SharePoint using the web interface therefore it is not a back-end SharePoint issue. I believe the issue has to do with the logic in the WebService Flex component, however I am not sure how to optimize it and I cannot break down the file into smaller chunks as it needs to be together in order to upload with the SharePoint field information.

View 1 Replies

Flex :: Mx:method, Mx.rpc.remoting.mxml.RemoteObject, And Sub-classing Mx.rpc.remoting.mxml.RemoteObject?

May 6, 2010

I am looking to subclass RemoteObject. Instead of:

<mx:RemoteObject ... >
<mx:method ... />
<mx:method ... />

[code].....

View 1 Replies

Flex :: Output Database Information In A Text Input Field In Flex By Using RemoteObject(cfc)

Mar 16, 2011

im trying to output my database information in a text input field in flex by using remoteObject(cfc). The information is being provided by a database using a query and an array collection. I'm just unsure how i go about taking the queried array collection information and display it into TextInput Fields.

[Code]...

View 1 Replies

Flex :: Why Wouldn't A Flex Remoteobject Be Able To Work Within A Custom Component

Mar 31, 2010

I have a remoteobject within my main.mxml.I can call a function on the service from an init() function on my main.mxml, and my java debugger triggers a breakpoint.When I move the remoteobject declaration and function call into a custom component (that is declared within main.mxml), the remote function on java-side no longer gets called, no breakpoints triggered, no errors, silence.[code]

View 2 Replies

Flex :: RemoteObject Synchronous Call?

Oct 1, 2009

In the code below when I call chkAuthentication function from another function the remoteObj.login (login function in my service file (.php)) is called after the remaining code in that function. i.e., the loginStatus is returned from the function before the result-handler function loginResult is called. but my loginStatus is supposed to be set in loginResult function. It seems that the asynchronous behaviour is the culprit. what should I do in order to get the loginResult function to complete first?

[Code]...

View 2 Replies

Flex 4 - Using RemoteObject And Multiple Components?

Aug 24, 2010

I was wondering what is considered to be a best practice when I have multiple components and use RemoteObject for AMF communication with a PHP backend.

Have the RemoteObject in the Main.mxml file with all the methods declared here (with handlers and all) and have all components call functions from the parentApplication, thus having a centralized result and fault handling, but making reusiability more difficult.Have a RemoteObject in each component with only the methods (and handlers) relevant to that component, thus making it easy to have clean, reusable components.

View 1 Replies

Flex :: Possible To Abort RemoteObject Call?

Apr 7, 2011

Is it possible to abort a flex remoteObject call? I tried the below method but the http request is still loading in the background:[code]The thing I'm interested in is freeing up the browsers HTTP Pipeline, just like in javascript where you can use abort on the XHR.

View 2 Replies

Flex :: Get The Result Of A RemoteObject Immediately?

Apr 29, 2011

I need to make a function that execute a java method and return his result. It is static becouse a lot of other functions will call this function. So I did this:

public static function FKDescription(dest:String):String{
var jRemote:RemoteObject = new RemoteObject();
var s:String;

[Code].....

But the function returns null, because the valresult() was not been called at the end of main function. What shoud I do to make FKDescription() return the string that came from remoteobject?

View 2 Replies

Flex :: Synchronous Calls Using RemoteObject?

Apr 2, 2009

Is there a way to make synchronous calls using RemoteObject in Flex?

Solution: Add the second call to the result handler of the first call, having a token check for multiple originating calls.

View 9 Replies

ActionScript :: Flex - RemoteObject Response Headers?

Jun 16, 2009

I am in the process of writing an application in Flex 3.3, using the Cairngorm framework, for deployment as an AIR application. The application heavily utilizes RemoteObject services to get data from a web server.Each of my service delegates extends a common class which provides a method for calling service methods on the RemoteObject.So, where I previously usedServiceLocator.getInstance().getRemoteObject('myService').myOperation.send();I instead usethis.send('myOperation', 'myService');I use this method instead of calling the RemoteObject operations directly because this method adds another, global, responder to the operation call. This extra responder analyses data in the headers of reponse from the server.

Or at least it should -- this is where the problem is. In the result data (event as mx.rpc.events.ResultEvent) the headers property is always null despite the headers definitely being sent from the server.

View 1 Replies

Flex :: RemoteObject Inconsistent Channel Location?

Jul 1, 2009

I have a swf which, for some reason, has four RemoteObjects pointing to the same ChannelId, but they are listing that channel as being at two different spots. In four of the five RemoteObjects, everything behaves as expected, but in the fourth (WidgetService), the version on dev is switching from dev.context.root toloc.context.root. To make matters more confusing, it only does this on the dev server (QA and production are fine, as are local builds).The relevant information from the config files follows:

#This is from build.properties, which is used by Ant
#to build the swf on the server
flex.sdk.dir = /path/to/sdk/flex_sdk_3.2.0.3958

[code].....

View 1 Replies

Flex :: Prevent RemoteObject From Batching AMF Messages Together?

Jan 10, 2010

I am using Google AppEngine, in conjunction with PyAMF to provide RemoteObject support. In my Flex code I make several RemoteObject method calls at once which tends to batch the AMF Messages into a single HTTP request. Most of the time this is fine but AppEngine applies some strict per request limits (in this case I am hitting a DeadlineExceededError - max 30 seconds). A number of service methods are expected to take upwards of 10 seconds and if these are batched by the RemoteObject into 1 HTTP you see where this is going. Now you could say refactor your service calls and that is also going on but not really the question being asked here. Is there a way to prevent Flex RemoteObject from batching AMF requests for situations like this? I have done a fair amount of Googling on the subject and come up with bupkis. It seems to me that I would need to implement a custom version of mx.messaging.channels.AMFChannel or something of that nature, which seems waay too hardcore for a feature like this

View 3 Replies

Flex :: RemoteObject Intermittently Failing To Invoke CFC

Jun 10, 2010

I have a Flex app that uses Flash Remoting and the RemoteObject to pull data from a ColdFusion CFC. About 75% of the time it works, but the other times I get a message using Charles (a debugging tool) that says faultString = "Unable to Invoke CFC". FaultCode = "Server.Processing".

Here's my RemoteObject:

<mx:RemoteObject id="carsSvc" destination="ColdFusion" source="ca.sqmIDash.cfc.sqmIdash">
<mx:method name="getCARs" result="resultHandler(event)"/>
</mx:RemoteObject>

The server set up on our web farm is to use load balancing. I'm not sure if this is causing the problem or not. Probably not, but it's a thought.

View 1 Replies

Flex :: AIR Application Connecting To RemoteObject Through Proxy?

Apr 29, 2011

I am having some issues trying to make an AIR application connect to a RemoteObject when the application is run in a domain that has proxy servers for outbound connection.The error provided is as below:

[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://myTestService.org:8080/default/message/amf'"]

View 1 Replies

Flex :: Implement RemoteObject In A Foreign Class?

May 27, 2011

Heres the code:

[Code]....

Unfortunatly, its doesnt reach the eventHandler, when i call the loadCurrentSchem() function. Whats wrong? This is how i call the class:

[code].....

View 1 Replies

Flex 4.5 :: RemoteObject And AMFPHP Over SSL With Self-signed Certificate

Nov 2, 2011

I'm trying to connect to AMFPHP over SSL (self-signed) from a Flex 4.5 application.Will this work? Or do I need an authority-signed certificate?Will it silently fail or prompt user like it does in browser?How do I need to edit the services-config.xml file for this to work?

View 1 Replies

Flex :: Blazeds - RemoteObject - Handling Multiple Requests?

Jul 11, 2009

I have a couple of remote object methods that I want to respond to in different ways depending on the context, but I'd rather not set up a bunch of different RemoteObject aliases.Some background: Let's say I have an admin application that displays sales stats in different ways. The remote method looks like:

<mx:RemoteObject id="rpt" destination="AMFServer">
<mx:method name="getSalesStats" fault="getSalesStatsFault(event)"
result = "getSalesStatsSuccess(event)" />[code]........

The getSalesStats method takes an employee ID and a sales type as its arguments. You'd call it like:

rpt.getSalesStats(120, "peanuts");
public function getSalesStatsSuccess(e:ResultEvent):void {
salesdata:ArrayCollection = e.result.rows as ArrayCollection;[code]......

I'd like to pass something through the remote method to the responding function, like:

rpt.getSalesStats(120, "peanuts", "clicked button one");

but that of course throws an error because the server doesn't want that last argument.

View 6 Replies

Flex :: RemoteObject: Arrays With Same Values Reference Same Memory?

Nov 11, 2009

If I send remote data from Zend_Amf to Flex, if two array properties on the object have the same data values they are deserialized at the remote end with the same memory storage.Example: AS3 object:

Snippet:
[RemoteClass(alias="TestVO")]
public class TestVO

[code].....

View 2 Replies

Flex :: Coldfusion - RemoteObject - Passing Named Parameters

Dec 7, 2010

I'm calling ColdFusion cfc method using RemoteObject method of the Flex.

[Code].....

So you can see that I changed the sequence of the parameter, when I call the cfc method. But it does not worked. It means that <s:arguments> does not pass the named parameter. Is there any solution for that? As you can see that I may have some of the arguments not mandatory so, it must be passed by name.

View 1 Replies

Flex :: RemoteObject After Application Built - No Fault No Result

Jan 25, 2011

When i run it in Flash Builder (debug mode) the remote object called successfully. but whenever i build the application (AIR application), then the remote object will return no result nor fault, the busy cursor is showing about 3 seconds. then no clue at all. how to get advance fault or something than regular fault event or result event? or anyone have the same experience?

UPDATE: Actually it was failed only for ONE service method, for other method (some of them took longer time to call) the service call is work fine. CASE SOLVED So the problem was not on the service call, but on my result conversion that cause the advanced datagrid failed to render.

View 1 Replies

Flex :: Abort/stop A RemoteObject Method Call?

Feb 27, 2012

I am using RemoteObjects to call ZendAMF PHP from Flex/Flash Builder 4.6. I want to stop or abort a method call before it sends the request to the server based on an event or similar.

I have a class where I create and store all the RemoteObjects - for example:

activityLogService = new RemoteObject("zend");
activityLogService.endpoint=endpointServer;
activityLogService.addEventListener(FaultEvent.FAULT,faultHandler);

Then later I can simply call this object:

remotingService.activityLogService .getRecords();

I am trying to find a way in my remotingService object to stop the request - and not send anything to the server - for example if some variables are not set properly.

I noticed there is an invoke event: activityLogService.addEventListener(InvokeEvent.INVOKE,invokeHandler);

However, I can not tell if that's going to stop things at the proper point, or if it's even possible to actually STOP the request - if so, how?

View 1 Replies

Flex :: Oracle - Remoteobject Multiple Records In Database Of Same Info?

Feb 11, 2012

Case1: When a client makes a remoteObject request ie to save some Info... A call is made to Java SAVE_INFO method. If request failed ie came back to FaultHandler ( we save the info in an arrayCollection).Later we call SAVE_INFO again for each item in arrayCollection ie( if arrayCollection has 10 items.. We call 10 times the same method.. I know that's kind of stupid but we have no control over java to write a overloading method). Some times we see there are multiple records of same info in DB. I am not sure if this happens when looping over arraycollection and making calls or during normal one time call. We could not find a pattern to reproduce. Java LOG level is at Error level in production. can't set to INFO in production to monitor all calls. We dont know if this multiple times saved record is, the one in arrayCollection or normal one.

Flex3 RemoteObject --> WAS 6.1 , lCDS 3.0, Java1.5 --> Webservice -- > Java (hibernate) --> Oracle 10gCase2: When application is left open and user leaves for the day and submits info the following morning, we see duplicate records in DB of that info.(No arrayCollection here. Simple straight one call)Flex3 RemoteObject --> OC4J Blazeds Java1.5 (JDBC) --> Oracle 10g.Recently one of our Testers testing case 2 application found this pattern and I am starting to think that may be in the case 1 also.. users might be leaving for lunch/break and resubmitted the arrayCollection after coming back. During lunch java might have killed the sessions for the client and after resubmitting 10 at same time.

View 1 Replies

C# :: FluorineFX Rtmp Connection Timeouts?

Jul 13, 2011

I have application server that I wrote in csharp. The server is communicating with Flash client built using FLEX 4 (Flash Builder 4.5). The communication between the server and the client is done using RTMP.

For the RTMP capabilities in the server side I used the FluorineFX (hosted in IIS7). All the connections is done using Remote procedure calls where the Flash client executes remote procedure in the server and getting the results in the RPC response callback function.

The server also can send messages to the client using RPC as well. My problem is that the server diconnects all clients 6 minutes after the last client connected and I can't figure out why it is doing it.

[Code]...

View 1 Replies

Flex :: Do Calling A ColdFusion Web Service Using <s:RemoteObject> And <s:WebService> Have A Difference In Performance

Jan 22, 2011

Assuming calling the same ColdFusion web service and all other factors are identical, is there a difference in performance/speed between using the following two tags?

<s:RemoteObject id="MyService" destination="ColdFusion" source="MyWSFolder.MyService"/>

and

<s:WebService id="MyService" wsdl="http://www.myDomain.com/MyWSFolder/MyService.cfc?wsdl"/>

View 2 Replies

Flex :: Unable To Refresh Tree Control With New Branches From Successful RemoteObject Call

Feb 2, 2010

I'm trying to populate a mx:tree component with values that I'm getting from BlazeDS. The returned data from BlazeDS is fine it's an ArrayCollection of Folder value objects.I've been instructed to use Cairngorm for this project. I'm pretty new to Flex and Cairngorm. According to the limited documentation that I've read online I should populate the model with data so I've stuck the array collection there.What I'm stuck with is trying to update the tree component. I feel that I need some way to notify the container component for the tree that the data (i.e. the subfolders) is available on the model. I was hoping that it would be possible to fire a function in the container component to add the subfolders as children of the selected node (I could chuck this on the model before the remote object call I guess) then fire tree.invalidateList() and tree.validateNow(). Any ideas?

View 1 Replies

Flex :: Actionscript 3 - 3 Dynamic RemoteObject Class - Not Passing "args" To SendRequest(..)

Jun 23, 2009

I have a class which I want to use throughout my projects. It essentially would allow me to easily work with a RemoteObject so that I don't have to define it throughout all of my projects. It works when not passing "args" to sendRequest(..). But when I want to call the cfc function with parameters and try passing "args" in I get the following error:

[Code]...

View 3 Replies

Actionscript 3 :: Error "missing A Semicolon" Using Timeouts In Flex3

Mar 1, 2010

this is what I have so far - but it gives me an error saying that I am missing a semicolon somewhere, but I cant figure out where. Basically what I want it to do is when the button is clicked a random number is generated, then one pic is hidden, one is shown - then after a pause, that pic is hidden and a different one is shown.

[Code]...

View 1 Replies

Actionscript 3 :: Using RemoteObject (AMF) From A Flash

Jan 24, 2012

I recently ported some code from a Flex project over to a new pure AS3 project. When i attempted to make an AMF call, I am getting an error message like this:

TypeError: Error #1034: Type Coercion failed: cannot convert Object@5425371 to mx.messaging.messages.ErrorMessage.

There was no stack trace associated with the error, so debugging was difficult. I tried all manner of things (checking that all required libraries from the flex framework were included, etc) but nothing worked.

View 1 Replies

ActionScript 3.0 :: Variables From Remoteobject?

Jul 2, 2009

I have a flex app were I am pulling data from coldfusion via remoteobject.I have a tabnavigator and want to hide one of the tabs dependent upon info pulled from coldfusion (session variable).I assign the result to a variable. if I use the variable in a label for the text it works no problem. the label display what the variable is.but if I use the variable in a function to check it against another it returns null.

//remoteobject method
<mx:method name="getUser" result="getUserResult(event)" />
//the variable[code].....

I did the alert to see what value it was returning. it says null. but i put a label on the program with {findUser} as the text and it display correctly.

View 0 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved