Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Not A Problem
-
3.4.3
-
None
-
None
-
Unknown
Description
We are running our application in a container (Tomcat: 9.0.45, OpenJDK Runtime Environment Zulu11.50+20-SA (build 11.0.12+7-LTS))
Its been running successfully for the last year. There was an upgrade on the base OS and the docker engine (details in the environment section)...and now the application is failing with the below exception. This is consistent behavior and not intermittent.
We managed to find an issue against an older version of the library: https://issues.apache.org/jira/browse/CXF-3949
As suggested there, we reduced the number of CPUs provisioned to the container from 4 to 1, and the below exception is not encountered.
We don't understand why the reduction in the CPU made a difference, or how the OS version/Docker upgrade would've had this impact.
Caused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.cxf.jaxrs.utils.JAXRSUtilsCaused by: java.lang.NoClassDefFoundError: Could not initialize class org.apache.cxf.jaxrs.utils.JAXRSUtils at org.apache.cxf.jaxrs.impl.UriBuilderImpl.setPathAndMatrix(UriBuilderImpl.java:679) at org.apache.cxf.jaxrs.impl.UriBuilderImpl.setUriParts(UriBuilderImpl.java:648) at org.apache.cxf.jaxrs.impl.UriBuilderImpl.uri(UriBuilderImpl.java:624) at org.apache.cxf.jaxrs.client.LocalClientState.resetCurrentUri(LocalClientState.java:93) at org.apache.cxf.jaxrs.client.LocalClientState.<init>(LocalClientState.java:64) at org.apache.cxf.jaxrs.client.ThreadLocalClientState.<init>(ThreadLocalClientState.java:58) at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.getActualState(JAXRSClientFactoryBean.java:247) at org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.createWebClient(JAXRSClientFactoryBean.java:223) at org.apache.camel.component.cxf.jaxrs.CxfRsProducer.invokeAsyncHttpClient(CxfRsProducer.java:138) at org.apache.camel.component.cxf.jaxrs.CxfRsProducer.process(CxfRsProducer.java:116) at org.apache.camel.impl.InterceptSendToEndpointProcessor.process(InterceptSendToEndpointProcessor.java:112) at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:201) at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:715) at org.apache.camel.processor.MulticastProcessor.doProcessSequential(MulticastProcessor.java:638) at org.apache.camel.processor.MulticastProcessor.process(MulticastProcessor.java:248) ... 56 more