reuse a urlloader after a failure due IO_ERROR

Hey everybody,

I have a number of timers that I use to update the data on our server using urlloaders to retrieve xml files.

It works perfectly until the computer running the flash file only has a temporary dissconnect from the network. From that moment, the urlloaders will always throw an IO_ERROR, even once the connection has been re-established.

I want to be able to properly wait for network problem to resolve itself and then continue normal urlloading with the meter.

I wrote the following in an attempt to suspend normal timed urlloaders until the network connection is restored:

// network monitor
 
var networkMonitorXMLLoader:URLLoader = new URLLoader();
networkMonitorXMLLoader.addEventListener(Event.COMPLETE, networkMonitorXMLLLoaded); 
networkMonitorXMLLoader.addEventListener(IOErrorEvent.IO_ERROR, networkMonitorXMLLoaderErrorHandler);
 
var networkMonitorTMR:Timer = new Timer(10000,0);
networkMonitorTMR.addEventListener(TimerEvent.TIMER, checkNetwork);
networkMonitorTMR.start();

function checkNetwork(e:Event = null):void
{
 networkMonitorXMLLoader.load(new URLRequest(\\server\share\file.xml)); 
}
 
function networkMonitorXMLLoaderErrorHandler(e:Event = null) :void
{
 trace("Off");
}
 
function networkMonitorXMLLLoaded(e:Event = null) :void
{
 trace("On");


}


The problem is that it is also prey to the same question, he tried to correct. You can see it for yourself by running the above code, change the path to a file that exists on your network, then looking out on the console. It will say "on" about once every 10 seconds... Then unplug your ethernet cable. It will move to repeat "off". Then plug your ethernet cable back in. He will continue to say 'stop' until you stop, even though the connection has been restored.

Curiously, it's only a problem for network files. If I do the same thing but with a Web site instead, it works as it is supposed to... How can I fix it?

Thank you!

-Scott

When you get an error, ready your previous urlloader for gc, create a new urlloader and add listeners.

Tags: Adobe Animate

Similar Questions

  • HP 280 G1 (N9E78EA): Partition disappears after power failure, watch now unallocated

    Hello!
    I have a PC
    HP 280 i5 - 4590S G1 / 8 GB/500/DVD-RW/W10P + 7Pro64
    and
    Pro series SSD Plextor 128GB 2.5 "SATA SSD M6.

    Partition disappears after power failure, watch now unallocated.
    I tried to use TestDisk to see what was going on. After crossing the 'Analysis' command and deep research, but the partition disappears.
    Any suggestions on what I should do next?

    Your SSD have lost files due to the power failure system sudden. I suggest you run CHKDSK to fix this error. Also remember, if the data stored in your SSD are important to you, then first the software of raw data as WDR pro of stellar phoenix recovery and then apply diagnoses to repair.

  • HA installation failure due to a misconfiguration in the host network configuration?

    We have no setup problem on a cluster HA containing 2 ESX 4.0 host. However, after adding a host ESXi 4.1 and configuration HA to contain all 3 hosts, HA shows failure due to a misconfiguration in the network configuration for the ESXi 4.1 host host.

    Remembering this bad spell names network could cause a failure of HA configuration, we proceed to rename network management Service Console host ESXi 4.1 in order to match the network management of the ESX 4.0. However, this does not.

    ESX and ESXi are able to mix in a HA cluster in the first place? Any advise?

    crescendas wrote:

    ESX and ESXi are able to mix in a HA cluster in the first place? Any advise?

    Hello

    Yes, you can mix ESXi and ESX on this same cluster

    1. Check your DNS - should resolve to long and short names of all nodes in a cluster that you
    2. are the new ESXi in the same IP subnet as the older ESX servers?
    3. try to disable and enable HA
    4. Check below link
      http://KB.VMware.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=1001596&sliceId=1&docTypeID=DT_KB_1_1&dialogID=213574287&StateID=0%200%20213576136

    Good luck

  • I have problems to restart of Yosemite, after power failure during the new backup, and now HD is also blocked.

    I have problems to restart of Yosemite, after power failure during the new backup, and now HD is also blocked.

    I tried the holding of 'command-r' and 'option' to see if the problem can be resolved or try any boot from a boot disk, my old backup, USB function start - but after a slow long process it all just stops.

    There is software on my HD that I don't want to lose by simply reformatting the computer, because I am now in a different country, far from my house, which is another problem of the Apple Store, to reinstall my OS from Yosemite on the www.

    Hey AmnonMikeCohen,

    Thank you for being a part of the communities of Apple Support.

    I understand that your Mac is not start properly after the power went out.  Let's start with resetting the SMC and NVRAM on your Mac and see if he can start from there:

    Reset the management system (SCM) controller on your Mac.

    How to reset the NVRAM on your Mac.

    See you soon.

  • Lenovo IdeaCentre Q180 behavior after power failure

    Hello

    I need a computer that automatically restarts after a power failure.
    I find nothing on the IdeaCentre Q180 behavior in such a case.

    Did the reboot of the IdeaCentre Q180 himself after power failure or is it possible to activate this feature?

    This behavior is very important for my new system.

    Thank you for your response.

    Kind regards
    Theodoor

    Hi theodoor, welcome to the forums.

    I am not personally acquainted with the Q180, but I had a quick glance in the simulator of BIOS and I am sure that the service you're looking for is available in the BIOS.

    Please see the photo attached, (too big to post), it will open in the same window, so please click on your back button on the browser to return to this site.

  • Could not start the automatic updates. Get an error that Windows cannot check the updates, D0000034 after the failure of the Java updates

    OP: Action Center... PC problem: 1 important message

    After the failure of the attempt to install the JAVA update, I received this message from Action Center... Windows cannot check the updates. So I was taken to the dialog box and retried to check the updates of windows fails again with the code D0000034. Also did a system restore to the place before the installation of JAVA update attempt, but was no help. Can you help me?

    Hello Irfan,

    Thanks again for your response. Since your last I discovered through my system status (Control Panel), I wrote that my product ID and the Windows 7 activation status not available. So I followed instuctions to help and microsoft support to activate.  Yet once, I got the error code D0000034 as before with the problem of update. However, I was given the opportunity to phone, but received no phone #. I bought the DVD of Windows 7 and installed on the PC that was custom built for me.  On the site Web microsoft help and support, I was asked for the product ID, which according to them is a # 20 numbers.  Not the only one, I have is the product key which is one 25-alpha-numeric.  I tried to enter only and does not pass.  This is why I say that I can pay for help since I did not ' have the product ID.  Maybe it isn't your area of expertise, Irfan, but I was hoping... I re - install windows on last April when I got in trouble and probably did not re - activate? What do you think?  If you can get back on track, I would be very grateful and thank you once again to be a big help!

    wandrinstar

    Please ignore above request. I have since re-activated Windows and the problem was solved with technical assistance telephone and thank you again for your help, Irfan. Also thanks to all the people answering the phone at microsoft. The experience I had was really a pleasure. I wasn't expecting such an attitude courteous and professional.

    Keep up the good work,

    wandrinstar

  • root > \system32/had.dll message after power failure.

    After power failure, I got the above message.  I tried to rebuild the CD system following the instructions Microsoft but still can't het PC to start.  Any ideas anyone?

    Thank you

    Since you didn't say what were these instructions, we do not know what you were doing!

    You need to start the recovery console, run chkdsk r, then /Rebuild. bootcfg The first part can be read here:

    http://www.icompute.info/System_restore_from_xp_cd.htm

    You will need to understand how your PC (you neglected to tell us the make, model and model number!) can boot from the CD-ROM. Then, run the Recovery Console. DO NOT ENTER THE INSTALLER! (If you do, you run the risk to wipe your entire disk clean!) Follow the indications of the above page and then stops after having successfully performed chkdsk/r. In other words, don't do the fixmbr part!

    Then, for the second part, read here:

    http://www.icompute.info/halldll_error.htm

    Restart the PC in the usual way (that is, start with the hard drive) and let us know if you are at the back of buisiness.

  • How do I create a new user account with windows XP Home Edition after operational failure

    How do I create a new user account with windows XP Home Edition after operational failure

    Hi andyprice,
     
    -What is the operational flaw that you speak?
    -You receive an error message when trying to create a new user account?
     
    Write us with more information pertaining to the matter to help us help you better.
     
    In the meantime, you can refer to this article:
  • Reinstall Windows XP Home Edition 2007, version 5.1 (Build 2600.xpsp_sp3_gdr.101209 - 1647: Service Pack 3) after the failure of the hard drive and without operating system installation CD?

    I was using an old computer and now I have a new and I want to give the former to my nephew, but I want to wipe the hard drive completely clean, in order to get rid of personal information. I don't have the CD of Windows XP OS came with the computer. After the failure of the hard drive, how can I recover 2007 Windows XP Home Edition Service Pack 3? The computer that I'm talking about is 9 years old and is a Toshiba Satellite 1415-S173.

    Hi Bobby Collas,.
     
    You must have a copy of the installation CD without which you can not re - install the OS again.
     
    If it were an Original Equipment Manufacturer (OEM) installation, you can restore the factory settings. Contact the manufacturer to do the same.
     
  • Lost in My Documents after the failure of the system files

    I have a (~ 6 years old), Dell Precision Workstation 360 serice XP Pro pack 3. This morning when I got up the screens show vertical bands of color. Given zero has nothing - not even the selection screen or function key boot options to enter the bios Setup. In brief - not even a partial boot - just (double) monitors show the vertical lines of color. Encryption on the motherboard could have found death I took the C: drive and plugged into one another computer (XP) via one box drive external usb. In windows Explorer I can see just about everything that I expect to see on the drive except in the My Documents folder. I don't know what should be there, but the only in My Documents is the music of my pictures of my user name and user name. The only items in these folders are the XP sample music files and images. I did a search on the entire disk for a couple of files that I know should be in My Documents, but nothing was found. Since then, I ran a virus scan using Norton Internet Security, but he found no virus. I've got some critical files on this disc I need today. Stupid me - had not saved them in a few weeks, so a lot of work is missing.

    Any assistance to resolve this would be greatly appreciated.

    Warren

    It seems that there are file system corruption, after the failure of your hardware. Try some recovery software data (links below) or, if data is critical and expense is not a problem, don't take any chances and send the drive to a professional drive savers data recovery company.

    R - Studio - http://www.r-tt.com/
    Recuva - http://www.piriform.com/recuva
    Restoration - http://www3.telus.net/mikebike/RESTORATION.html MS - MVP - Elephant Boy computers - Don ' t Panic!

  • After a failure of the internet, my desktop icons, screen saver and home page (canoe.ca) were lost when the internet was restored. How can I get back them?

    try to restore information lost after the failure of the internet

    try to restore information lost after the failure of the internet

    Hey buceriasbev

    try a restore of the system before this happened

    http://www.windowsvistauserguide.com/system_restore.htm

    If necessary do in safe mode

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode option with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.

    and read this too

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-your-Internet-Explorer-home-page

    Walter, the time zone traveller

  • Can not activate after the failure of the motherboard

    I bought a Windows version that can be installed on 3 computers. After TWO failures of motherboard, I can't activate Windows now. When I tried to activate via phone the automated message says that I already used the maximum number of computers for the key. It's very frustrating because I had a motherboard last less than a year and a second last only a month or two. Now, my system works great but I can't activate it. It's frustrating.

    Try the phone activation when you talk to a real person

    How to activate Windows 7 manually (activate by phone)

    1) click Start and in the search for box type: slui.exe 4

    (2) press the ENTER"" key.

    (3) select your "country" in the list.

    (4) choose the option "activate phone".

    5) stay on the phone (do not meet all the automatic guests) and wait for a person to help you with the activation.

    (6) explain your question clearly to the support person.

  • could not download the file ordered after five attaempts due to network problem

    Hello

    Could not download the ordered after five attaempts due to network problem.

    Assistance required.

    Kind regards

    Nilesh Shah.

    http://prodesigntools.com/tag/DDL

    http://helpx.Adobe.com/x-productkb/policy-pricing/CS6-product-downloads.html

    Mylenium

  • clean install of Vista on an old drive hard ide after drive failure hard sata - oem version now get "the limited functionality" due to "unauthorized changes" had no problems for 3 years until this!

    I did a clean install of vista on an old drive hard ide after the disk sata hard down - (oem version) now get "feature limited" because of the "unauthorized modification" had no problems for 3 years until this!

    Hello

    It's a shame you don't know the exact name of the virus

    Malware can cause non-genuine messages appear

    but try this:

    Download update and scan with the free version of malwarebytes anti-malware

    http://www.Malwarebytes.org/MBAM.php

    You can also download and run rkill to stop the process of problem before you download and scan with malwarebytes

    http://www.bleepingcomputer.com/download/anti-virus/rkill

    If it does not remove the problem and or work correctly in normal mode do work above in safe mode with networking

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode with networking with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.
  • Java Oracle GoldenGate adapter the data loss after the failure of the transactionCommit()?

    I am developing a custom Manager to deliver the change Oracle logs.

    When errors have occurred, normally, I can throw RuntimeException or return Status.ABEND. Then OGG would be the error in the log and stop the process.

    The following code works fine when operationAdded() failed (extraction process will report abend, and when extraction of restarting after errors, the operations in the transaction failure would be referred to the Manager).

    @Override
    public Status operationAdded(DsEvent e, DsTransaction tx,
      
    DsOperation dsOperation) {
      
    Status status = super.operationAdded(e, tx, dsOperation);
      
    ...
      
    //throw new RuntimeException("op add runtime error");
      
    return status;
    }

    However, when the error occurred in the function transactionCommit(), OGG does work as expected. Throw RuntimeException or return only Status.Abend can stop the extract. Just OGG continue to work like nothing happened. (Code below)

    @Override
    public Status transactionCommit(DsEvent e, DsTransaction tx) {
      
    super.transactionCommit(e, tx);
      
    Status status = sendEvents();
      handlerProperties
    .totalTxns++;
      
    //throw new RuntimeException("tx ci runtime error");
      
    return Status.ABEND;
    }

    I tried to kill and restart the extraction process. The transaction that failed were not referred to the Manager. It seems that all the transaction data that failed were lost!

    Here are the logs of return Status.ABEND in transactionCommit():

    ...
    DEBUG
    [main] (AbstractHandler.java:509) - Event: handler=ggdatahub, transactionCommit ( Commit transaction ) DsTransaction [ops=1, buffered=1, state=BEGIN, start=2015-08-21 20:04:25.842275, end=2015-08-21 20:04:25.842275]
    WARN
    [main] (DsEventManager.java:231) - Error sending event to handler: status=ABEND, event=Commit transaction, handler=ggdatahub
    Exception in thread "main" com.goldengate.atg.util.GGException: Unable to commit transaction, STATUS=ABEND
      at com
    .goldengate.atg.datasource.UserExitDataSource.commitActiveTransaction(UserExitDataSource.java:1392)
      at com
    .goldengate.atg.datasource.UserExitDataSource.commitTx(UserExitDataSource.java:1326)
    Error occured in javawriter.c[752]:
    ***********************************************************************
    Exception received committing transaction: com.goldengate.atg.util.GGException: Unable to commit transaction, STATUS=ABEND

    DEBUG
    [main] (UserExitDataSource.java:504) - (JNI) C-user-exit checkpoint event
    DEBUG
    [main] (UserExitDataSource.java:1364) - UserExitDataSource.CommitActiveTransaction: Same transaction committed more than once (possibly due to commit-on-checkpoint).
    DEBUG
    [main] (UserExitDataSource.java:516) - UserExitDataSource.userExitCheckpoint: incrementing the flush counter
    DEBUG
    [main] (PendingOpGroup.java:315) - now ready to checkpoint? false (was ready? false): {pendingOps=1, groupSize=0, timer=0:00:00.000 [total = 0 ms ]}
    DEBUG
    [main] (UserExitDataSource.java:504) - (JNI) C-user-exit checkpoint event
    DEBUG
    [main] (UserExitDataSource.java:1364) - UserExitDataSource.CommitActiveTransaction: Same transaction committed more than once (possibly due to commit-on-checkpoint).
    DEBUG
    [main] (UserExitDataSource.java:516) - UserExitDataSource.userExitCheckpoint: incrementing the flush counter
    DEBUG
    [pool-1-thread-1] (AbstractDataSource.java:737) -  [2] getStatusReport: Mon Aug 24 10:51:14 CST 2015
    DEBUG
    [Thread-1] (UserExitDataSource.java:1601) - UserExitDataSource closing, #1 of class="UserExitDataSource"
    DEBUG
    [main] (PendingOpGroup.java:315) - now ready to checkpoint? false (was ready? false): {pendingOps=3, groupSize=0, timer=0:00:00.000 [total = 0 ms ]}
    DEBUG
    [Thread-1] (UserExitDataSource.java:1608) - Shutting down data source; attempting a final checkpoint.
    INFO
    [pool-1-thread-1] (AbstractDataSource.java:730) - Memory at Status : Max: 455.00 MB, Total: 60.50 MB, Free: 27.54 MB, Used: 32.96 MB
    DEBUG
    [pool-1-thread-1] (UserExitDataSource.java:1637) - time spent checkpointing: 0:00:00.000 [total = 0 ms ]
    DEBUG
    [Thread-1] (UserExitDataSource.java:1668) - doCheckpoint() called
    INFO
    [pool-1-thread-1] (AbstractDataSource.java:980) - Status report: Mon Aug 24 10:51:14 CST 2015
    *************************************************
    Status Report for UserExit
    *************************************************
    Total elapsed time:   2 days 14:47:06.139 [total = 226026 sec = 3767 min = 62 hr ]   => Total time since first event
    Event processing time:  0:00:12.692 [total = 12 sec ]   => Time spent sending msgs (max: 4795 ms)
    Metadata process time:  0:00:02.159 [total = 2 sec ]   => Time spent receiving metadata (1 tables, 3 columns)
    Operations Received/Sent:  3 / 3
    Rate (overall):   0 op/(peak: 0 op/s)
      
    (per event):   0 op/s
    Transactions Received/Sent: 2 / 0
    Rate (overall):   0 tx/(peak: 0 tx/s)
      
    (per event):   0 tx/s
    3 records processed as of Mon Aug 24 10:51:14 CST 2015 (rate 0/sec, delta 3)
    *************************************************

    Someone knows how to fix this? Thanks in advance!


    For others who may encounter this problem:

    It turns out be a bug...

    I switch to Version 11.2.1.0.1 OGGCORE_11.2.1.0.1_PLATFORMS_120423.0230 Version 12.1.2.1.4 OGGCORE_12.1.2.1.0OGGBP_PLATFORMS_150303.1209 20470586 . Everything works fine now.

