Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-14591

camel-master component fails with "java.lang.NoClassDefFoundError: org/apache/curator/shaded/com/google/common/cache/CacheBuilder" exception

XMLWordPrintable

    • % %
    • build5
    • Hide

      I just created a example/reproducer in my GitHub repository.

      You just need to follow the steps on the README.MD file. 

      Show
      I just created a example/reproducer in my  GitHub repository. You just need to follow the steps on the README.MD file. 

      A route create a simple route with the camel-master component using the Zookeeper service and it's failing when deploying on Fuse 7.7 with the following error:

      Caused by: java.lang.NoClassDefFoundError: org/apache/curator/shaded/com/google/common/cache/CacheBuilder

      at org.apache.curator.framework.imps.NamespaceWatcherMap.<init>(NamespaceWatcherMap.java:31) ~[?:?]

      at org.apache.curator.framework.imps.CuratorFrameworkImpl.<init>(CuratorFrameworkImpl.java:81) ~[?:?]

      at org.apache.curator.framework.CuratorFrameworkFactory$Builder.build(CuratorFrameworkFactory.java:145) ~[?:?]

      at org.apache.camel.component.zookeeper.ZooKeeperCuratorHelper.createCurator(ZooKeeperCuratorHelper.java:58) ~[?:?]

      Full stack trace is on the attachment is here: camel-master-full-stack-trace.txt

       

      2 things to notice:

      • I figure out, by chance, that if I add this repo in the Karaf runtime before I install the feature camel-zookeeper, the NoClassDefFoundError is fixed, despite failing for another reason.

      features:addurl mvn:org.kie/kie-karaf-features/7.40.0.Final/xml/features

       

       

              ggrzybek Grzegorz Grzybek
              Asouza@redhat.com Angelo Souza
              Vratislav Hais Vratislav Hais (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: