Menu

#202 Transacted session receives exception doing rollback while l

general
open
General (90)
1
2005-09-26
2005-09-26
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


Log in to post a comment.