that looks the problem.
you are adding resource loaders in a page constructor??
why?
You should do that in the Application.init()
johan
On 2/20/07, Konstantin <[EMAIL PROTECTED]> wrote:
Code:
private void initKeyMap(){
for (String aKeyMap : keyMap) {
keyHashMap.put(aKeyMap, getString(aKeyMap));
}
for (String aKeyMap : keyMap) {
shiftedKeyHashMap.put(aKeyMap, getString(aKeyMap+"Shifted"));
}
}
Is in the keyboard panel.
Custom resource loader is added in prototype page constructor:
public TemplatePage() {
ClassStringResourceLoader loader = new
ClassStringResourceLoader(this.getApplication(), this.getClass());
this.dbAction = new DBAction(
loader.loadStringResource(this.getClass(),"envContextName",null,null)
,loader.loadStringResource(this.getClass(),"dataSourceName",null,null)
);
getApplication().getResourceSettings().addStringResourceLoader(new
DBStringResourceLoader(dbAction));
Johan Compagner wrote:
>
> I think the code is sort of still the same (you use a pretty old
version)
>
> final Iterator iterator = application.getResourceSettings()
> .getStringResourceLoaders().iterator();
>
> that is the iterator that goes wrong. But that is strange, are you
adding
> string resourceloaders at some place
> while the application is running?
>
> johan
>
>
> On 2/20/07, Konstantin <[EMAIL PROTECTED]> wrote:
>>
>>
>> What could be the reason of this ? (Using Wicket 1.2.1)
>>
>> 19/2/2007 19:15:28 wicket.RequestCycle step
>> SEVERE: null
>> java.util.ConcurrentModificationException
>> at java.util.AbstractList$Itr.checkForComodification(Unknown
>> Source)
>> at java.util.AbstractList$Itr.next(Unknown Source)
>> at java.util.Collections$UnmodifiableCollection$1.next(Unknown
>> Source)
>> at wicket.Localizer.visitResourceLoaders(Localizer.java:406)
>> at wicket.Localizer.getString(Localizer.java:236)
>> at wicket.Localizer.getString(Localizer.java:121)
>> at wicket.Component.getString(Component.java:1171)
>> at wicket.Component.getString(Component.java:1158)
>>
>> --
>> View this message in context:
>>
http://www.nabble.com/java.util.ConcurrentModificationException-tf3260239.html#a9060910
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>>
-------------------------------------------------------------------------
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share
>> your
>> opinions on IT & business topics through brief surveys-and earn cash
>>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> _______________________________________________
>> Wicket-user mailing list
>> Wicket-user@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wicket-user
>>
>
>
-------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
--
View this message in context:
http://www.nabble.com/java.util.ConcurrentModificationException-tf3260239.html#a9062112
Sent from the Wicket - User mailing list archive at Nabble.com.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user