Do you have before/after method interceptor listed in web.xml? You should
see something like 'BeforeAfterMethodInterceptor is configured to run twice' in
the logs at startup. If so you can remove it from there, since 1.5 that has
been configured as a 'core' interceptor. I suppose that could cause that
From: carlos peña [mailto:[email protected]]
Sent: Wednesday, August 05, 2009 3:59 PM
To: Stripes Users List; [email protected]
Subject: Re: [Stripes-users] ConcurrentModificationException
Hi, ive already experienced a similar problem before. Check if you're using a
collection iterator correctly or iterating the collection the right way. This
exception is thrown when a thread is iterating over a collection (using an
iterator) and other thread, or the same thread tries to modify the collection.
IE:
Iterator it = myList.getIterator();
while(it.hasNext()){
MyClass item = it.next();
myLis.remove(0); // the exception will be thrown here because youre
iterating the collection named "myList" with the iterator "it"
// and while doing that you modify the collection removing a item directly (
not using the iterator as it should be).
}
Check if youre not doing this. Hope this helps.
Best regards.
On Wed, Aug 5, 2009 at 6:13 AM, Simon
<[email protected]<mailto:[email protected]>> wrote:
Hello !!
We are using Stripes for our web applications and we are really happy with it.
However, today we got a strange exception :
java.util.ConcurrentModificationException
at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
at java.util.AbstractList$Itr.next(AbstractList.java:343)
at
net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:101)
at
net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155)
at
net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:74)
at
net.sourceforge.stripes.controller.DispatcherHelper.doBindingAndValidation(DispatcherHelper.java:190)
at
net.sourceforge.stripes.controller.DispatcherServlet.doBindingAndValidation(DispatcherServlet.java:254)
at
net.sourceforge.stripes.controller.DispatcherServlet.service(DispatcherServlet.java:148)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:92)
....
at
com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:229)
at com.caucho.server.hmux.HmuxRequest.handleRequest(HmuxRequest.java:420)
at com.caucho.server.port.TcpConnection.run(TcpConnection.java:514)
at com.caucho.util.ThreadPool.runTasks(ThreadPool.java:520)
at com.caucho.util.ThreadPool.run(ThreadPool.java:442)
at java.lang.Thread.run(Thread.java:619)
This is our actual configuration :
stripes version : 1.5.1
web container : Caucho Resin 3.0.24
java version : 1.6.0_13
OS : SunOS 5.10 sparc
Any clue on this exception ? :)
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-users mailing list
[email protected]<mailto:[email protected]>
https://lists.sourceforge.net/lists/listinfo/stripes-users
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users