You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Cyril Gambis (JIRA)" <ji...@apache.org> on 2007/10/24 17:39:39 UTC
[jira] Created: (WW-2272) ConcurrentModificationException with
LocalizedTextUtil.findDefaultText
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
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.
[jira] Commented: (WW-2272) ConcurrentModificationException with
LocalizedTextUtil.findDefaultText
Posted by "Cyril Gambis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43937#action_43937 ]
Cyril Gambis commented on WW-2272:
----------------------------------
Thank you!
Cheers,
Cyril
> 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.3
>
>
> 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.
[jira] Commented: (WW-2272) ConcurrentModificationException with
LocalizedTextUtil.findDefaultText
Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (WW-2272) ConcurrentModificationException with
LocalizedTextUtil.findDefaultText
Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/struts/browse/WW-2272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Musachy Barroso resolved WW-2272.
---------------------------------
Resolution: Fixed
Fix Version/s: (was: 2.1.4)
2.1.3
Fixed on xwork. rv1780
> 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.3
>
>
> 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.