Linkage error when using DropwizardMeterWrapper

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Linkage error when using DropwizardMeterWrapper

Jayant Ameta
java.lang.LinkageError: loader constraint violation: when resolving method "org.apache.flink.dropwizard.metrics.DropwizardMeterWrapper.<init>(Lcom/codahale/metrics/Meter;)V" the class loader (instance of org/apache/flink/runtime/execution/librarycache/FlinkUserCodeClassLoaders$ChildFirstClassLoader) of the current class, com/test/PatternMatcher, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for the method's defining class, org/apache/flink/dropwizard/metrics/DropwizardMeterWrapper, have different Class objects for the type com/codahale/metrics/Meter used in the signature

Jayant Ameta
Reply | Threaded
Open this post in threaded view
|

Re: Linkage error when using DropwizardMeterWrapper

Jayant Ameta
Nevermind. Relocating the dropwizard packages using maven shade plugin fixed it.

Reply | Threaded
Open this post in threaded view
|

Re: Linkage error when using DropwizardMeterWrapper

shkob1
Hey Jayant. Getting the same using gradle. my metrics reporter and my
application both using the flink-metrics-dropwizard dependency for reporting
Meters. how should i be solving it?



--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/