Duplicate session error using Flash Remoting from Air 3.4 Mobile Apps ( IOS and Android ) with CF10

We're getting the "duplicate session" error using Flash Remoting from Air 3.4 Mobile Apps ( IOS and Android ) with Coldfusion 10 Standard.
faultCode:Server.Processing.DuplicateSessionDetected faultString:'Detected duplicate HTTP-based FlexSessions,
generally due to the remote host disabling session cookies.
Session cookies must be enabled to manage the client connection correctly.' faultDetail:'null'
Have read most of the docs about this error -all to do with LCDS
Notes:
Not using LCDS,
No Remote Calls from loaded Sub-Apps,
No Errors from the Flex Web App which is pretty  much identical and calls the same cfcs.
The error does not happen all the time and is hard to reproduce - say 5% of app sessions at a guess.
Could it be a two first time remote calls hitting the server together before a session is set up?
Our remoteObjects are in two places 1) Main Application.mxml and within a class compiled into the main app - can't see how this would be an issue.
I enabled session management for the CFCs in Application.cfc but still occurs. Is this neccessary - it's not in any docs?
Could this be something to do with the app not being shut down - as is typical with mobile users? When they resume use after a day or two surely a new session will be created?
Please advise thank you.

For our profect I think this issue was caused as follows:
Believing that remoting was full asynchronous we fired a 2 or 3 remote calls to the server at the same time ( within the same function ) - usually when the users goes to a new section of the app.
This seemed to trigger the duplicate http session error since according to http://blogs.adobe.com/lin/2011/05/duplication-session-error.html  two remote calls arriving before a session is created will cause 2 sessions to be created.
Our current solution ( too early to say it works ) is to daisy chain the multiple calls together .
Also there seemed to be an issue where mobile apps that never quit ( thanks Apple! )  caused the error when activated after a few hours.
I guess the session expires on the server and the error above occurs on activation.
So the mobile apps now ping the server with a remote call when activated after sleeping for more than one hour.
All duplicate http errors are silently caught and reported.
Fingers crossed we won't get any more!

