Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-464

Unable to instantiate client in OSGi

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.12.0
    • 5.0.0
    • Framework
    • None

    Description

      112 | Active | 80 | 2.12.0 | Curator Client
      113 | Active | 80 | 2.12.0 | Curator Framework
      114 | Active | 80 | 2.12.0 | Curator Recipes

      CuratorFramework client = CuratorFrameworkFactory.newClient("localhost:2181", new RetryOneTime(1000));
      
      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.curator.framework.CuratorFrameworkFactory.newClient(CuratorFrameworkFactory.java:100) ~[?:?]
      	at org.apache.curator.framework.CuratorFrameworkFactory.newClient(CuratorFrameworkFactory.java:81) ~[?:?]
      

      curator-framework sources

      import com.google.common.cache.CacheBuilder;
      

      but jar contains

      import org.apache.curator.shaded.com.google.common.cache.CacheBuilder;
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              amarkevich Alexey Markevich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h