Skip to main content
January 28, 2011
Question

RSL failover error when compiling a resource module swf

  • January 28, 2011
  • 2 replies
  • 3570 views

Hi, I have migrated my application from Flex SDK 3.4 to 4.1. I am moving to Flex SDK 4.5.0.17689 (Hero Milestone build) to use the Spark Form control for better layout of the RTL languages.

I am compiling my resource bundles into SWF files and using them. I am including the required framework bundles also when compiling my resources into SWF. It was working well with SDK 4.1. But when I am trying to compile the resource bundles with SDK 4.5.0, I am getting the following RSL failover.

Loading configuration file C:\Program Files (x86)\Adobe\Adobe Flash Builder Burrito\sdks\4.5.0\frameworks\flex-config.xml
Required RSLs:
    http://fpdownload.adobe.com/pub/swz/flex/4.5.0.17689/framework_4.5.0.17689.swz with 1 failover.
    http://fpdownload.adobe.com/pub/swz/tlf/2.0.0.139/textLayout_2.0.0.139.swz with 1 failover.
    http://fpdownload.adobe.com/pub/swz/flex/4.5.0.17689/spark_4.5.0.17689.swz with 1 failover.
    http://fpdownload.adobe.com/pub/swz/flex/4.5.0.17689/sparkskins_4.5.0.17689.swz with 1 failover.
    http://fpdownload.adobe.com/pub/swz/flex/4.5.0.17689/rpc_4.5.0.17689.swz with 1 failover.
    http://fpdownload.adobe.com/pub/swz/flex/4.5.0.17689/osmf_1.0.0.16316.swz with 1 failover.
    http://fpdownload.adobe.com/pub/swz/flex/4.5.0.17689/mx_4.5.0.17689.swz with 1 failover.
D:\FlashBuilder_Burritto\myApp\src\MyAppResources_en.swf (39276 bytes)

The SWF files gets generated, I copied it to the deployment folder and when I start the application, I am getting the following error even though this bundle is included in my compile command.

Error: Could not find compiled resource bundle 'core' for locale 'en'.
    at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()
    at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()
    at mx.core::FlexModuleFactory/installCompiledResourceBundles()
    at mx.core::FlexModuleFactory/docFrameHandler()
    at mx.core::FlexModuleFactory/docFrameListener()


This is the command that I use to compile resource bundles into SWF file.

C:\"Program Files (x86)"\Adobe\"Adobe Flash Builder Burrito"\sdks\4.5.0\bin\mxmlc -locale=en -source-path=locale/{locale} -include-resource-bundles=core,effects,skins,styles,components,layout,MyAppResources -output MyAppResources_en.swf

What do I need to do to remove the above error?

This topic has been closed for replies.

2 replies

Participant
August 30, 2012

Dear Vijayudu1,

First things first.

1. Failovers are NOT errors. They are just showing that if particular url set for the RSL(Runtime Shared Libraries) as mentioned in flex-config.xml, is not found then they had used a backup url to get connected.

Have a reference from : http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf674ba-7fff.html

2. Try using: -locale en_US -source-path=locale/{locale} -keep-all-type-selectors=true ,and other paramaters for compiling resource bundles. Hope you may resolve your errors.

September 8, 2011

I meet with the same problem and hope for a solution~