Similar Messages

  • Detected duplicate HTTP-based FlexSessions in CF10 with Air Mobile (3.4) IOS and Android apps

    We're getting the "duplicate session" error using Flash Remoting from Air 3.4 Mobile Apps ( IOS and Android ) with Coldfusion 10 Standard.
    faultCode:Server.Processing.DuplicateSessionDetected faultString:'Detected duplicate HTTP-based FlexSessions,
    generally due to the remote host disabling session cookies.
    Session cookies must be enabled to manage the client connection correctly.' faultDetail:'null'
    Have read most of the docs about this error -all to do with LCDS
    Notes:
    Not using LCDS,
    No Remote Calls from loaded Sub-Apps, 
    No Errors from the Flex Web App which is pretty  much identical and calls the same cfcs.
    The error does not happen all the time and is hard to reproduce - say 5% of app sessions at a guess.
    Could it be a two first time remote calls hitting the server together before a session is set up?
    Our remoteObjects are in two places 1) Main Application.mxml and within a class compiled into the main app - can't see how this would be an issue.
    I enabled session management for the CFCs in Application.cfc but still occurs. Is this neccessary - it's not in any docs?
    Could this be something to do with the app not being shut down - as is typical with mobile users? When they resume use after a day or two surely a new session will be created?
    Please advise thank you.

    For our profect I think this issue was caused as follows:
    Believing that remoting was full asynchronous we fired a 2 or 3 remote calls to the server at the same time ( within the same function ) - usually when the users goes to a new section of the app.
    This seemed to trigger the duplicate http session error since according to http://blogs.adobe.com/lin/2011/05/duplication-session-error.html  two remote calls arriving before a session is created will cause 2 sessions to be created.
    Our current solution ( too early to say it works ) is to daisy chain the multiple calls together .
    Also there seemed to be an issue where mobile apps that never quit ( thanks Apple! )  caused the error when activated after a few hours.
    I guess the session expires on the server and the error above occurs on activation.
    So the mobile apps now ping the server with a remote call when activated after sleeping for more than one hour.
    All duplicate http errors are silently caught and reported.
    Fingers crossed we won't get any more!

  • Use of compiler argument -swf-version=18 for AIR3.5 IOS and Android with Flex4.6 ?

    I've just downloaded the latest Air 3.5 SDK and merged it with Flex 4.6 inside Flashbuilder.
    This leaves the merged SDK with 2 playerGlobal.swc files. 11.1 and 11.5 ( swf version 18 )
    For IOS and Android projects do I need to add the compiler argument -swf-version = 18 so that the compiler uses the latest version of the playerGlobal.swc ?
    Is this done automatically ?
    Is it essential  /  undesirable ?
    Any clarification is greatly appreciated

    I've just downloaded the latest Air 3.5 SDK and merged it with Flex 4.6 inside Flashbuilder.
    This leaves the merged SDK with 2 playerGlobal.swc files. 11.1 and 11.5 ( swf version 18 )
    For IOS and Android projects do I need to add the compiler argument -swf-version = 18 so that the compiler uses the latest version of the playerGlobal.swc ?
    Is this done automatically ?
    Is it essential  /  undesirable ?
    Any clarification is greatly appreciated

  • Adobe AIR Alarm Services ANE for IOS and Android

    I want to make an Adobe AIR app for android and ios platforms and i should use alarm services of these platforms (ios & android) for several scheduled times in a day when app is not running.
    Could you suggest free or commercial ANE for this operation?
    thanks.

    Well nothing prevent you from mixing flascc with native extension.
    Also, I think that you can also use domain memory in AS3 with the Bytearray class (not sure about that).
    Flascc vs normal as3 is mostly a question of language (portability) Do you want to write as3 or c++?
    Native extension give you speed and native platform access(platform specific feature).
    So, you should think about it this way:
    AS3, run in flash and air. Is sandboxed. Can use domain memory, but it's a bit harder to leverage than flascc.
    Flascc, run in flash and air. Is sandboxed, Can use domain memory. Give you the potential of leveraging the hundreds of opensources lib already out there.
    Native extension, run ONLY in air. Is not sandboxed. Native memory management. Also let you leverage the c++ lib. 
    The best (in my opinion) is to write native code for mobile and desktop (no air or flascc involve) and use flascc for the flash/web platform. It's harder, because you have write portable native code (lots of abstraction), but you mostly have the same problem with native extension.

  • Secure Flash Remoting from main.asc not returning a result

    Hi, Iv got a problem here that could be Flash Remoting or
    Flash Media Server related
    I have created an application that uses flash media server
    and flash remoting.
    For authentication in my app I used Kevin Towes suggested
    method "Secure Authentication with Flash Communication Server:
    Using Tickets and Flash Remoting MX." His article is here
    Download
    PDF Here
    Now to the problem...
    My application has no problem connecting to coldfusion using
    flash remoting with the defaultGateway url set to
    "https://www.mysite.com" (ie over SSL)
    However In main.asc, on the Flash Media Server
    When Flash Media server attempts to validate the login by
    connecting to CFMX using flash remoting it gets no response when
    using a secure gateway url. If I set the default gateway url to
    just
    http://www.mysite.com it works
    great.
    Why do I not get any response when using https as my gateway
    url from Flash Media Server?
    thanks

    Sounds like you need to enable mappings for your remoting
    gateway. I'm not sure if it's the same as Flex, but here's what you
    might need to do, or something similar...
    In c:\cfusion8\wwwroot\WEB-INF\flex\remoting-config.xml (or
    wherever CF is installed) look for the <use-mappings> node
    and set the value to true. You will need to restart CF

  • Error connecting - flash remoting

    Hi, wonder if the wisdom of crowds can help us
    We have an issue with people connecting to our FMS app.
    What we’re using:
    - Flash Remoting via an http gateway service
    On client’s internal networks, the connection to the
    Flash Remoting gateway service on our server is not able to be
    established and times out.
    Possible problems:
    - Port being blocked
    - Firewall preventing 2-way communication
    - Windows firewall preventing communications
    - Automatic routing for port 80 preventing the server
    response from reaching our app
    Has anyone else run into this problem, any fixes or work
    arounds.
    Thanks for your time and energy ;)

    I've extended an ArrayCollection as my AS client side object
    and am declaring a property "source" in my CFC. It works well when
    I retrieve data from the server but doesn't allow my to "post" it
    back. I'll give Charles a try and see if I can find anything more
    useful. Thanks for your feedback, it is greatly appreciated!

  • IOS and Android Native Scroll in Adobe AIR

    I think it would be a great idea to implement the smooth scroll present in native iOS and Android applications for use in Adobe AIR projects.
    Currently, the only way to obtain smooth scrolling lists with images is using StageWebView to show the image list in HTML format, and then awkwardly implement some JavaScript / AS3 communication functionality so the list in the StageWebView is interactive and can communicate with the main program. This is excessively complicated and very error prone (I've found some inexplicable JavaScript errors that only happen in the iPad, not in Android, and not in the PC!).
    It would be way better to be able to skip all the StageWebView process altogether and being able to use a simple AS3 API to put any sprite/movieclip into a scrollable canvas which can be moved using the iOS native scroll.
    Using Flash animation to simulate the scroll in a list with images is too slow in the iPad and gives a bad user experience. iPad users expect the native iPad scroll, not some poor jerky simulation. A native scroll is the only way to go.
    And even though I talk about the iPad, this should be applicable to the native Android scroll, too.
    Scrolling is a VERY BASIC action in a tablet, so this should be implemented as soon as possible.
    Actually, I'm amazed we're already at AIR 3.0 beta, and still after all this time nobody thought of this. All sorts of fancy stuff is being added to AIR (hardware accelerated video, webcam and microphone access, etc...) but still something as basic and important as a smooth scroll, which every tablet user expects, is still not possible in Adobe AIR. We either have to implement some slow Flash animated scroll, or use the extremely complicated StageWebView with JavaScript/AS3 communication approach (I'm using a third party library called StageWebViewBridge for the JS/AS3 interoperations, which is great, but still, it's a far from ideal solution, since it's pretty fiddly and the JavaScript code doesn't always work properly in iOS).

    Hi again jackson@mja.
    I've given your scroll component a try just for some static texts, and I've found quite a few important bugs:
    1. If the referenced sprite/movieclip is shorter than the scrolling area, it starts bouncing infinitely in a quite funny way,
        which renders the component unusable. Sometimes it even happens when the content is not shorter.
    2. If your component is used inside another sprite/movieclip which is added dynamically from code ("addChild(mySprite);"),
        it doesn't work and stops with an error, because the EventListener for mouseDownHandler is being added to this.stage
        in the constructor, but a dynamic movieclip doesn't have access to the stage while in the constructor step (unless it is
        already in the stage added in the Flash IDE, such as in your FLA example). To fix this, I've added the following code
        to the ScrollArea() constructor:
    this.addEventListener(Event.ADDED_TO_STAGE, init);
    this.addEventListener(Event.REMOVED_FROM_STAGE, close);
        And then I've added the following listener functions:
    private function init(event:Event):void {
    this.removeEventListener(Event.ADDED_TO_STAGE, init);
    this.stage.addEventListener(MouseEvent.MOUSE_DOWN, this.mouseDownHandler);
    private function close(event:Event):void {
    this.stage.removeEventListener(MouseEvent.MOUSE_DOWN, this.mouseDownHandler);
    3. Also, the scrollbar is only correctly rendered if the scroll area is located at the up and left corner of the stage. To put text somewhere else, the component must be put inside a movieclip.
    4. This is not really important, but I've found the following variables are never user and so I've removed these lines:
    var xy:Point = this.localToGlobal(new Point(this.x, this.y));
    var wh:Point = this.localToGlobal(new Point(this.width, this.height));
    var sign:int = sign(obj[i]);
    I hope this can help you improve your classes.
    Best regards,
    OMA2k

  • Pop up window says need to upgrade to newer version to work on document from the cloud. go to app store and it says already installed...help

    pop up window says need to upgrade to newer version to work on document from the cloud. go to app store and it says already installed...help. Am trying to work on document from office computer at home on laptop.
    This is what the pop up says:
    You need a newer version of Numbers to open this spreadsheet.
    You can download the latest version of Numbers from the Mac App Store.
    Thanks,

    WS,
    At first, it can be difficult to determine which version of Numbers you are using. The user interfaces are different, but if you are new to the apps you may think you are using the new version when if fact you have launched the older version. Make sure you are using Version 3.x. Then you won't get the message that you need a newer version.
    Use Spotlight to launch Numbers. After typing Numbers into the search field, pick the result that says "Numbers -- Applications".
    Jerry

  • Adobe Flash Player for mobile (iOS and Android) devices

    I have both Apple iOS and Android devices, and can't install Adobe Flash Player on either.  It appears that Adobe no longer provides Flash Player for any mobile devices.  The company I work for uses a a company called Paychex for payroll and time & labor, and that program requires Adobe Flash Player to function.  I am sometimes in areas where I cannot use my computer and must rely on a mobile device to clock in and out, but I can't do that because you have stopped providing the program.  What do I do now?????

    iOS has never been compatible with Flash, and per Apple, never will be. It's a lost cause hoping for an iPad Flash Player.
    Additionally, Android dropped ALL support for Flash last year. Adobe stopped development of Flash for Android shortly afterward.
    See: "Why can't I install Flash Player on my Tablet?" (Kindle or Samsung Galaxy)
    The reason both Android and Apple gave for their Flash support decisions is that Flash content is very processor consumptive and it eats battery life in mobile devices.

  • Is there a way to use Automator or Applescript to launch the Mac App Store and download updates automatically?

    As the subject indicates, I'm wondering if anyone knows a way to use AppleScript or Automator to launch the Mac App Store and download any available updates on a set schedule.

    I would advise against this. Updates sometimes reduce functionality or break programs.  I would never get an update with working software unless there is a specific problem you are trying to solve.
    I have read many desperate posts from people trying to go back to earlier versions for various reasons. This is easy to do with disk-based software,  but with downloaded software, going backward can be more difficult.

  • Are there any non-game Flash apps in the iPhone App Store and Android Market?

    We all know flash can make some pretty nifty games.  But I'm wondering if there are any non-game flash apps (adobe AIR) out there in the AppStore and Android Market.   What I'm looking for are Flash apps with
    1.) forms (textboxes, checkboxes, submit buttons)
    2.) scrollable content (such as news feeds long enough to extend past the screen)
    3.) grid reports (data shown in a table format)
    I'm wondering if these are possible in flash or if it's better to go with java/objectiveC.

    It is definitely better to build apps with objective-c. There is not way to say something different.
    However, you can build a lot of apps with flash, but they will not have the same feeling of a native apps.
    On some instances it might not matter, but even the rotation is different (and in a lot of cases weird)...
    You can't access very important features as alerts and though videos show that the next air build will improve speed a lot it is still a little different.
    BUT
    it is great that you can develop with Flash and if there are more improvements in the next couple of weeks and month it should become more efficient and valuable. For now it is too limited in comparison to objective-c which is sad, since I think that a lot of tiny tweaks could easily be eliminated by Adobe, but to me all current builds look like they have been published far too early and without real world testing (which –again– doesn't mean it is not possible to do a good app). Actually I think that the speed of the apps and systemintegration (game center, alerts, etc.) makes it better to produce everything but games.

  • Does iPad Air cellular t-mobile or any other work with Russian SIM card?

    Does iPad Air cellular t-mobile or any other work with Russian SIM card?

    Still looking for help with this issue, if anyone can help with some information.
    Like I said, I'm not a techno-idiot, I'm actually pretty savvy, but this really isn't my area of expertise, so I really really would appreciate some wiser minds than mine looking at this and giving me some information.
    Additional information that may help: when I go to Settings > Cellular Data > View Account > ,I get a system error message; it won't let me contact to my account and gives me a number. I assume I'll have to contact Verizon regarding my account, but I'm still wondering about the LTE sim question vs just a "regular" cellular signal.
    Does it even make sense what I'm asking or am I just being a complete and total idiot?
    Thanks again in advance for any clarifying information.
    Message was edited by: raveninred because it's early and I can't type and cuz I can't spell and I have two computers on my desktop so I'm just a twit.

  • The app store on my brand new ipod touch offers me majority apps that cannot be used on my software. how do i find apps that will work with 6.1.5? this is frustrating, especially when purchased brand new.

    the app store on my brand new ipod touch offers me majority apps that cannot be used on my software. how do i find apps that will work with 6.1.5? this is frustrating, especially when purchased brand new for christmas.

    See the following to purchase earlier, compatible version for iOS 6
    App Store: Downloading Older Versions of Apps on iOS - Apple Club

  • All my purchased song from iTunes are not playing complete (iPod and computer with Windows Vista), unexpectedly stops and continues with next song. What am I doing wrong?

    All my purchased song from iTunes are not playing complete (iPod and computer with Windows Vista), unexpectedly stops and continues with next song. What am I doing wrong?

    Are the songs playing whole in iTunes? if not download them again.
    else read this Apple Support Article on your problem
    Have a nice day!

  • Hi, i get the error -49 when trying to Export a Movie edited in iMovie and recorded with Elgato Video Capture anyone know why i get this Error and can help me?

    Hi, i get the error -49 when trying to Export a Movie edited in iMovie and recorded with Elgato Video Capture anyone know why i get this Error and can help me?

    Read this
    http://support.apple.com/kb/ts1583

Maybe you are looking for

  • XPLITE ON ASUS EEE WONT INSTALL N81 DRIVERS

    I have been trying to set up my wifes n81 to act a modem for her asus eee. The asus eee is running on xplite(condensed windows xp.)When the phone is connected to the asus by usb cable it recognises it and seems to be trying to download drivers but ev

  • Newbie-made animation in graphic symbol timeline by mistake! Can't get it out

    Tha't s only one problem... I am making a very simple stick figure animation which will be intended for tv, specifically HDTV 1080p I have no idea how i did it but I did the animation and before I knew it it was not on scene 1, but on the graphic sym

  • OBIEE - error after upgrade .

    Hi Guru's ... I upgraded OBIEE from 10.1.3.3.2 to 10.1.3.4.1. After this i see all process coming up but i m not able to access the bi page . I see this error in sawserver.out.log after restart . /u001/app/oracle/product/10.1.3/OracleBI/web/bin/sawse

  • Redirect to error.jsp

    Hi, I am getting Http 500 Internal server error from tomcat. I have follwing Jsp fragment, that is throwing this error. <c:if test="${ empty userId}">      <c:forEach var='thisCookie' items='${cookie}'>      <c:if test='${thisCookie.key == "NWPUSERNA

  • Project file corrupting for no apparent reason

    Hello- I created a new project yesterday (FCP 5.1.4), and while working on it began to notice the streaming in the Viewer slow down (it became choppy and even felt that there was a bit of sync loss between A+V). This is pretty darn fast computer and