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

GitHub | caiyifeng | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    我在使用trident时遇到如下冲突,能否帮忙诊断一下,谢了

    GitHub | 8 months ago | caiyifeng
    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
  2. 0

    Grails User (Old Archive) - Consume web service in Grails app

    nabble.com | 10 months ago
    java.lang.LinkageError: loader constraint violation: when resolving interface method "org.w3c.dom.Node.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/w3c/dom/UserDataHandler;)Ljava/lang/Object;" the class loader (instance of org/codehaus/groovy/grails/cli/support/GrailsRootLoader) of the current class, org/apache/cxf/staxutils/StaxUtils, and the class loader (instance of <bootloader>) for resolved class, org/w3c/dom/Node, have different Class objects for the type org/w3c/dom/UserDataHandler used in the signature

    Root Cause Analysis

    1. 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()
    2. Curator Framework
      CuratorFrameworkFactory.newClient
      1. org.apache.curator.framework.imps.CuratorFrameworkImpl.makeZookeeperFactory(CuratorFrameworkImpl.java:169)[curator-framework-2.5.0.jar:na]
      2. org.apache.curator.framework.imps.CuratorFrameworkImpl.<init>(CuratorFrameworkImpl.java:112)[curator-framework-2.5.0.jar:na]
      3. org.apache.curator.framework.CuratorFrameworkFactory$Builder.build(CuratorFrameworkFactory.java:122)[curator-framework-2.5.0.jar:na]
      4. org.apache.curator.framework.CuratorFrameworkFactory.newClient(CuratorFrameworkFactory.java:91)[curator-framework-2.5.0.jar:na]
      4 frames
    3. storm.kafka
      DynamicBrokersReader.<init>
      1. storm.kafka.DynamicBrokersReader.<init>(DynamicBrokersReader.java:57)[stormjar.jar:na]
      1 frame
    4. storm.kafka.trident
      ZkBrokerReader.<init>
      1. storm.kafka.trident.ZkBrokerReader.<init>(ZkBrokerReader.java:41)[stormjar.jar:na]
      1 frame
    5. storm.kafka
      KafkaUtils.makeBrokerReader
      1. storm.kafka.KafkaUtils.makeBrokerReader(KafkaUtils.java:57)[stormjar.jar:na]
      1 frame
    6. storm.kafka.trident
      TransactionalTridentKafkaSpout.getCoordinator
      1. storm.kafka.trident.Coordinator.<init>(Coordinator.java:33)[stormjar.jar:na]
      2. storm.kafka.trident.TransactionalTridentKafkaSpout.getCoordinator(TransactionalTridentKafkaSpout.java:41)[stormjar.jar:na]
      2 frames
    7. storm.trident.spout
      PartitionedTridentSpoutExecutor.getCoordinator
      1. storm.trident.spout.PartitionedTridentSpoutExecutor$Coordinator.<init>(PartitionedTridentSpoutExecutor.java:46)[jstorm-core-2.1.1.jar:na]
      2. storm.trident.spout.PartitionedTridentSpoutExecutor.getCoordinator(PartitionedTridentSpoutExecutor.java:149)[jstorm-core-2.1.1.jar:na]
      2 frames
    8. storm.trident.topology
      MasterBatchCoordinator.open
      1. storm.trident.topology.MasterBatchCoordinator.open(MasterBatchCoordinator.java:113)[jstorm-core-2.1.1.jar:na]
      1 frame
    9. com.alibaba.jstorm
      AsyncLoopRunnable.run
      1. com.alibaba.jstorm.task.execute.spout.SpoutExecutors.init(SpoutExecutors.java:142)[jstorm-core-2.1.1.jar:na]
      2. com.alibaba.jstorm.task.execute.spout.MultipleThreadSpoutExecutors.init(MultipleThreadSpoutExecutors.java:64)[jstorm-core-2.1.1.jar:na]
      3. com.alibaba.jstorm.task.execute.BaseExecutors.initWrapper(BaseExecutors.java:154)[jstorm-core-2.1.1.jar:na]
      4. com.alibaba.jstorm.task.execute.spout.MultipleThreadSpoutExecutors.run(MultipleThreadSpoutExecutors.java:76)[jstorm-core-2.1.1.jar:na]
      5. com.alibaba.jstorm.callback.AsyncLoopRunnable.run(AsyncLoopRunnable.java:95)[jstorm-core-2.1.1.jar:na]
      5 frames
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)[na:1.8.0_45]
      1 frame