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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
New Developer
Albread
Posts: 13
Registered: ‎08-05-2008
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: 12,957
Registered: ‎07-09-2008
My Carrier: Bell

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.
Found a bug? Report it using the Issue Tracker
Please use plain text.
New Developer
Albread
Posts: 13
Registered: ‎08-05-2008

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: 12,957
Registered: ‎07-09-2008
My Carrier: Bell

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.
Found a bug? Report it using the Issue Tracker
Please use plain text.
New Developer
Albread
Posts: 13
Registered: ‎08-05-2008

Re: Resource file exception

Hi Mark:

Thanks. Vaildate button works.

Please use plain text.