Since I deployed the interceptor I can see some random errors happening in
different points:
java.util.ConcurrentModificationException: null
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1437)
at java.util.HashMap$EntryIterator.next(HashMap.java:1471)
at java.util.HashMap$EntryIterator.next(HashMap.java:1469)
at java.util.HashMap.putMapEntries(HashMap.java:511)
at java.util.HashMap.putAll(HashMap.java:784)
at java.util.Collections$SynchronizedMap.putAll(Collections.java:2594)
at org.apache.openejb.core.ThreadContext.<init>(ThreadContext.java:143)
at org.apache.openejb.threads.task.CUTask$Context.enter(CUTask.java:185)
at org.apache.openejb.threads.task.CUTask.invoke(CUTask.java:75)
at org.apache.openejb.threads.task.CUCallable.call(CUCallable.java:31)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Could it be related to that I'm caching the executor and I shouldn't?
if (executor == null) {
executor = (ManagedExecutorService) new
InitialContext().lookup("openejb:Resource/TravelcAsynchronousPool");
}
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/MDC-and-Asynchronous-tp4680927p4680937.html
Sent from the TomEE Users mailing list archive at Nabble.com.