-
Hi! I'm trying to set up OTEL auto-instrumentation using the k8s CRDs for our java application. It's a large framework certified by its vendor to run on java 8 max.
At first, the instrumentation caused some issues for the application to start up, because the JAVA_TOOL_OPTIONS was captured by Now with that put aside, another error crossed my path and prevented the app from starting up:
I see otel and slf4j frames in the stack trace. Somehow, this not only fails the OTEL to start up, but also prevents the application from completing its startup sequence. It doesn't crash, it just remains hanging. The application in question is based on OSGI, IDK whether it's useful info. How can I go around this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found it. The fact that it's java 8 is important. The thing is, my app is using Removing this JVM option solved the exception (and the exception can't be debugged, because it occurs in static context) |
Beta Was this translation helpful? Give feedback.
Found it.
The fact that it's java 8 is important.
The thing is, my app is using
-Djava.locale.providers=COMPAT
. And in java8 this doesn't make much sense, as COMPAT is a compatibility mode, enabling j9+ to "understand" values used in j8 and older versions.Removing this JVM option solved the exception (and the exception can't be debugged, because it occurs in static context)
ref.: https://docs.oracle.com/en%2Fjava%2Fjavase%2F11%2Fdocs%2Fapi%2F%2F/java.base/java/util/spi/LocaleServiceProvider.html