Skip to content

OpenTelemetry java instrumentation (javaagent): TargetInvocationException #11820

Answered by dariusj1
dariusj1 asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dariusj1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant