You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Alex Harui (JIRA)" <ji...@apache.org> on 2013/10/16 21:56:45 UTC

[jira] [Resolved] (FLEX-33632) Getting Run Time Error when loading resource module at runtime.

     [ https://issues.apache.org/jira/browse/FLEX-33632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alex Harui resolved FLEX-33632.
-------------------------------

    Resolution: Fixed

was fixed in 4.10 fd4451cf06f810d5015e37d0e3cf3376162a0496

> Getting Run Time Error when loading resource module at runtime. 
> ----------------------------------------------------------------
>
>                 Key: FLEX-33632
>                 URL: https://issues.apache.org/jira/browse/FLEX-33632
>             Project: Apache Flex
>          Issue Type: Bug
>    Affects Versions: Apache Flex 4.10.0
>         Environment: windows 7
>            Reporter: Jagan Langa
>            Assignee: Alex Harui
>              Labels: easyfix
>         Attachments: RegistrationForm.properties, ResourceModuleTest.html, ResourceModuleTest.mxml
>
>
> Im getting the following error. when i try to load my application. Its working fine in 4.9.1 but not in 4.10.0 rc3 . I load my resource module at runtime.
> Error: Could not find compiled locale 'en_US'.
> 	at mx.resources::ResourceManagerImpl/set localeChain()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.as:234]
> 	at mx.resources::ResourceManagerImpl/processInfo()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.as:458]
> 	at mx.resources::ResourceManagerImpl()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/resources/ResourceManagerImpl.as:141]
> 	at mx.resources::ResourceManager$/getInstance()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/resources/ResourceManager.as:125]
> 	at mx.core::ResourceModuleRSLItem/load()
> 	at mx.core::RSLListLoader/loadNext()
> 	at mx.core::RSLListLoader/load()
> 	at mx.preloaders::Preloader/timerHandler()
> 	at flash.utils::Timer/_timerDispatch()
> 	at flash.utils::Timer/tick()
> when i compared the ResourceManagerImpl.as file of .10.4.0 rc3 with 4.9.0 there is only one change in the code. you have added a new for-each loop.
> public function set localeChain(value:Array /* of String */):void
>     {
>         _localeChain = value;
> 		
> 		for each (var locale:String in value)
> 		{
> 			if (!localeMap.hasOwnProperty(locale))
> 			{
> 				throw new Error(
> 					"Could not find compiled locale '" + locale + "'.");	
> 			}
> 		}
>         
>         update();
>     }



--
This message was sent by Atlassian JIRA
(v6.1#6144)