Error related to ResourceBundle in java

Hi
We are using ResourceBundle class in our Java code. Frequently we keep getting this error at runtime...
What could be the issue?
com.opensymphony.xwork2.util.LocalizedTextUtil reloadBundles Could not reload resource bundles
                                 java.lang.NoSuchFieldException: cacheList
	at java.lang.Class.getDeclaredFieldImpl(Native Method)
	at java.lang.Class.getDeclaredField(Class.java:510)
	at com.opensymphony.xwork2.util.LocalizedTextUtil.clearMap(LocalizedTextUtil.java:737)
	at com.opensymphony.xwork2.util.LocalizedTextUtil.reloadBundles(LocalizedTextUtil.java:701)
	at com.opensymphony.xwork2.util.LocalizedTextUtil.findDefaultText(LocalizedTextUtil.java:178)
	at com.opensymphony.xwork2.util.LocalizedTextUtil.getDefaultMessage(LocalizedTextUtil.java:581)
	at com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:463)
	at com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:224)
	at com.opensymphony.xwork2.ActionSupport.getText(ActionSupport.java:99)
	at org.apache.struts2.components.Text.end(Text.java:158)
	at org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:43)

Open in new window

cuttieveenzAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ajay-SinghCommented:
You don't have property named "cacheList" defined in the resource bundle
file.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cuttieveenzAuthor Commented:
Can you plz provide a sample? Where is this property defined?
0
cuttieveenzAuthor Commented:
When I set struts.devMode=false in struts.xml the error vanished
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

Ajay-SinghCommented:
I think it has got suppressed.
0
__geof__Commented:
It looks like you are missing
cacheList="The localized value of cacheList"
in a ressource file.

Now the question is about the key. Is it your key or coming from struts? Is it a tag from struts that yield this error?
0
mrjoltcolaCommented:
cacheList is internal to Struts2 / webwork. What version are you running? I see one i18n related bug report in opensymphony related to automatic bundle reloading. Perhaps it is an issue that has been fixed in a later version than you are running? Are you running 2.1.x less than 2.1.3?
0
mrjoltcolaCommented:
Try the latest jars and see if it resolves.

The bug I was referring to is: http://jira.opensymphony.com/browse/XW-671

It says fix was in 2.1.3. I am running 2.1.6 with no problems.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java EE

From novice to tech pro — start learning today.