Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#202 Transacted session receives exception doing rollback while l

general
open
Amir Shevat
General (90)
1
2005-09-26
2005-09-26
Daniel Gwerzman
No

Scenario is:
--------------
Start 2 Layers.
Layer A - create a producer on queue. Send msgs in a
loop.
Layer B - create a transacted session and create a
consumer listener on it.
While receiving msgs and rollback the session in the
middle of receiving the
msgs.
Get the bellow exception:

java.util.ConcurrentModificationException

at
java.util.LinkedHashMap$LinkedHashIterator.nextEntry
(Unknown Source)

at java.util.LinkedHashMap$KeyIterator.next
(Unknown Source)

at java.util.AbstractCollection.toArray(Unknown
Source)

at java.util.ArrayList.addAll(Unknown Source)

at org.mr.api.jms.MantaSession.rollback
(MantaSession.java:374)

at tester.logic.JMSTestLogicSession11.handle
(JMSTestLogicSession11.java:

972)

at org.mr.api.blocks.ScalableStage.handle
(ScalableStage.java:171)

at org.mr.core.util.AbstractStage.sendToHandler
(AbstractStage.java:80)

at org.mr.core.util.StageExecutionThread.run
(StageExecutionThread.java:6

3)

Discussion