deepakjeena / jsmpp

JAVA based SMPP protocol
Apache License 2.0
0 stars 0 forks source link

Calling removeSessionStateListener(l) and unbindAndClose() on SMPPSession throws java.util.ConcurrentModificationException #93

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We are using jsmpp inside the Apache Camel SMPP component which allows our 
users to connect to an SMSC.

One of our users report the following issue:
https://issues.apache.org/jira/browse/CAMEL-3650

At the bottom line, calling removeSessionStateListener(l) and unbindAndClose() 
on SMPPSession throws java.util.ConcurrentModificationException because one 
thread is iterating over the sessionStateListener list when another thread 
remove one of this list entries. I think using a thread safe list could solve 
this issue, e.g. java.util.Vector.

Thanks in advance,
Christian

Original issue reported on code.google.com by christia...@gmail.com on 27 Feb 2011 at 12:57

GoogleCodeExporter commented 9 years ago
I am the user that reported the Apache Camel issue.

As Christian highlighted, the ConcurrentModificationException stops the entry 
from being removed from the array and thus the thread does not get stopped. 
This effectively causes a thread and memory leak.

Thank you,
---Jaco

Original comment by jacovt.s...@gmail.com on 28 Feb 2011 at 8:16

GoogleCodeExporter commented 9 years ago
It looks like you fixed this isseu with r267. Can you please confirm this!? Do 
you plan a new release?
This project is not really active and I'm thinking about to fork it...

Best,
Christian

Original comment by christia...@gmail.com on 23 Oct 2011 at 12:44

GoogleCodeExporter commented 9 years ago

Original comment by uuda...@gmail.com on 2 Sep 2013 at 2:47