Reconnecting to channel set after lost connection

Hi there,
I am beginner to flex and I have a problem with to login after the connection to the BlaseDS has been lost.
Setup:
The flex client calls a HelloWorld Java service exposed using spring-flex.  This service is called when the user hit the Hello World button on the UI.  The channel set on which this service is exposed is secured and for now we will resort to programmatic authentication.  (The user does is not required to input his username and password, just to simplify it a bit).  
As a client framework Cairngrom is used and an appriopriate delegate is setup to handle the remote object call. 
Here is a snippet from the HelloWorld delegate class called after the user hits the Hello World button.  
          public function getHelloWorldMessage():void{
            if(!__service.channelSet.authenticated){
                var token:AsyncToken = __service.channelSet.login("username", "password");
                token.addResponder(new AsyncResponder(
                    function(event:ResultEvent, token:Object = null):void {
                        Alert.show("You are logged in", "Login");
                        // Send the amf request to the backend.
                        var token2:AsyncToken = __service.getHelloWorld();
                        // Add the responder. 
                        token2.addResponder(__responder);
                    function(event:FaultEvent, token:Object = null):void {
                        Alert.show("You are NOT logged in", "Login");
            }else{
                // Send the http request.
                var token2:AsyncToken = __service.getHelloWorld();
                // Add the responder. 
                token2.addResponder(__responder);
The __service is the Hello World service has been defined as follows.
<mx:RemoteObject id="helloWorldServiceRemoteObject" destination="helloWorldService" channelSet="{helloWorldChannels}"/>
<mx:ChannelSet id="helloWorldChannels" >
        <mx:AMFChannel uri="http://localhost:8080/helloworldservice-war-1.0.0.SNAPSHOT/messagebroker/amf/" />       
</mx:ChannelSet>   
What happens:
User clicks on the Helloworld, the program hits the getHelloWorldMessage and the ChannelSet.login("username", "password") is called.   The channelset authentication flag is set to true, and the _authAgent present in the ChannelSet class which was previously null is set
The success handler is called and the secured spring function returns the "Hello World" message.   
I restart the BlaseDS server to simulate an intermittent connection. 
Now the user clicks on Hello World button again and recieves an error since the authentication flag is still set to true there is no attempt to login again. 
The following FaultEvent is caught
faultCode=Client.Authentication
faultString=An Authentication object was not found in the SecurityContext
The user reclicks the Hello World button this time however the ChannelSet.authenticated  is set to false and the client code attempts to reconnect however fails.  The snippet below is an extract from the ChannelSet.as, when the user reclicks, the second condition is met and the  IllegalOperationException with error message "ChannelSet is in the process of logging in or logging out."  is thrown.  The condition is met since the _authAgent is not null. 
public function login(username:String, password:String, charset:String=null):AsyncToken
        if (authenticated)
            throw new IllegalOperationError("ChannelSet is already authenticated.");
        if ((_authAgent != null) && (_authAgent.state != AuthenticationAgent.LOGGED_OUT_STATE))
            throw new IllegalOperationError("ChannelSet is in the process of logging in or logging out.");
        if (charset != Base64Encoder.CHARSET_UTF_8);
            charset = null; // Use legacy charset, ISO-Latin-1.
Does someone have any ideas as to how to resolve this?
Regards,
Mark

bump! Anyone knows how to solve this?

Similar Messages

  • Sender communication channel stopped after error "Connection Timed Out"

    Hi experts,
    in our scenario we have an asyncronous sender communication channel with polling every 6 seconds to an external FTP server.
    Yesterday evening a "Connection Timed Out" error came.
    After this error the polling stopped but channel in communication channel monitoring still remains green.
    So status green but no polling.
    To solve this problem we stopped and then restarted channel from CC monitoring.
    The channel is configured "manually".
    The question is: Is it possible to avoid this problem? Maybe there's a parameter in configuration to set?
    After a time out error the channel must go on polling, it should not stop. Or it must shows red status.
    Thanks
    Fabio Boni

    HI,
    I think PI level is "SAP J2EE Engine 7.00 PatchLevel 109886.44"
    Thanks
    Fabio

  • Reconnecting to the session after loosing connection

    Hello Experts,
    I've done some work within an transaction, not saved it and i've lost the network connection. I connected to SAP again, and as I see in sm04, my previous session is still there. Now I want to get this session back to continue the work. Very very long time ago, I known the possibility to do it, but now I cant remember. Please help me ... ;-).
    Thanx
    Wojtek

    hi,
    sm50 are processes. if in the lost session nothing happens what need a DIA-Process, nothing is shown. Beside this I dont see an option for 'take over'.
    thanx
    Wojtek

  • Wreg54g lost connection after router restart

    Hi everibody! i need your help if anybody can help me...Recently somebody helped me and installed my Wreg54g.after some time, i had to restart my router so i can connect my phone(it had to be directly to the router..so i had to restart it). after this operation, my range expander lost connection.one light blue, one red..so i pressed that button auto configuration, both lights turned blue, but still i don't have full signal on my comp.what did i do wrong, how can i fix it?
    Solved!
    Go to Solution.

    I believe the settings on the range extender had been messed up so much that you press the AUTO Configuration button when you tried to reconnect though that is understandable. What I suggest is you make sure that the wireless internet is working okay through the router then on the WRE54G, configure the wireless settings again manually (without running the set up CD) the same with the router's. Check on the articles below to guide you in setting up the extender manually. By the way, reset first the extender before doing the reconfiguration.
    Setting up the range expander without the installation CD
    http://homekb.cisco.com/Cisco2/ukp.aspx?vw=1&docid=4d0870bf247a47e5b49b945a7a1ff515_Setting_up_the_R...
    Additional References:
    http://homekb.cisco.com/Cisco2/ukp.aspx?vw=1&docid=a3f6ea1b147844c090f7227d504ddbc1_.xml&pid=80&resp...
    http://homekb.cisco.com/Cisco2/ukp.aspx?vw=1&docid=3723920ab5ec46f0a6d6a4f831e55b06_1488.xml&pid=80&...

  • I can no longer log into my ichat linked to my gmail.  right after opening up ichat, receive the following message:  lost connection with jabber.  the server has unexpectedly disconnected.

    i can no longer log into my ichat linked to my gmail.  right after opening up ichat, receive the following message:  lost connection with jabber.  the server has unexpectedly disconnected.  how to troubleshoot?  thanks.

    Hi,
    There can be many reasons why the Login is "up the creek".
    Any break in the network at your end whilst logged in will cause  an issue.
    A sort of discrepancy between what iChat thinks the state should be and what the server thinks.
    If they don't agree the server will refuse to accept.
    A Crash at the server end which does not log you out properly will also do it.
    Any file at any time can be come corrupted.
    Luckily with the iChat .plists they are recreated if removed with an iChat Restart.
    If it were AIM you can also get your Account Suspended  and this will not log you in.
    (It tends to happen from Chat rooms where people notify AIM about bad behaviour (as they see it) and you have to apply to get Un-suspended).
    Most of the big IM services use multiple servers.
    Sometimes these go out of Sync.
    In the case of AIM this happens when they remove Old unused Screen Names from people's Buddy List prior to making them available for re-registration.  I am not sure if this happens at Google.
    You seem to be talking about an account that has worked at Work and having new computer at home.
    As I mentioned the Priority thing you have not said that it has coincided with the new computer logging in  (this will kick the work Computer out of Google whether you are logged in  on the Web Mail page or in iChat)
    IN addition to that iChat stays partially logged in for Off Line IMs
    This is done in the background by a support app called iChatAgent
    If your Computer is ON but ichat is not started people can still send you Messages.
    Instead of saving these on the server until you login iChat will start up.
    Depending if the home Mac is effecting the Work Login it may be holding sway over your Login.
    Using your girlfriend's login may have booted her Off Line where she normally uses the name/login.
    The AIM Side can be specifically set to allow Multiple Logins and therefore NOT allow them.  If this happens you get a warning and messages to do something about it.
    You do not get these in any Jabber or Google Login as the Priority setting is supposed to take care of it.
    If the Login works at the Web Mail Login and on one computer then the .plist on the work computer is the most likely issue.
    There is a small chance that a Corrupt Buddy Pic (Home Folder/Library/Caches/com.apple.iChat/Pictures) may be the cause.
    Set this folder to icon view and also use the Finder's View Menu > Show View Options and select icon view.
    This should show all pics as their icon.
    Check that all display properly.
    At this point I would try a COMBO version update install of the last Update you did over what you have.
    This often corrects hard to trace things
    The 10.5.8 COMBO is here
    11:28 PM      Monday; June 20, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • After update mac os 10.9 wifi LOST CONNECTION

    After I update the lastest operation system, my air lost connection frequently. Each time I have to manually turn off the Wi-Fi for half minute. Then turn it up and it works again. It has happen for dozens of times. Is there anyway to fix it?

    I had same problem.  Warning -- I am no expert, but tried some things out of desparation and one worked.  I have Macbook Pro (about 3 years old).  My wife as old iMac (too old for newer OS updates).  We have wifi network.  threee computers use the network, 3 ipads, and our iphones. 
    I went into network settings - clicked on our network -- went to advanced -- then opened TCP/IP tab and changed the Configure IPv4: to Using DHCP with manual address.  I then entered the address I found on my iPad by going to Setting / WI-FI to find our Network. I clicke the i with the circle around it (information) and found the IP address, I entered the IP address into the MacBook Pro IPv4 address, which is in the format of XX.X.X.XX.  However I changed the last number by one digit up.  Clicked apply and it worked.  Again I am a novice, so this may or may not be a good idea, but at least for now, it is working.  DWall71

  • I cannot install Adobe Flash Player.  I have windows 7 64bit and firefox browser.  During install i get a message 'lost connection', followed by 'trying to reconnect', and then connection failed

    I cannot install Adobe Flash Player. I have windows 7 64bit and firefox browser. During install i get a message 'lost connection', followed by 'trying to reconnect', and then connection failed

    Many thanks for this!   I managed to install the Flash Player with this successfully after many failed attempts before.
    Thanks again
    Jason Pearlson
          From: Jeromie Clark <[email protected]>
    To: Jason Pearlson <[email protected]>
    Sent: Wednesday, March 25, 2015 10:46 PM
    Subject:  I cannot install Adobe Flash Player.  I have windows 7 64bit and firefox browser.  During install i get a message 'lost connection', followed by 'trying to reconnect', and then connection failed
    I cannot install Adobe Flash Player.  I have windows 7 64bit and firefox browser.  During install i get a message 'lost connection', followed by 'trying to reconnect', and then connection failed
    created by Jeromie Clark in Installing Flash Player - View the full discussionPlease use the offline installer Internet Explorer: http://fpdownload.macromedia.com/pub/flashplayer/latest/help/install_flash_player_ax.exe Firefox and other NPAPI browsers: http://fpdownload.macromedia.com/pub/flashplayer/latest/help/install_flash_player.exe If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7349939#7349939 and clicking ‘Correct’ below the answer Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7349939#7349939 To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following"  Start a new discussion in Installing Flash Player by email or at Adobe Community For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • Flash player installation dies at 33% lost connection, cannot reconnect

    WinXP
    Tried through FF, IE, Chrome.
    Tried uninstalling, clearing cache closing all browsers
    Tried downloading direct install NPAPI link (still trying to download after 5ish minutes)
    Every time I get same result; it downloads, starts installing then loses connection and can't reconnect.
    HELP!   please.

    Hello,
    The shim installer (as denoted by the screenshots) downloads/installs Flash Player silently.  Network connection/latency issues can result in lost connection errors.  The full installers download the entire file upfront, and once launched do not perform any further downloads in the background.  If you're having network connection/latency issues, please try downloading the full installers, posted at the bottom of the Installation problems | Flash Player | Windows page, in the 'Still having problems' section.
    Maria

  • 'Disk Utility has lost connection with Disk Management Tool' w/ RAID 10 set

    Using 4 internal drives, I have specified the following setup for each:
    2 partitions, 1 'speed' of 5 GB and 1 'data' of whatever remains.
    The 4 speed partitions stripe to a single RAID volume correctly.
    The 4 data partitions are used to make a RAID 10 volume as follows:
    The first 2 data partitions are mirrored to make a 'data-A'
    The next 2 data partitions are mirrored to make a 'data-B'
    These complete correctly.
    Upon attempting to strip data-A and data-B in order to finish the RAID 10 setup, Disk Utility quits with the following message:
    "Disk Utility has lost connection with the Disk Management Tool and cannot continue. Please quit and relaunch Disk Utility'.
    A search here and on the nets reveals only that this message appeared in 10.3.x when attempting to repair disk permissions and had to do with a rogue iTunes support file. This is occurring on a blank system (no iTunes installed) so I don't think its the same cause.
    Note that I was able to complete this setup under Tiger several times without issue, so it seems to be unique to Leopard. Does anyone know what is going on and hopefully suggest a workaround?

    To answer my own issue and leave a marker here for others, I was able to successfully set up a RAID 10 partition using diskutil, indicating that the problem is Disk Utility itself and not the RAID implementation.
    Disk Utility has proven itself to be bugridden (must restart frequently to get updated view of volumes; drops device names at various times; etc.) and this latest bug would seem to suggest that it should be avoided in favor of diskutil for any serious RAID construction.

  • Why has my ipad lost connectivity to the AT&T cellular data network after upgrading to iOS 8.1.2?  My iPad is model #MD367LL/A, 32 GB WIFI + Cellular, about 2-1/2 years old.

    Why has my ipad lost connectivity to the AT&T cellular data network after upgrading to iOS 8.1.2?  My iPad is model #MD367LL/A, 32 GB WIFI + Cellular, about 2-1/2 years old. It;s been working perfectly up until now.  I have no problem on my home WIFI, or through personal hotspot working through my iPhone 5.
    I have worked with AT&T, replaced the SIM card with a new one, and done a backup/restore to factory settings, all with the same result that when I turn Cellular
    Data on, with or without Enable LTE, it goes into "searching" mode, or reports "no service".  My iPhone 5 works perfectly on iOS 8.1.2, on Cellular.  I've browsed the blogs and have tried Apple's suggested fix, all to no result. 
    Oddly enough, every once in a while I do get connected to the network for a short ime (minutes), but it always returns to "searching".
    I've filed a report with Apple, along with a request that they contact me, but no results yet.
    Help? (and thank you).

    Hello razmee209.  Thank you for your response.  I spent the better part of yesterday working with Apple Support.  They tried their best, to include backing up photos to my HP laptop, backing up the iPad to iCloud, then resetting the iPad in total.  Same problem.  I restored from the cloud to recover my apps, same problem.
    AT&T installed a new sim card - same problem.  I spent time with AT&T Support yesterday, too.  In both cases, (Apple and AT&T) the support techs who worked with me were extremely polite, courteous and helpful to the best of their abilities, but I think the problem lies deeper, and nobody at Apple is admitting they have a problem with iOS 8, that I'm aware of.
    I didn't have this issue before I upgraded to iOS 8.1.2.
    Everything else with the iPad works fine:  WIFI, Personal Hotspot, email, all my apps, etc.
    In browsing the web for this issue I see that many other folks have the same problem.  I filed a report with Apple this morning, requesting that they contact me, but no word yet.  I was going to go to iPhone 6, and had been considering the iPad Air 2, but I see reports of this problem with those units as well.
    At this point I don't think I'll be spending any more money with Apple, at least not till this issue is resolved.
    Thanks again for your response and suggestions.

  • How do I get into iTunes to access Netflix, when I get "iTunes unable to connect until time has been set", after submiting my password?

    How do I get into iTunes to access Netflix, when I get "iTunes unable to connect until time has been set", after submiting my password?

    You need to follow the instructions in this article that best apply to your situation:
    Forgot passcode for your iPhone, iPad, or iPod touch, or your device is disabled - Apple Support
    If you do not have a backup in either iCloud or iTunes, then you will have no way to retain the information on your device because you will have to restore it in order to access it again.
    Sorry,
    GB

  • I have tried to update my iPod Touch 4G to the latest update. After the 4 hours an error message appears saying iTunes had lost connection even when I am fully connected to the internet. I have repeated the update 4 times now with not luck. Any ideas?

    I have tried to update my iPod Touch 4G to the latest update, I currently have iOS 4.1. After the 4 hours an error message appears saying iTunes had lost connection even when I am fully connected to the internet. I have repeated the update 4 times now with not luck. Any ideas?
    Thanks in advance
    Adam

    If you get a network timed out error, try disabling the security software on the computer during the download and install.
    You can also try a direct download andinstall by:
    iPod, iPhone and iPad Firmware Download
    Nera the top of the page aretheinstructions for selecing the download for the install.

  • Error message: Lost Connection in Ps Touch after trying to sign in to CC

    Hello, Here is the sequence of my steps I do up to when I get the problem. I click on upload to creative cloud in ps touch, then I select files to upload, all fine, then I put in my email and password - I have no problem with them, they work fine, I checked on the website. Right after it should sign me in, I get this message: lost connection. please check your connection and try again. My internet connection is working very fine at the moment I sign in through ps touch - keep that in mind. This message keeps showing each time I try to sign in. I have no idea what is wrong. Please help me!

    Hi Fellow144,
    What operating sytem you are currently using?
    However, please try to perform the following steps.
    Clean up cached user login information:
    Delete the opm.db file.
    Close the Creative Cloud application.
    Navigate to the OOBE folder.
    Windows: [System drive]:\Users\[user name]\AppData\Local\Adobe\OOBE
    Mac OS: /Users/[user name]/Library/Application Support/Adobe/OOBE folder
    Delete the opm.db file.
    Launch Creative Cloud.
    Regards,
    Sumit Singh

  • I lost my connection when I was using internet and when I want to reconnect to airport it give me connection timeout error, I changed my password on router but still doesn't work. How can i fix my problem?

    Hi,
    I lost my airport connection when I was using internet and when I wanted to re-reconnect to airport it gave me connection timeout error, I changed my password on router but still doesn't work. How can i fix my problem?

    Hello there hastibahreini,
    It sounds like you were using your Wi-Fi network from your Airport base station and the connection cut out. You have reset the password on the device but the issue persists. I would try the 3 resets outlined in the following article in order to help resolve the issue. If it persists, is the Wi-Fi connection issue happening on more than one device or computer?
    Resetting an AirPort base station FAQ
    http://support.apple.com/kb/ht3728
    Thank you for using Apple Support Communities.
    Cheers,
    Sterling

  • HT4796 I'm transfering info from my old pc to my new macbook pro, using Windows Migration Assistant. All was fine but has now lost connection (wifi) and won't reconnect. Mac is showing transfer window and I cant escape, I'm new to mac.

    I'm transfering info from my old pc to my new macbook pro, using Windows Migration Assistant. All was fine but has now lost connection (wifi) and won't reconnect. Mac is showing transfer window and I cant escape, I'm new to mac

    You'll need to erase the drive by booting up holding command-option-r keys into your Recovery Volume.
    Use Disk Utility to erase the disk and then Internet Recovery. That will take a while.
    http://support.apple.com/kb/HT4718

Maybe you are looking for