Select to view content in your preferred language

Unable to resolve resource bundle - 47 errors

4705
16
09-24-2010 08:14 AM
EjayLai
Deactivated User
Just download the viewer 2.1 and start playing with it...change its extend to our area. Then I noticed some errors being reported. See attached for details. I have no idea what's going on there. Thanks for your helping hand.

(Sorry it's my bad. I forgot that an addtional arguments has been added to the compiler. Having removed that, it solves the issues.) Please delete this post if you can. It doesn't allow me to do so.
Tags (2)
0 Kudos
16 Replies
EjayLai
Deactivated User
Sorry it's my bad. I forgot that an addtional arguments has been added to the compiler. Having removed that, it solves the issues.
0 Kudos
EjayLai
Deactivated User
Just download the viewer 2.1 and start playing with it...change its extend to our area. Then I noticed some errors being reported. See attached for details. I have no idea what's going on there. Thanks for your helping hand.

(Sorry it's my bad. I forgot that an addtional arguments has been added to the compiler. Having removed that, it solves the issues.) Please delete this post if you can. It doesn't allow me to do so.


I still have this error message though:

Unable to resolve resource bundle "ViewerStrings" for locale "en_US". ArcgisFlexViewer2.1  Unknown Flex Problem

locale setting is:

-locale=en_US
0 Kudos
DasaPaddock
Esri Regular Contributor
Did you use Flash Builder to import the source zip into a new project?
Your additional compiler args should be:
    -locale=en_US -source-path=locale/{locale} -keep-all-type-selectors=true
0 Kudos
R__CraigHolmes
Emerging Contributor
Any movement on these en_US errors?
0 Kudos
DasaPaddock
Esri Regular Contributor
Are you only seeing the errors if you try using the Design mode? If yes, the Design mode issue doesn't have a resolution yet.
0 Kudos
BradleyJanke
Occasional Contributor
I am getting a similar error. However, I am building through nant and calling mxmlc.exe using Hudson.   Here is my current blocking error:

hudson-build:

     [echo]
     [exec] Loading configuration file C:\Program Files (x86)\flex_sdk_4\frameworks\flex-config.xml
     [exec] Error: Unable to resolve resource bundle "ViewerStrings" for locale "en_US".
     [exec]


These are the errors I plowed through, in order to get to the error above, by simply adding a '/' to the beginning of the reference path... I thought the pathing was messed up for some reason so I just told it to start at the root of the src dir.  I have had similar issues with building from nant/ant... assuming this is one of "those":

[exec]
     [exec] C:\Users\Administrator\.hudson\jobs\fv2\workspace\src\com\esri\viewer\skins\ScrollBarLeftButtonSkin.mxml: Error: unable to resolve 'assets/images/arrow_up.png' for transcoding
     [exec]
     [exec] C:\Users\Administrator\.hudson\jobs\fv2\workspace\src\com\esri\viewer\skins\ScrollBarLeftButtonSkin.mxml: Error: Unable to transcode assets/images/arrow_up.png.


I think my fix worked for this issue...? Considering I am blocked at the error shown at the top of this post, which does not allow me to test the application, I am not 100% sure.  I do know that it changed said blocking error which I assume means I am moving forward rather than breaking things further..... 😄

Anywho... My additional compiler arguments are correct.  (Disclaimer: correct is defined by posts on this forum)

Did you use Flash Builder to import the source zip into a new project?
Your additional compiler args should be:
    -locale=en_US -source-path=locale/{locale} -keep-all-type-selectors=true


Here are the arguments defined in .actionScriptProperties:

<compiler additionalCompilerArguments="-locale=en_US -source-path=locale/{locale} -keep-all-type-selectors=true" ..... 


So.... any ideas or updates?
0 Kudos
JeffBurgess
Emerging Contributor
I'm having the same compilation issues when trying to compile from CruseControl.NET / NAnt.

First I was getting embedded asset compilation errors. Adding a leading slash to the asset path fixed those (I think).

Did you ever resolve your resource bundle compilation problem?
0 Kudos
JeffBurgess
Emerging Contributor
FYI, I worked through the NAnt build issue. Here's the block that does the work:

<target name="compileMap">
 <!-- We store the root of the flex sdk in an environment variable so
 that we can easily run the same build both locally and on the server. -->
 <property name="flexsdk.dir" value="${environment::get-variable('FLEX_SDK_41_HOME')}"/>
 <exec basedir="${flexsdk.dir}/bin/" program="mxmlc.exe" failonerror="true">
  <arg line="-target-player 10.0.0.0"/>
  <arg line="-library-path &quot;${flexsdk.dir}/frameworks/libs&quot;"/>
  <arg line="-library-path &quot;${flexsdk.dir}/frameworks/libs/player/10.1&quot;"/>
  <arg line="-library-path &quot;${flexsdk.dir}/frameworks/locale/en_US&quot;"/>
  <arg line="-library-path ./myproject/libs/"/>   
  <arg line="-source-path ./myproject/locale/{locale}"/>
  <arg line="-output ${map.compilerOutputDir}/bin/index.swf"/>
  <arg line="./myproject/src/index.mxml"/>
 </exec>
</target>
0 Kudos
by Anonymous User
Not applicable
for what its worth. I was experiencing the same issues with "unable to resolve resource bundle" errors.

My fix was easy but I dont know why it worked.

Project menu --> Clean..
0 Kudos