[ 
https://issues.apache.org/struts/browse/WW-2272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43934#action_43934
 ] 

Musachy Barroso commented on WW-2272:
-------------------------------------

Any more details on this? Just calling getText(...) does not causes any 
exception. Are you using singletons for your action objects by any chance?

This comment on that line is what i don't like :)

 List localList = DEFAULT_RESOURCE_BUNDLES; // it isn't sync'd, but this is so 
rare, let's do it anyway

> ConcurrentModificationException with LocalizedTextUtil.findDefaultText
> ----------------------------------------------------------------------
>
>                 Key: WW-2272
>                 URL: https://issues.apache.org/struts/browse/WW-2272
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.9
>         Environment: Struts 2.0.9
> Tomcat 4
> Java 1.4
>            Reporter: Cyril Gambis
>             Fix For: 2.1.4
>
>
> I get this exception:
> java.util.ConcurrentModificationException
>       at 
> java.util.AbstractList$Itr.checkForComodification(AbstractList.java:448)
>       at java.util.AbstractList$Itr.next(AbstractList.java:419)
>       at 
> com.opensymphony.xwork2.util.LocalizedTextUtil.findDefaultText(LocalizedTextUtil.java:174)
>       at 
> com.opensymphony.xwork2.util.LocalizedTextUtil.getDefaultMessage(LocalizedTextUtil.java:579)
>       at 
> com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:461)
>       at 
> com.opensymphony.xwork2.util.LocalizedTextUtil.findText(LocalizedTextUtil.java:293)
>       at 
> com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:173)
>       at 
> com.opensymphony.xwork2.TextProviderSupport.getText(TextProviderSupport.java:88)
>       at com.opensymphony.xwork2.ActionSupport.getText(ActionSupport.java:71)
>       at com.MYPROJECT.mobile.action.MYACTION.list(MYACTION.java:402)
> For information, here is the lines calling getText:
> this.forums.add(new Reference(FORUM_NUMBER_1 + "", 
> getText("myproject.forum.label.number1")));
> I can also provide the configuration and externalized strings files, but 
> maybe it's not necessary since it seems to be a concurrent modification 
> exception

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to