AbstractRestAdapterClient.java
/** * Initializes the REST adapter. */ public AbstractRestAdapterClient() { ResteasyProviderFactory instance = ResteasyProviderFactory.getInstance(); List<MessageBodyReader<?>> messageBodyReaders = getMessageBodyReaders(); for (MessageBodyReader<?> reader : messageBodyReaders) { instance.addMessageBodyReader(reader); } RegisterBuiltin.register(instance);
If quite a lot rest clients are created in parallel we disocver the following exception sometimes. It's not deterministic.
Caused by: java.util.ConcurrentModificationException at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372) [rt.jar:1.6.0_32] at java.util.AbstractList$Itr.next(AbstractList.java:343) [rt.jar:1.6.0_32] at org.jboss.resteasy.core.MediaTypeMap.convert(MediaTypeMap.java:301) [resteasy-jaxrs-2.3.4.Final.jar:] at org.jboss.resteasy.core.MediaTypeMap.add(MediaTypeMap.java:282) [resteasy-jaxrs-2.3.4.Final.jar:] at org.jboss.resteasy.spi.ResteasyProviderFactory.addMessageBodyReader(ResteasyProviderFactory.java:517) [resteasy-jaxrs-2.3.4.Final.jar:] at org.jboss.resteasy.spi.ResteasyProviderFactory.addMessageBodyReader(ResteasyProviderFactory.java:494) [resteasy-jaxrs-2.3.4.Final.jar:] at org.jboss.resteasy.spi.ResteasyProviderFactory.addMessageBodyReader(ResteasyProviderFactory.java:484) [resteasy-jaxrs-2.3.4.Final.jar:] at org.jboss.resteasy.core.ThreadLocalResteasyProviderFactory.addMessageBodyReader(ThreadLocalResteasyProviderFactory.java:303) [resteasy-jaxrs-2.3.4.Final.jar:]
- is related to
-
RESTEASY-1044 ConcurrentModificationException on InterceptorRegistry
- Closed
-
RESTEASY-1139 Another ConcurrentModificationException on parallel deployments in InterceptorRegistry
- Closed