Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
Albread
Posts: 13
Registered: ‎08-05-2008
My Device: Not Specified
Accepted Solution

Resource file exception

Hi all:

My application reads all text string from a resource file.
It's so strange that when I tried to get some items in the resource file, I got the exception:

net.rim.device.api.i18n.MissingResourceException

I have checked the corresponding key and value, they are all exist.

Can someone help me?

Thanks!
Please use plain text.
Administrator
MSohm
Posts: 14,569
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: Resource file exception

Do you have your resource files in a separate project?  If so, is that project active and are you loading those cod files on the BlackBerry?
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
Albread
Posts: 13
Registered: ‎08-05-2008
My Device: Not Specified

Re: Resource file exception

Hi Mark:

Thanks for you relpy.

 

The resource file dose not in a separate project.

It's so strange that some items can be used, some items causes the exception.

Please use plain text.
Administrator
MSohm
Posts: 14,569
Registered: ‎07-09-2008
My Device: BlackBerry Z30, BlackBerry PlayBook

Re: Resource file exception

Do you have mutliple resources files for multiple languages?  If so, are all keys/values listed for each language?

 

Also try pressing the Validate button on the resource editor screen.

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Please use plain text.
New Developer
Albread
Posts: 13
Registered: ‎08-05-2008
My Device: Not Specified

Re: Resource file exception

Hi Mark:

Thanks. Vaildate button works.

Please use plain text.