You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Alexey Markevich (JIRA)" <ji...@apache.org> on 2018/04/25 10:38:00 UTC
[jira] [Commented] (CURATOR-464) Unable to instantiate client in
OSGi
[ https://issues.apache.org/jira/browse/CURATOR-464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16452040#comment-16452040 ]
Alexey Markevich commented on CURATOR-464:
------------------------------------------
{noformat}
karaf@root()> headers curator-framework | grep google
com.google.common.collect,
com.google.common.base,
com.google.common.cache";
org.apache.curator.framework.api.transaction;uses:="com.google.common.base,org.apache.zookeeper.data,org.apache.curator.framework.api";version=2.12.0,
com.google.common.collect";
org.apache.curator.framework.state;uses:="org.apache.curator.framework,com.google.common.base,org.slf4j,org.apache.curator.utils,org.apache.curator.framework.listen";version=2.12.0,
org.apache.curator.framework.listen;uses:="org.slf4j,org.apache.curator.utils,com.google.common.base,com.google.common.util.concurrent,com.google.common.collect";version=2.12.0
com.google.common.base;version="[16.0,17)",
com.google.common.cache;version="[16.0,17)",
com.google.common.collect;version="[16.0,17)",
com.google.common.util.concurrent;version="[16.0,17)",
{noformat}
nothing about 'org.apache.curator.shaded' package
> Unable to instantiate client in OSGi
> ------------------------------------
>
> Key: CURATOR-464
> URL: https://issues.apache.org/jira/browse/CURATOR-464
> Project: Apache Curator
> Issue Type: Bug
> Components: Framework
> Affects Versions: 2.12.0
> Reporter: Alexey Markevich
> Priority: Major
>
> {quote}
> 112 | Active | 80 | 2.12.0 | Curator Client
> 113 | Active | 80 | 2.12.0 | Curator Framework
> 114 | Active | 80 | 2.12.0 | Curator Recipes
> {quote}
> {code}
> CuratorFramework client = CuratorFrameworkFactory.newClient("localhost:2181", new RetryOneTime(1000));
> {code}
> {noformat}
> 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) ~[?:?]
> {noformat}
> curator-framework sources
> {code}
> import com.google.common.cache.CacheBuilder;
> {code}
> but jar contains
> {code}
> import org.apache.curator.shaded.com.google.common.cache.CacheBuilder;
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)