You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Jayant Ameta <wi...@gmail.com> on 2018/11/12 14:26:44 UTC

Linkage error when using DropwizardMeterWrapper

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

Re: Linkage error when using DropwizardMeterWrapper

Posted by shkob1 <sh...@gmail.com>.
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/

Re: Linkage error when using DropwizardMeterWrapper

Posted by Jayant Ameta <wi...@gmail.com>.
Nevermind. Relocating the dropwizard packages using maven shade plugin
fixed it.