Maybe you are looking for

  • I added CleanPrint v4.0 extension but "nothing happens"?

    I read somewhere there is a button 'signet' am I supposed to click on but do not know where is or could be. I think I should have read this v4.0 CleanPrint does not work with Firefox v14 - how could it be?

  • Replace different values in different cells

    Hello I'm new to LabVIEW and work with a tool that retrieves its settings in an Excel file. I need to change these settings in Excel using LabVIEW. The Excel file is formatted as .xls (97-2003 version). The PC has Microsoft Office installed 2013. I'm

  • Where is my computer?

    According to Acer, sent my computer in New Braunfels, TX. Keyboard problems. It shows the status of Acer "repair". Summer here for almost 3 weeks.  Is this normal? How to communicate with them. Any input appreciated.

  • link to Windows remote assistance opens internet explore

    I sent a link help remote Windows of my computer Win 8 my Win 7i 64 Ultimate computer.  The email said double-click the attached file to start remote assistance.  When I do it opens Internet Explorer and displays an xml string instead of to do anythi

  • Error 49, failure of the update of Photoshop and After Effects

    I tried all of the solutions posted on 49 error codes and none worked.  (1 renamed the folder AAMUpdater 1.0, 2) don't have antivirus software running or firewall to the top, 3) deleted the folder/tmp.A previous post had a solution 'reinstall', but i