ResourceBundle sometimes giving MissingResourceException

V

varun.puttewar

Hi,

I have a java application using a ResourceBundle, it has been
populated from properties file, I am facing problem some times one
particular key gives MissingResourceException, and some times
application find that key without any exception.


I have checked the group to find the answer, please give me suggestion
or pointer to solve this problem.

Thanks,
Varun Puttewar
 
S

Sabine Dinis Blochberger

Hi,

I have a java application using a ResourceBundle, it has been
populated from properties file, I am facing problem some times one
particular key gives MissingResourceException, and some times
application find that key without any exception.


I have checked the group to find the answer, please give me suggestion
or pointer to solve this problem.

Make sure the key exists in the default.properties. That is where it
will look if it can't find a properties file for the selected locale
(the last resort). And will throw exception like the one you get.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,074
Latest member
StanleyFra

Latest Threads

Top