java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.curator.framework.imps.CuratorFrameworkImpl$2.newZooKeeper(Ljava/lang/String;ILorg/apache/zookeeper/Watcher;Z)Lorg/apache/zookeeper/ZooKeeper;" the class loader (instance of backtype/storm/utils/WorkerClassLoader) of the current class, org/apache/curator/framework/imps/CuratorFrameworkImpl$2, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for interface org/apache/curator/utils/ZookeeperFactory have different Class objects for the type org/apache/zookeeper/Watcher used in the signature

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by caiyifeng
, 1 year ago
class loader (instance of backtype/storm/utils/WorkerClassLoader) of the current class, org/apache/curator/framework/imps/CuratorFrameworkImpl$2, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for interface org/apache/curator/utils/ZookeeperFactory have different Class objects for the type org/apache/zookeeper/Watcher used in the signature
java.lang.LinkageError: loader constraint violation in interface itable initialization: when resolving method "org.apache.curator.framework.imps.CuratorFrameworkImpl$2.newZooKeeper(Ljava/lang/String;ILorg/apache/zookeeper/Watcher;Z)Lorg/apache/zookeeper/ZooKeeper;" the class loader (instance of backtype/storm/utils/WorkerClassLoader) of the current class, org/apache/curator/framework/imps/CuratorFrameworkImpl$2, and the class loader (instance of sun/misc/Launcher$AppClassLoader) for interface org/apache/curator/utils/ZookeeperFactory have different Class objects for the type org/apache/zookeeper/Watcher used in the signature
at org.apache.curator.framework.imps.CuratorFrameworkImpl.makeZookeeperFactory(CuratorFrameworkImpl.java:169)
at org.apache.curator.framework.imps.CuratorFrameworkImpl.(CuratorFrameworkImpl.java:112)
at org.apache.curator.framework.CuratorFrameworkFactory$Builder.build(CuratorFrameworkFactory.java:122)
at storm.kafka.DynamicBrokersReader.(DynamicBrokersReader.java:57)
at storm.kafka.trident.ZkBrokerReader.(ZkBrokerReader.java:41)
at storm.kafka.KafkaUtils.makeBrokerReader(KafkaUtils.java:57)
at storm.kafka.trident.Coordinator.(Coordinator.java:33)
at storm.kafka.trident.TransactionalTridentKafkaSpout.getCoordinator(TransactionalTridentKafkaSpout.java:41)
at storm.trident.spout.PartitionedTridentSpoutExecutor$Coordinator.(PartitionedTridentSpoutExecutor.java:46)
at storm.trident.spout.PartitionedTridentSpoutExecutor.getCoordinator(PartitionedTridentSpoutExecutor.java:149)
at storm.trident.topology.MasterBatchCoordinator.open(MasterBatchCoordinator.java:113)
at com.alibaba.jstorm.task.execute.spout.SpoutExecutors.init(SpoutExecutors.java:142)
at com.alibaba.jstorm.task.execute.spout.MultipleThreadSpoutExecutors.init(MultipleThreadSpoutExecutors.java:64)
at com.alibaba.jstorm.task.execute.BaseExecutors.initWrapper(BaseExecutors.java:154)
at com.alibaba.jstorm.task.execute.spout.MultipleThreadSpoutExecutors.run(MultipleThreadSpoutExecutors.java:76)
at com.alibaba.jstorm.callback.AsyncLoopRunnable.run(AsyncLoopRunnable.java:95)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.