Re: Concurrent modification

2001-04-04 Thread Nicola Folino

Thanks,
I solved the problem, and that was the answer...
- Original Message - 
From: "Jeff Schnitzer" [EMAIL PROTECTED]
To: "Orion-Interest" [EMAIL PROTECTED]
Sent: Wednesday, April 04, 2001 1:07 AM
Subject: RE: Concurrent modification


 ConcurrentModificationException is the result of a fail-fast iterator in
 the JDK 1.2+ collections framework.  If one thread is iterating a
 collection and another thread modifies the collection, the next call to
 the iterator will immediately throw this exception.  In the ugly old
 days of Hashtable and Vector, the results of concurrent modification
 were undefined.
  
 You need to rethink your synchronization strategy for whatever shared
 data you are initializing in initsequence.jsp.
  
 Jeff
 
 -Original Message-
 From: Ing. Nicola Folino [mailto:[EMAIL PROTECTED]]
 Sent: Friday, March 30, 2001 12:36 AM
 To: Orion-Interest
 Subject: Concurrent modification
 
 
 I have a web application with some jsp pages. If I click twice on a link
 to another jsp page, I get the exception:
  
 java.util.ConcurrentModificationException
 at java.util.HashMap$HashIterator.next(Unknown Source)
 at java.util.Collections$6.nextElement(Unknown Source)
 at
 __jspPage21_initsequence_jsp._jspService(__jspPage21_initsequence_jsp
 .java:38)
 at com.orionserver.http.OrionHttpJspPage.service(JAX)
 at com.evermind.server.http.HttpApplication.xj(JAX)
 at com.evermind.server.http.JSPServlet.service(JAX)
 at com.evermind.server.http.d3.sw(JAX)
 at com.evermind.server.http.d3.su(JAX)
 at com.evermind.server.http.ef.s1(JAX)
 at com.evermind.server.http.ef.do(JAX)
 at com.evermind.util.f.run(JAX)
 Keep in mind that go to the other link through an intermediate page
 which uses the directive jsp:forward page="somePage". The same
 application runs perfectly on JRun, but I saw that Allaire J2EE Server
 moves from standard, so I'd like to develope on Orion...
 Thanks
 





RE: Concurrent modification

2001-04-03 Thread Jeff Schnitzer

ConcurrentModificationException is the result of a fail-fast iterator in
the JDK 1.2+ collections framework.  If one thread is iterating a
collection and another thread modifies the collection, the next call to
the iterator will immediately throw this exception.  In the ugly old
days of Hashtable and Vector, the results of concurrent modification
were undefined.
 
You need to rethink your synchronization strategy for whatever shared
data you are initializing in initsequence.jsp.
 
Jeff

-Original Message-
From: Ing. Nicola Folino [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 12:36 AM
To: Orion-Interest
Subject: Concurrent modification


I have a web application with some jsp pages. If I click twice on a link
to another jsp page, I get the exception:
 
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.next(Unknown Source)
at java.util.Collections$6.nextElement(Unknown Source)
at
__jspPage21_initsequence_jsp._jspService(__jspPage21_initsequence_jsp
.java:38)
at com.orionserver.http.OrionHttpJspPage.service(JAX)
at com.evermind.server.http.HttpApplication.xj(JAX)
at com.evermind.server.http.JSPServlet.service(JAX)
at com.evermind.server.http.d3.sw(JAX)
at com.evermind.server.http.d3.su(JAX)
at com.evermind.server.http.ef.s1(JAX)
at com.evermind.server.http.ef.do(JAX)
at com.evermind.util.f.run(JAX)
Keep in mind that go to the other link through an intermediate page
which uses the directive jsp:forward page="somePage". The same
application runs perfectly on JRun, but I saw that Allaire J2EE Server
moves from standard, so I'd like to develope on Orion...
Thanks