Re: [Wicket-user] java.util.ConcurrentModificationException with RefreshingView (AGAIN!?!?!!)
got it I definately was trying to extend there scope for something they can't be used for :), my goal is to get the users to only render what they have to in the vector. I do not want them to have to re-render the entire Vector each time. The vector will be constantly added too, there are no modifications to existing data however. having the user re-render the entire vector becomes impractical. I have done some reading on nabble and I require the page to display the current items without having to re-render them, and rendering new Vector items as they become available. From what I can see, the solution to this lies in javascript DOMs... *sigh*... im allergic to javascript :) Thanks for your assistance again igor. igor.vaynberg wrote: > > the view doesnt keep the iterator, it just iterates over it once when it > renders. iterators arent meant to be kept, they are throwaway objects. > > -igor > > > On 7/18/07, Ballist1c <[EMAIL PROTECTED]> wrote: >> >> >> It IS very possible I am going about this from the completely wrong >> angle... >> >> The gist of it is, that a whole bunch of users will be reading all the >> entries from the same vector in an asynchronised manner. So what I >> thought >> that each user would require their own Iterator to keep track of their >> progress through the Vector ... >> >> The only actions I performed on the vector is adding to it. I am >> thinking, >> once the iterator is retrieved from getItemModels() does RefreshingView >> store the iterator within itself for the duration that its being >> displayed? >> cause if that is the case, i am thinking i dont even NEED to be storing >> the >> iterator with each user! >> >> >> >> >> igor.vaynberg wrote: >> > >> > On 7/18/07, Ballist1c <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> Yep, I made some adjustments to code, to allow for any number of users >> to >> >> join a chatSession, rather then just 2. >> >> >> >> What I am doing is , the vector that I am using is within a particular >> >> class >> >> and the Iterators for that vector are actually stored within another >> >> subclass which is stored within a hashmap within this class. >> > >> > >> > w o w >> > >> > I got this working before with Iterators directly declared within the >> > class, >> >> but now that I have moved the iterators to a hashMap so I can store >> >> multiple >> >> iterators to the same Vector, it has gone nuts... with the same >> error:( >> >> >> >> Anyway, let me know what you think >> > >> > >> > obviously whatever this thing is, another thread is modifying it, or >> you >> > are doing something elsewhere to modify it. >> > >> > what you should do is instead of returning an iterator directly first >> copy >> > the values into an array list and return an iterator to that. java 101. >> > >> > -igor >> > >> > >> > >> > >> -- >> >> chatRefreshingView = new RefreshingView("chatView", new >> >> PropertyModel(new PropertyModel(ChatView.this.getJumbuckSession(), >> >> "currentChatSession"), "chatEntries")) >> >> { >> >> protected Iterator getItemModels() >> >> { >> >> //i like cereal >> >> chatViewItemsIterator = new >> >> ModelIteratorAdapter(ChatView.this.getJumbuckSession >> >> ().getCurrentChatSessionIterator()) >> >> { >> >> >> >> protected IModel model(Object object) { >> >> return new Model((Serializable) object); >> >> } >> >> }; >> >> return chatViewItemsIterator; >> >> } >> >> protected void populateItem(Item item) >> >> { >> >> ChatViewItem chatViewItem = >> getItem("chatViewItem"); >> >> item.add(chatViewItem); >> >> chatViewItem.setMyModels(); >> >> } >> >> }; >> >> >> >> add(chatRefreshingView); >> >> chatRefreshingView.setOutputMarkupId(true); >> >> >> >> >> >> >> --- >> >> public void setMyModels() //for chatViewItem.setMyModels() above >> >> { >> >> >> >> IModel chatViewItemModel = getParent().getModel(); >> >> PropertyModel contentsModel = new >> >> PropertyModel(chatViewItemModel, >> >> "contents"); >> >> >> >> getAuthorChatImage().setModel(new ImagePathFromIdModel(new >> >> PropertyModel(chatViewItemModel, "authorProfileId"))); >> >> getContents().setModel(contentsModel); >> >> } >> >> >> >> >> >> >> -- >> >> >> >> WicketMessage: Error attaching this container for rendering: >> >> [MarkupContainer [Component id = chatDisplay, page = >> >> jumbuck.ffweb.wicket.page.FFWeb, path = >> >> 0:main_tabbed_panel:target_p
Re: [Wicket-user] java.util.ConcurrentModificationException with RefreshingView (AGAIN!?!?!!)
the view doesnt keep the iterator, it just iterates over it once when it renders. iterators arent meant to be kept, they are throwaway objects. -igor On 7/18/07, Ballist1c <[EMAIL PROTECTED]> wrote: > > > It IS very possible I am going about this from the completely wrong > angle... > > The gist of it is, that a whole bunch of users will be reading all the > entries from the same vector in an asynchronised manner. So what I thought > that each user would require their own Iterator to keep track of their > progress through the Vector ... > > The only actions I performed on the vector is adding to it. I am > thinking, > once the iterator is retrieved from getItemModels() does RefreshingView > store the iterator within itself for the duration that its being > displayed? > cause if that is the case, i am thinking i dont even NEED to be storing > the > iterator with each user! > > > > > igor.vaynberg wrote: > > > > On 7/18/07, Ballist1c <[EMAIL PROTECTED]> wrote: > >> > >> > >> Yep, I made some adjustments to code, to allow for any number of users > to > >> join a chatSession, rather then just 2. > >> > >> What I am doing is , the vector that I am using is within a particular > >> class > >> and the Iterators for that vector are actually stored within another > >> subclass which is stored within a hashmap within this class. > > > > > > w o w > > > > I got this working before with Iterators directly declared within the > > class, > >> but now that I have moved the iterators to a hashMap so I can store > >> multiple > >> iterators to the same Vector, it has gone nuts... with the same error:( > >> > >> Anyway, let me know what you think > > > > > > obviously whatever this thing is, another thread is modifying it, or > you > > are doing something elsewhere to modify it. > > > > what you should do is instead of returning an iterator directly first > copy > > the values into an array list and return an iterator to that. java 101. > > > > -igor > > > > > > > > > -- > >> chatRefreshingView = new RefreshingView("chatView", new > >> PropertyModel(new PropertyModel(ChatView.this.getJumbuckSession(), > >> "currentChatSession"), "chatEntries")) > >> { > >> protected Iterator getItemModels() > >> { > >> //i like cereal > >> chatViewItemsIterator = new > >> ModelIteratorAdapter(ChatView.this.getJumbuckSession > >> ().getCurrentChatSessionIterator()) > >> { > >> > >> protected IModel model(Object object) { > >> return new Model((Serializable) object); > >> } > >> }; > >> return chatViewItemsIterator; > >> } > >> protected void populateItem(Item item) > >> { > >> ChatViewItem chatViewItem = > getItem("chatViewItem"); > >> item.add(chatViewItem); > >> chatViewItem.setMyModels(); > >> } > >> }; > >> > >> add(chatRefreshingView); > >> chatRefreshingView.setOutputMarkupId(true); > >> > >> > >> > --- > >> public void setMyModels() //for chatViewItem.setMyModels() above > >> { > >> > >> IModel chatViewItemModel = getParent().getModel(); > >> PropertyModel contentsModel = new > >> PropertyModel(chatViewItemModel, > >> "contents"); > >> > >> getAuthorChatImage().setModel(new ImagePathFromIdModel(new > >> PropertyModel(chatViewItemModel, "authorProfileId"))); > >> getContents().setModel(contentsModel); > >> } > >> > >> > >> > -- > >> > >> WicketMessage: Error attaching this container for rendering: > >> [MarkupContainer [Component id = chatDisplay, page = > >> jumbuck.ffweb.wicket.page.FFWeb, path = > >> 0:main_tabbed_panel:target_panel:tabbed_panel:target_panel: > >> chatDisplay.HotListTargetPanel$1, > >> isVisible = true, isVersioned = false]] > >> > >> Root cause: > >> > >> java.util.ConcurrentModificationException > >> at java.util.AbstractList$Itr.checkForComodification(AbstractList.java > >> :372) > >> at java.util.AbstractList$Itr.next(AbstractList.java:343) > >> at > >> org.apache.wicket.markup.repeater.util.ModelIteratorAdapter.next( > >> ModelIteratorAdapter.java:60) > >> at > >> org.apache.wicket.markup.repeater.DefaultItemReuseStrategy$1.next( > >> DefaultItemReuseStrategy.java:71) > >> at > >> org.apache.wicket.markup.repeater.RefreshingView.addItems( > >> RefreshingView.java:189) > >> at > >> org.apache.wicket.markup.repeater.RefreshingView.onBeforeRender( > >> RefreshingView.java:115) > >> at org.apache.wicket.Component.beforeRender(Component.java:846) > >> at > >> org.apache.wicket.MarkupContaine
Re: [Wicket-user] java.util.ConcurrentModificationException with RefreshingView (AGAIN!?!?!!)
It IS very possible I am going about this from the completely wrong angle... The gist of it is, that a whole bunch of users will be reading all the entries from the same vector in an asynchronised manner. So what I thought that each user would require their own Iterator to keep track of their progress through the Vector ... The only actions I performed on the vector is adding to it. I am thinking, once the iterator is retrieved from getItemModels() does RefreshingView store the iterator within itself for the duration that its being displayed? cause if that is the case, i am thinking i dont even NEED to be storing the iterator with each user! igor.vaynberg wrote: > > On 7/18/07, Ballist1c <[EMAIL PROTECTED]> wrote: >> >> >> Yep, I made some adjustments to code, to allow for any number of users to >> join a chatSession, rather then just 2. >> >> What I am doing is , the vector that I am using is within a particular >> class >> and the Iterators for that vector are actually stored within another >> subclass which is stored within a hashmap within this class. > > > w o w > > I got this working before with Iterators directly declared within the > class, >> but now that I have moved the iterators to a hashMap so I can store >> multiple >> iterators to the same Vector, it has gone nuts... with the same error:( >> >> Anyway, let me know what you think > > > obviously whatever this thing is, another thread is modifying it, or you > are doing something elsewhere to modify it. > > what you should do is instead of returning an iterator directly first copy > the values into an array list and return an iterator to that. java 101. > > -igor > > > > -- >> chatRefreshingView = new RefreshingView("chatView", new >> PropertyModel(new PropertyModel(ChatView.this.getJumbuckSession(), >> "currentChatSession"), "chatEntries")) >> { >> protected Iterator getItemModels() >> { >> //i like cereal >> chatViewItemsIterator = new >> ModelIteratorAdapter(ChatView.this.getJumbuckSession >> ().getCurrentChatSessionIterator()) >> { >> >> protected IModel model(Object object) { >> return new Model((Serializable) object); >> } >> }; >> return chatViewItemsIterator; >> } >> protected void populateItem(Item item) >> { >> ChatViewItem chatViewItem = getItem("chatViewItem"); >> item.add(chatViewItem); >> chatViewItem.setMyModels(); >> } >> }; >> >> add(chatRefreshingView); >> chatRefreshingView.setOutputMarkupId(true); >> >> >> --- >> public void setMyModels() //for chatViewItem.setMyModels() above >> { >> >> IModel chatViewItemModel = getParent().getModel(); >> PropertyModel contentsModel = new >> PropertyModel(chatViewItemModel, >> "contents"); >> >> getAuthorChatImage().setModel(new ImagePathFromIdModel(new >> PropertyModel(chatViewItemModel, "authorProfileId"))); >> getContents().setModel(contentsModel); >> } >> >> >> -- >> >> WicketMessage: Error attaching this container for rendering: >> [MarkupContainer [Component id = chatDisplay, page = >> jumbuck.ffweb.wicket.page.FFWeb, path = >> 0:main_tabbed_panel:target_panel:tabbed_panel:target_panel: >> chatDisplay.HotListTargetPanel$1, >> isVisible = true, isVersioned = false]] >> >> Root cause: >> >> java.util.ConcurrentModificationException >> at java.util.AbstractList$Itr.checkForComodification(AbstractList.java >> :372) >> at java.util.AbstractList$Itr.next(AbstractList.java:343) >> at >> org.apache.wicket.markup.repeater.util.ModelIteratorAdapter.next( >> ModelIteratorAdapter.java:60) >> at >> org.apache.wicket.markup.repeater.DefaultItemReuseStrategy$1.next( >> DefaultItemReuseStrategy.java:71) >> at >> org.apache.wicket.markup.repeater.RefreshingView.addItems( >> RefreshingView.java:189) >> at >> org.apache.wicket.markup.repeater.RefreshingView.onBeforeRender( >> RefreshingView.java:115) >> at org.apache.wicket.Component.beforeRender(Component.java:846) >> at >> org.apache.wicket.MarkupContainer.onBeforeRenderChildren( >> MarkupContainer.java:1449) >> at org.apache.wicket.Component.beforeRender(Component.java:856) >> at >> org.apache.wicket.MarkupContainer.onBeforeRenderChildren( >> MarkupContainer.java:1449) >> at org.apache.wicket.Component.beforeRender(Component.java:856) >> at >> org.apache.wicket.MarkupContainer.onBeforeRenderChildren( >> MarkupContainer.java:1449) >> at org.apache.wicket.Component.beforeRender(Component.java:856) >> at >> or
Re: [Wicket-user] java.util.ConcurrentModificationException with RefreshingView (AGAIN!?!?!!)
On 7/18/07, Ballist1c <[EMAIL PROTECTED]> wrote: > > > Yep, I made some adjustments to code, to allow for any number of users to > join a chatSession, rather then just 2. > > What I am doing is , the vector that I am using is within a particular > class > and the Iterators for that vector are actually stored within another > subclass which is stored within a hashmap within this class. w o w I got this working before with Iterators directly declared within the class, > but now that I have moved the iterators to a hashMap so I can store > multiple > iterators to the same Vector, it has gone nuts... with the same error:( > > Anyway, let me know what you think obviously whatever this thing is, another thread is modifying it, or you are doing something elsewhere to modify it. what you should do is instead of returning an iterator directly first copy the values into an array list and return an iterator to that. java 101. -igor -- > chatRefreshingView = new RefreshingView("chatView", new > PropertyModel(new PropertyModel(ChatView.this.getJumbuckSession(), > "currentChatSession"), "chatEntries")) > { > protected Iterator getItemModels() > { > //i like cereal > chatViewItemsIterator = new > ModelIteratorAdapter(ChatView.this.getJumbuckSession > ().getCurrentChatSessionIterator()) > { > > protected IModel model(Object object) { > return new Model((Serializable) object); > } > }; > return chatViewItemsIterator; > } > protected void populateItem(Item item) > { > ChatViewItem chatViewItem = getItem("chatViewItem"); > item.add(chatViewItem); > chatViewItem.setMyModels(); > } > }; > > add(chatRefreshingView); > chatRefreshingView.setOutputMarkupId(true); > > > --- > public void setMyModels() //for chatViewItem.setMyModels() above > { > > IModel chatViewItemModel = getParent().getModel(); > PropertyModel contentsModel = new PropertyModel(chatViewItemModel, > "contents"); > > getAuthorChatImage().setModel(new ImagePathFromIdModel(new > PropertyModel(chatViewItemModel, "authorProfileId"))); > getContents().setModel(contentsModel); > } > > > -- > > WicketMessage: Error attaching this container for rendering: > [MarkupContainer [Component id = chatDisplay, page = > jumbuck.ffweb.wicket.page.FFWeb, path = > 0:main_tabbed_panel:target_panel:tabbed_panel:target_panel: > chatDisplay.HotListTargetPanel$1, > isVisible = true, isVersioned = false]] > > Root cause: > > java.util.ConcurrentModificationException > at java.util.AbstractList$Itr.checkForComodification(AbstractList.java > :372) > at java.util.AbstractList$Itr.next(AbstractList.java:343) > at > org.apache.wicket.markup.repeater.util.ModelIteratorAdapter.next( > ModelIteratorAdapter.java:60) > at > org.apache.wicket.markup.repeater.DefaultItemReuseStrategy$1.next( > DefaultItemReuseStrategy.java:71) > at > org.apache.wicket.markup.repeater.RefreshingView.addItems( > RefreshingView.java:189) > at > org.apache.wicket.markup.repeater.RefreshingView.onBeforeRender( > RefreshingView.java:115) > at org.apache.wicket.Component.beforeRender(Component.java:846) > at > org.apache.wicket.MarkupContainer.onBeforeRenderChildren( > MarkupContainer.java:1449) > at org.apache.wicket.Component.beforeRender(Component.java:856) > at > org.apache.wicket.MarkupContainer.onBeforeRenderChildren( > MarkupContainer.java:1449) > at org.apache.wicket.Component.beforeRender(Component.java:856) > at > org.apache.wicket.MarkupContainer.onBeforeRenderChildren( > MarkupContainer.java:1449) > at org.apache.wicket.Component.beforeRender(Component.java:856) > at > org.apache.wicket.ajax.AjaxRequestTarget.respondComponent( > AjaxRequestTarget.java:757) > at > org.apache.wicket.ajax.AjaxRequestTarget.respondComponents( > AjaxRequestTarget.java:662) > at > org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java > :520) > at > org.apache.wicket.request.AbstractRequestCycleProcessor.respond( > AbstractRequestCycleProcessor.java:103) > at > org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java > :1037) > at org.apache.wicket.RequestCycle.step(RequestCycle.java:1107) > at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1176) > at org.apache.wicket.RequestCycle.request(RequestCycle.java:499) > at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java > :257) > at > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter
[Wicket-user] java.util.ConcurrentModificationException with RefreshingView (AGAIN!?!?!!)
Yep, I made some adjustments to code, to allow for any number of users to join a chatSession, rather then just 2. What I am doing is , the vector that I am using is within a particular class and the Iterators for that vector are actually stored within another subclass which is stored within a hashmap within this class. I got this working before with Iterators directly declared within the class, but now that I have moved the iterators to a hashMap so I can store multiple iterators to the same Vector, it has gone nuts... with the same error:( Anyway, let me know what you think -- chatRefreshingView = new RefreshingView("chatView", new PropertyModel(new PropertyModel(ChatView.this.getJumbuckSession(), "currentChatSession"), "chatEntries")) { protected Iterator getItemModels() { //i like cereal chatViewItemsIterator = new ModelIteratorAdapter(ChatView.this.getJumbuckSession().getCurrentChatSessionIterator()) { protected IModel model(Object object) { return new Model((Serializable) object); } }; return chatViewItemsIterator; } protected void populateItem(Item item) { ChatViewItem chatViewItem = getItem("chatViewItem"); item.add(chatViewItem); chatViewItem.setMyModels(); } }; add(chatRefreshingView); chatRefreshingView.setOutputMarkupId(true); --- public void setMyModels() //for chatViewItem.setMyModels() above { IModel chatViewItemModel = getParent().getModel(); PropertyModel contentsModel = new PropertyModel(chatViewItemModel, "contents"); getAuthorChatImage().setModel(new ImagePathFromIdModel(new PropertyModel(chatViewItemModel, "authorProfileId"))); getContents().setModel(contentsModel); } -- WicketMessage: Error attaching this container for rendering: [MarkupContainer [Component id = chatDisplay, page = jumbuck.ffweb.wicket.page.FFWeb, path = 0:main_tabbed_panel:target_panel:tabbed_panel:target_panel:chatDisplay.HotListTargetPanel$1, isVisible = true, isVersioned = false]] Root cause: java.util.ConcurrentModificationException at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372) at java.util.AbstractList$Itr.next(AbstractList.java:343) at org.apache.wicket.markup.repeater.util.ModelIteratorAdapter.next(ModelIteratorAdapter.java:60) at org.apache.wicket.markup.repeater.DefaultItemReuseStrategy$1.next(DefaultItemReuseStrategy.java:71) at org.apache.wicket.markup.repeater.RefreshingView.addItems(RefreshingView.java:189) at org.apache.wicket.markup.repeater.RefreshingView.onBeforeRender(RefreshingView.java:115) at org.apache.wicket.Component.beforeRender(Component.java:846) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1449) at org.apache.wicket.Component.beforeRender(Component.java:856) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1449) at org.apache.wicket.Component.beforeRender(Component.java:856) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1449) at org.apache.wicket.Component.beforeRender(Component.java:856) at org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:757) at org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:662) at org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:520) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1037) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1107) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1176) at org.apache.wicket.RequestCycle.request(RequestCycle.java:499) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:257) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:127) -- View this message in context: http://www.nabble.com/java.util.ConcurrentModificationException-with-RefreshingView-%28AGAIN%21-%21-%21%21%29-tf4101508.html#a11663707 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
Re: [Wicket-user] java.util.ConcurrentModificationException with RefreshingView
Thanks Igor, I forgot to wrap it using ModelIteratorAdapter... :) igor.vaynberg wrote: > > On 7/15/07, Ballist1c <[EMAIL PROTECTED]> wrote: >> >> >> So with the recent discovery of the RefreshingView, I have decided I >> wanted >> to transplant all my code from ListView. >> >> Unfortuantely, I am getting a nasty error and i have tracked the actual >> failure to the 'getItemModels()' abstracted function. I retrieve the >> appropriate iterator, and debug shows that it is being returned to the >> original class/function that calls it. What I am doing is using an >> Iterator >> from another POJO backend class. The code itself is quite similar to the >> code I had for listView with the addition of retrieving the iterator for >> getItemModels(). >> >> I am not sure if thats the actual code thats causing the problem. The >> code >> is below the error message. >> >> Anyway, yeah let me know what you guys think. >> >> >> --- >> >> WicketMessage: Error attaching this container for rendering: >> [MarkupContainer [Component id = chatDisplay, page = >> jumbuck.ffweb.wicket.page.FFWeb, path = >> 0:main_tabbed_panel:target_panel:tabbed_panel:target_panel: >> chatDisplay.HotListTargetPanel$1, >> isVisible = true, isVersioned = false]] >> >> Root cause: >> >> java.util.ConcurrentModificationException >> at java.util.AbstractList$Itr.checkForComodification(AbstractList.java >> :372) >> at java.util.AbstractList$Itr.next(AbstractList.java:343) >> at >> org.apache.wicket.markup.repeater.DefaultItemReuseStrategy$1.next( >> DefaultItemReuseStrategy.java:71) >> at >> org.apache.wicket.markup.repeater.RefreshingView.addItems( >> RefreshingView.java:189) >> at >> org.apache.wicket.markup.repeater.RefreshingView.onBeforeRender( >> RefreshingView.java:115) >> at org.apache.wicket.Component.beforeRender(Component.java:846) >> at >> org.apache.wicket.MarkupContainer.onBeforeRenderChildren( >> MarkupContainer.java:1449) >> at org.apache.wicket.Component.beforeRender(Component.java:856) >> at >> org.apache.wicket.MarkupContainer.onBeforeRenderChildren( >> MarkupContainer.java:1449) >> at org.apache.wicket.Component.beforeRender(Component.java:856) >> at >> org.apache.wicket.MarkupContainer.onBeforeRenderChildren( >> MarkupContainer.java:1449) >> at org.apache.wicket.Component.beforeRender(Component.java:856) >> at >> org.apache.wicket.ajax.AjaxRequestTarget.respondComponent( >> AjaxRequestTarget.java:757) >> at >> org.apache.wicket.ajax.AjaxRequestTarget.respondComponents( >> AjaxRequestTarget.java:662) >> at >> org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java >> :520) >> at >> org.apache.wicket.request.AbstractRequestCycleProcessor.respond( >> AbstractRequestCycleProcessor.java:103) >> at >> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java >> :1037) >> at org.apache.wicket.RequestCycle.step(RequestCycle.java:1107) >> at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1176) >> at org.apache.wicket.RequestCycle.request(RequestCycle.java:499) >> at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java >> :257) >> at >> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java >> :127) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( >> ApplicationFilterChain.java:202) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter( >> ApplicationFilterChain.java:173) >> at >> org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter( >> MonitorFilter.java:368) >> at >> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( >> ApplicationFilterChain.java:202) >> at >> org.apache.catalina.core.ApplicationFilterChain.doFilter( >> ApplicationFilterChain.java:173) >> at >> org.apache.catalina.core.StandardWrapperValve.invoke( >> StandardWrapperValve.java:213) >> at >> org.apache.catalina.core.StandardContextValve.invoke( >> StandardContextValve.java:178) >> at >> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java >> :126) >> at >> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java >> :105) >> at >> org.apache.catalina.core.StandardEngineValve.invoke( >> StandardEngineValve.java:107) >> at >> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java >> :148) >> at >> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) >> at >> >> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection >> (Http11BaseProtocol.java:664) >> at >> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket( >> PoolTcpEndpoint.java:527) >> at >> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( >> LeaderFollowerWorkerThread.java:80) >> at >> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( >> ThreadPool.java:684) >> at java.lang.Thread.run(Thread.java:619) >> >> >> -
Re: [Wicket-user] java.util.ConcurrentModificationException with RefreshingView
On 7/15/07, Ballist1c <[EMAIL PROTECTED]> wrote: So with the recent discovery of the RefreshingView, I have decided I wanted to transplant all my code from ListView. Unfortuantely, I am getting a nasty error and i have tracked the actual failure to the 'getItemModels()' abstracted function. I retrieve the appropriate iterator, and debug shows that it is being returned to the original class/function that calls it. What I am doing is using an Iterator from another POJO backend class. The code itself is quite similar to the code I had for listView with the addition of retrieving the iterator for getItemModels(). I am not sure if thats the actual code thats causing the problem. The code is below the error message. Anyway, yeah let me know what you guys think. --- WicketMessage: Error attaching this container for rendering: [MarkupContainer [Component id = chatDisplay, page = jumbuck.ffweb.wicket.page.FFWeb, path = 0:main_tabbed_panel:target_panel:tabbed_panel:target_panel: chatDisplay.HotListTargetPanel$1, isVisible = true, isVersioned = false]] Root cause: java.util.ConcurrentModificationException at java.util.AbstractList$Itr.checkForComodification(AbstractList.java :372) at java.util.AbstractList$Itr.next(AbstractList.java:343) at org.apache.wicket.markup.repeater.DefaultItemReuseStrategy$1.next( DefaultItemReuseStrategy.java:71) at org.apache.wicket.markup.repeater.RefreshingView.addItems( RefreshingView.java:189) at org.apache.wicket.markup.repeater.RefreshingView.onBeforeRender( RefreshingView.java:115) at org.apache.wicket.Component.beforeRender(Component.java:846) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren( MarkupContainer.java:1449) at org.apache.wicket.Component.beforeRender(Component.java:856) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren( MarkupContainer.java:1449) at org.apache.wicket.Component.beforeRender(Component.java:856) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren( MarkupContainer.java:1449) at org.apache.wicket.Component.beforeRender(Component.java:856) at org.apache.wicket.ajax.AjaxRequestTarget.respondComponent( AjaxRequestTarget.java:757) at org.apache.wicket.ajax.AjaxRequestTarget.respondComponents( AjaxRequestTarget.java:662) at org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java :520) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond( AbstractRequestCycleProcessor.java:103) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java :1037) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1107) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1176) at org.apache.wicket.RequestCycle.request(RequestCycle.java:499) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java :257) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java :127) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:173) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter( MonitorFilter.java:368) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke( StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke( StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java :126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :105) at org.apache.catalina.core.StandardEngineValve.invoke( StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java :148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection (Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket( PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( ThreadPool.java:684) at java.lang.Thread.run(Thread.java:619) CODE chatRefreshingView = new RefreshingView("view", new PropertyModel(new PropertyModel(ChatView.this.getJumbuckSession(), "currentChatSession"), "chatEntries")) { protected Iterator getItemModels() { //i like cereal chatViewItemsIterator = ChatView.this.getJumbuckSession().getCurrentChatSessionIterator(); return chatViewItemsIterator; }
[Wicket-user] java.util.ConcurrentModificationException with RefreshingView
So with the recent discovery of the RefreshingView, I have decided I wanted to transplant all my code from ListView. Unfortuantely, I am getting a nasty error and i have tracked the actual failure to the 'getItemModels()' abstracted function. I retrieve the appropriate iterator, and debug shows that it is being returned to the original class/function that calls it. What I am doing is using an Iterator from another POJO backend class. The code itself is quite similar to the code I had for listView with the addition of retrieving the iterator for getItemModels(). I am not sure if thats the actual code thats causing the problem. The code is below the error message. Anyway, yeah let me know what you guys think. --- WicketMessage: Error attaching this container for rendering: [MarkupContainer [Component id = chatDisplay, page = jumbuck.ffweb.wicket.page.FFWeb, path = 0:main_tabbed_panel:target_panel:tabbed_panel:target_panel:chatDisplay.HotListTargetPanel$1, isVisible = true, isVersioned = false]] Root cause: java.util.ConcurrentModificationException at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372) at java.util.AbstractList$Itr.next(AbstractList.java:343) at org.apache.wicket.markup.repeater.DefaultItemReuseStrategy$1.next(DefaultItemReuseStrategy.java:71) at org.apache.wicket.markup.repeater.RefreshingView.addItems(RefreshingView.java:189) at org.apache.wicket.markup.repeater.RefreshingView.onBeforeRender(RefreshingView.java:115) at org.apache.wicket.Component.beforeRender(Component.java:846) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1449) at org.apache.wicket.Component.beforeRender(Component.java:856) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1449) at org.apache.wicket.Component.beforeRender(Component.java:856) at org.apache.wicket.MarkupContainer.onBeforeRenderChildren(MarkupContainer.java:1449) at org.apache.wicket.Component.beforeRender(Component.java:856) at org.apache.wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:757) at org.apache.wicket.ajax.AjaxRequestTarget.respondComponents(AjaxRequestTarget.java:662) at org.apache.wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:520) at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:103) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1037) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1107) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1176) at org.apache.wicket.RequestCycle.request(RequestCycle.java:499) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:257) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:127) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:619) CODE chatRefreshingView = new RefreshingView("view", new PropertyModel(new PropertyModel(ChatView.this.getJumbuckSession(), "currentChatSession"), "chatEntries")) { protected Iterator getItemModels() { //i like cereal chatViewItemsIterator = ChatView.this.getJumbuckSession().getCurrentChatSessionIterator(); return chatViewItemsIterator; } protected void populateItem(Item item) {
Re: [Wicket-user] java.util.ConcurrentModificationException
Ok. Understood. Thanks. Johan Compagner wrote: > > 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 > __
Re: [Wicket-user] java.util.ConcurrentModificationException
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
Re: [Wicket-user] java.util.ConcurrentModificationException
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
Re: [Wicket-user] java.util.ConcurrentModificationException
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
[Wicket-user] java.util.ConcurrentModificationException
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