Hi, Milind

> Exception in thread "main" java.lang.ExceptionInInitializerError
> at com.demo.cry.DubboCryFactory.createInstance(DubboCryFactory.java:55)
> at com.demo.cry.DubboRPCTest.main(DubboRPCTest.java:26)
> Caused by: java.lang.IllegalStateException: fail to create adaptive
> instance: java.lang.IllegalStateException: Can not create adaptive
> extension interface
> com.alibaba.dubbo.common.extension.ExtensionFactory, cause: No
> adaptive method on extension
> com.alibaba.dubbo.common.extension.ExtensionFactory, refuse to create
> the adaptive class!
> at 
> com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:447)
> at 
> com.alibaba.dubbo.common.extension.ExtensionLoader.(ExtensionLoader.java:98)
> at 
> com.alibaba.dubbo.common.extension.ExtensionLoader.getExtensionLoader(ExtensionLoader.java:119)
> at com.alibaba.dubbo.config.ReferenceConfig.(ReferenceConfig.java:67)
> 
> 
> Can some help me out here. If I create a jar with only dubbo consumer
> then it works but when I add the consumer to my module, then it fails
> to create the extensions. What is wrong here.

By default, dubbo provides an adaptive implementation 
“AdaptiveExtensionFactory”, showed below and configured in [3],  adaptive class 
code should not be created dynamically for ExtensionFactory.
@Adaptive
public class AdaptiveExtensionFactory implements ExtensionFactory {

    private final List<ExtensionFactory> factories;

    public AdaptiveExtensionFactory() {
The exception you caught was throwed here[1], which only happens when 
AdaptiveExtensionFactory failed to load.

The only reason I can figure out now is the class loader[2], do you use a 
customized class loader in your project?

[1]. 
https://github.com/alibaba/dubbo/blob/34d7aa7ab671aa44764022b1bf348922da70d0e1/dubbo-common/src/main/java/com/alibaba/dubbo/common/extension/ExtensionLoader.java#L730
 
<https://github.com/alibaba/dubbo/blob/34d7aa7ab671aa44764022b1bf348922da70d0e1/dubbo-common/src/main/java/com/alibaba/dubbo/common/extension/ExtensionLoader.java#L730>
[2]. 
https://github.com/alibaba/dubbo/blob/34d7aa7ab671aa44764022b1bf348922da70d0e1/dubbo-common/src/main/java/com/alibaba/dubbo/common/extension/ExtensionLoader.java#L585
 
<https://github.com/alibaba/dubbo/blob/34d7aa7ab671aa44764022b1bf348922da70d0e1/dubbo-common/src/main/java/com/alibaba/dubbo/common/extension/ExtensionLoader.java#L585>
[3]. 
https://github.com/alibaba/dubbo/blob/master/dubbo-config/dubbo-config-spring/src/main/resources/META-INF/dubbo/internal/com.alibaba.dubbo.common.extension.ExtensionFactory
 
<https://github.com/alibaba/dubbo/blob/master/dubbo-config/dubbo-config-spring/src/main/resources/META-INF/dubbo/internal/com.alibaba.dubbo.common.extension.ExtensionFactory>

> On 12 Mar 2018, at 1:41 PM, Milind Karandikar <milindk...@gmail.com> wrote:
> 
> Hi,
> 
> 
> 
>    I am trying to integrate dubbo into the application. I have written a
> simple client class -
> 
> import com.alibaba.dubbo.config.ApplicationConfig;
> import com.alibaba.dubbo.config.ReferenceConfig;
> import com.alibaba.dubbo.config.RegistryConfig;
> import org.apache.log4j.Logger;
> 
> public class DubboFactory {
> 
> private static final Logger logger = Logger.getLogger(DubboFactory.class);
> public DubboCry createInstance () {
> ApplicationConfig application = new ApplicationConfig();
> application.setName("demo-consumer");
> application.setVersion("1.0.0");
> RegistryConfig registryConfig = new RegistryConfig();
> registryConfig.setAddress("zookeeper://XXX.XX.me:2181");
> ReferenceConfig reference = new ReferenceConfig<>();
> reference.setApplication(application);
> reference.setRegistry(registryConfig);
> reference.setVersion("1.0.0");
> reference.setInterface(DubboCry.class);
> return reference.get();
> }
> The pom.xml entry is as follows -
> 
> 
> <!-- https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12 -->
> <dependency>
>    <groupId>org.slf4j</groupId>
>    <artifactId>slf4j-log4j12</artifactId>
>    <version>1.7.25</version>
>    <scope>test</scope>
> </dependency>
> 
> 
> 
> <dependency>
>    <groupId>com.alibaba</groupId>
>    <artifactId>dubbo</artifactId>
>    <version>2.5.9</version>
> </dependency>
> 
> <dependency>
>    <groupId>com.fasterxml.jackson.core</groupId>
>    <artifactId>jackson-core</artifactId>
>    <version>2.6.4</version>
> </dependency>
> 
> Following is the out of mvn tree:dependency
> 
> [*INFO*] *--- *maven-dependency-plugin:2.8:tree *(default-cli)* @
> demo-crypto* ---*
> 
> [*INFO*] com.demo:demo-crypto:jar:1.0.0-SNAPSHOT
> 
> [*INFO*] +- com.demo:demo-common:jar:1.0.0-SNAPSHOT:compile
> 
> [*INFO*] |  +- org.apache.httpcomponents:httpclient:jar:4.2.5:compile
> 
> [*INFO*] |  |  \- org.apache.httpcomponents:httpcore:jar:4.2.4:compile
> 
> [*INFO*] |  +- log4j:log4j:jar:1.2.17:compile
> 
> [*INFO*] |  +- commons-io:commons-io:jar:2.4:compile
> 
> [*INFO*] |  +- org.apache.commons:commons-lang3:jar:3.6:compile
> 
> [*INFO*] |  +- joda-time:joda-time:jar:2.9.7:compile
> 
> [*INFO*] |  +- org.codehaus.jackson:jackson-mapper-asl:jar:1.9.13:compile
> 
> [*INFO*] |  +- org.apache.solr:solr-solrj:jar:5.2.1:compile
> 
> [*INFO*] |  |  +- org.codehaus.woodstox:stax2-api:jar:3.1.4:compile
> 
> [*INFO*] |  |  +- org.codehaus.woodstox:woodstox-core-asl:jar:4.4.1:compile
> 
> [*INFO*] |  |  \- org.noggit:noggit:jar:0.6:compile
> 
> [*INFO*] |  +- org.apache.httpcomponents:httpmime:jar:4.5.2:compile
> 
> [*INFO*] |  +- com.google.code.gson:gson:jar:2.2.4:compile
> 
> [*INFO*] |  +- io.dropwizard.metrics:metrics-core:jar:3.2.5:compile
> 
> [*INFO*] |  +- io.dropwizard.metrics:metrics-graphite:jar:3.2.5:compile
> 
> [*INFO*] |  +- io.dropwizard.metrics:metrics-jvm:jar:3.2.5:compile
> 
> [*INFO*] |  +- com.kloudless:kloudless-java:jar:1.1.0:compile
> 
> [*INFO*] |  \- com.splunk:splunk:jar:1.6.3.0:compile
> 
> [*INFO*] +- org.apache.hive:hive-exec:jar:2.3.0:compile
> 
> [*INFO*] |  +- org.apache.hive:hive-vector-code-gen:jar:2.3.0:compile
> 
> [*INFO*] |  |  \- org.apache.velocity:velocity:jar:1.5:compile
> 
> [*INFO*] |  +- org.apache.hive:hive-llap-tez:jar:2.3.0:compile
> 
> [*INFO*] |  |  +- org.apache.hive:hive-common:jar:2.3.0:compile
> 
> [*INFO*] |  |  |  +-
> org.eclipse.jetty.aggregate:jetty-all:jar:7.6.0.v20120127:compile
> 
> [*INFO*] |  |  |  |  +-
> org.apache.geronimo.specs:geronimo-jta_1.1_spec:jar:1.1.1:compile
> 
> [*INFO*] |  |  |  |  +- javax.mail:mail:jar:1.4.1:compile
> 
> [*INFO*] |  |  |  |  +- javax.activation:activation:jar:1.1:compile
> 
> [*INFO*] |  |  |  |  +-
> org.apache.geronimo.specs:geronimo-jaspic_1.0_spec:jar:1.0:compile
> 
> [*INFO*] |  |  |  |  +-
> org.apache.geronimo.specs:geronimo-annotation_1.0_spec:jar:1.1.1:compile
> 
> [*INFO*] |  |  |  |  \- asm:asm-commons:jar:3.1:compile
> 
> [*INFO*] |  |  |  |     \- asm:asm-tree:jar:3.1:compile
> 
> [*INFO*] |  |  |  +-
> org.eclipse.jetty.orbit:javax.servlet:jar:3.0.0.v201112011016:compile
> 
> [*INFO*] |  |  |  +- org.apache.logging.log4j:log4j-web:jar:2.6.2:compile
> 
> [*INFO*] |  |  |  +- com.tdunning:json:jar:1.8:compile
> 
> [*INFO*] |  |  |  \-
> com.github.joshelser:dropwizard-metrics-hadoop-metrics2-reporter:jar:0.1.2:compile
> 
> [*INFO*] |  |  \- org.apache.hive:hive-llap-client:jar:2.3.0:compile
> 
> [*INFO*] |  |     \- org.apache.hive:hive-llap-common:jar:2.3.0:compile
> 
> [*INFO*] |  |        \- org.apache.hive:hive-serde:jar:2.3.0:compile
> 
> [*INFO*] |  |           +- org.apache.hive:hive-service-rpc:jar:2.3.0:compile
> 
> [*INFO*] |  |           |  \- org.apache.thrift:libfb303:jar:0.9.3:compile
> 
> [*INFO*] |  |           \- net.sf.opencsv:opencsv:jar:2.3:compile
> 
> [*INFO*] |  +- org.apache.hive:hive-shims:jar:2.3.0:compile
> 
> [*INFO*] |  |  +- org.apache.hive.shims:hive-shims-common:jar:2.3.0:compile
> 
> [*INFO*] |  |  |  \- org.apache.thrift:libthrift:jar:0.9.3:compile
> 
> [*INFO*] |  |  +- org.apache.hive.shims:hive-shims-0.23:jar:2.3.0:runtime
> 
> [*INFO*] |  |  |  \-
> org.apache.hadoop:hadoop-yarn-server-resourcemanager:jar:2.7.2:runtime
> 
> [*INFO*] |  |  |     +-
> com.google.inject.extensions:guice-servlet:jar:3.0:runtime
> 
> [*INFO*] |  |  |     +- com.google.inject:guice:jar:3.0:runtime
> 
> [*INFO*] |  |  |     |  +- javax.inject:javax.inject:jar:1:runtime
> 
> [*INFO*] |  |  |     |  \- aopalliance:aopalliance:jar:1.0:runtime
> 
> [*INFO*] |  |  |     +- com.sun.jersey.contribs:jersey-guice:jar:1.9:runtime
> 
> [*INFO*] |  |  |     +- com.sun.jersey:jersey-client:jar:1.9:runtime
> 
> [*INFO*] |  |  |     +-
> org.apache.hadoop:hadoop-yarn-server-common:jar:2.7.2:runtime
> 
> [*INFO*] |  |  |     +-
> org.apache.hadoop:hadoop-yarn-server-applicationhistoryservice:jar:2.7.2:runtime
> 
> [*INFO*] |  |  |     +-
> org.apache.hadoop:hadoop-yarn-server-web-proxy:jar:2.7.2:runtime
> 
> [*INFO*] |  |  |     \-
> org.apache.zookeeper:zookeeper:test-jar:tests:3.4.6:runtime
> 
> [*INFO*] |  |  \- org.apache.hive.shims:hive-shims-scheduler:jar:2.3.0:runtime
> 
> [*INFO*] |  +- commons-codec:commons-codec:jar:1.4:compile
> 
> [*INFO*] |  +- commons-httpclient:commons-httpclient:jar:3.0.1:compile
> 
> [*INFO*] |  +- org.apache.logging.log4j:log4j-1.2-api:jar:2.6.2:compile
> 
> [*INFO*] |  |  +- org.apache.logging.log4j:log4j-api:jar:2.6.2:compile
> 
> [*INFO*] |  |  \- org.apache.logging.log4j:log4j-core:jar:2.6.2:compile
> 
> [*INFO*] |  +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.6.2:compile
> 
> [*INFO*] |  +- org.antlr:antlr-runtime:jar:3.5.2:compile
> 
> [*INFO*] |  +- org.antlr:ST4:jar:4.0.4:compile
> 
> [*INFO*] |  +- org.apache.ant:ant:jar:1.9.1:compile
> 
> [*INFO*] |  |  \- org.apache.ant:ant-launcher:jar:1.9.1:compile
> 
> [*INFO*] |  +- org.apache.commons:commons-compress:jar:1.9:compile
> 
> [*INFO*] |  +- org.apache.ivy:ivy:jar:2.4.0:compile
> 
> [*INFO*] |  +- org.apache.zookeeper:zookeeper:jar:3.4.6:compile
> 
> [*INFO*] |  +- org.apache.curator:curator-framework:jar:2.7.1:compile
> 
> [*INFO*] |  +- org.apache.curator:apache-curator:pom:2.7.1:compile
> 
> [*INFO*] |  +- org.codehaus.groovy:groovy-all:jar:2.4.4:compile
> 
> [*INFO*] |  +- org.datanucleus:datanucleus-core:jar:4.1.17:compile
> 
> [*INFO*] |  +- org.apache.calcite:calcite-core:jar:1.10.0:compile
> 
> [*INFO*] |  |  +- org.apache.calcite:calcite-linq4j:jar:1.10.0:compile
> 
> [*INFO*] |  |  +- commons-dbcp:commons-dbcp:jar:1.4:compile
> 
> [*INFO*] |  |  |  \- commons-pool:commons-pool:jar:1.5.4:compile
> 
> [*INFO*] |  |  +- net.hydromatic:eigenbase-properties:jar:1.1.5:compile
> 
> [*INFO*] |  |  +- org.codehaus.janino:janino:jar:2.7.6:compile
> 
> [*INFO*] |  |  +- org.codehaus.janino:commons-compiler:jar:2.7.6:compile
> 
> [*INFO*] |  |  \-
> org.pentaho:pentaho-aggdesigner-algorithm:jar:5.1.5-jhyde:compile
> 
> [*INFO*] |  +- org.apache.calcite:calcite-druid:jar:1.10.0:compile
> 
> [*INFO*] |  +- org.apache.calcite.avatica:avatica:jar:1.8.0:compile
> 
> [*INFO*] |  |  \- org.apache.calcite.avatica:avatica-metrics:jar:1.8.0:compile
> 
> [*INFO*] |  +- stax:stax-api:jar:1.0.1:compile
> 
> [*INFO*] |  \- org.slf4j:slf4j-api:jar:1.7.10:compile
> 
> [*INFO*] +- com.idealista:format-preserving-encryption:jar:1.0.0:compile
> 
> [*INFO*] +- org.apache.pig:pig:jar:0.17.0:compile
> 
> [*INFO*] |  +- xmlenc:xmlenc:jar:0.52:compile
> 
> [*INFO*] |  +- commons-net:commons-net:jar:3.1:compile
> 
> [*INFO*] |  +- org.mortbay.jetty:jetty:jar:6.1.26:compile
> 
> [*INFO*] |  |  \- org.mortbay.jetty:servlet-api:jar:2.5-20081211:compile
> 
> [*INFO*] |  +- org.mortbay.jetty:jetty-util:jar:6.1.26:compile
> 
> [*INFO*] |  +- org.mortbay.jetty:jsp-api-2.1:jar:6.1.14:compile
> 
> [*INFO*] |  |  \- org.mortbay.jetty:servlet-api-2.5:jar:6.1.14:compile
> 
> [*INFO*] |  +- org.mortbay.jetty:jsp-2.1:jar:6.1.14:compile
> 
> [*INFO*] |  |  \- ant:ant:jar:1.6.5:compile
> 
> [*INFO*] |  +- commons-el:commons-el:jar:1.0:compile
> 
> [*INFO*] |  +- net.java.dev.jets3t:jets3t:jar:0.9.0:compile
> 
> [*INFO*] |  |  \- com.jamesmurty.utils:java-xmlbuilder:jar:0.4:compile
> 
> [*INFO*] |  +- javax.servlet:servlet-api:jar:2.5:compile
> 
> [*INFO*] |  +- hsqldb:hsqldb:jar:1.8.0.10:compile
> 
> [*INFO*] |  +- jline:jline:jar:2.11:compile
> 
> [*INFO*] |  +- dk.brics.automaton:automaton:jar:1.11-8:compile
> 
> [*INFO*] |  +- com.google.guava:guava:jar:11.0:compile
> 
> [*INFO*] |  +- org.codehaus.jackson:jackson-core-asl:jar:1.9.13:compile
> 
> [*INFO*] |  \- org.apache.avro:avro:jar:1.7.5:compile
> 
> [*INFO*] |     \- com.thoughtworks.paranamer:paranamer:jar:2.3:compile
> 
> [*INFO*] +- junit:junit:jar:4.12:test
> 
> [*INFO*] |  \- org.hamcrest:hamcrest-core:jar:1.3:test
> 
> [*INFO*] +- org.apache.hadoop:hadoop-common:jar:2.7.3:provided
> 
> [*INFO*] |  +- org.apache.hadoop:hadoop-annotations:jar:2.7.3:compile
> 
> [*INFO*] |  |  \- jdk.tools:jdk.tools:jar:1.8:system
> 
> [*INFO*] |  +- org.apache.commons:commons-math3:jar:3.1.1:provided
> 
> [*INFO*] |  +- commons-collections:commons-collections:jar:3.2.2:compile
> 
> [*INFO*] |  +- javax.servlet.jsp:jsp-api:jar:2.1:provided
> 
> [*INFO*] |  +- com.sun.jersey:jersey-core:jar:1.9:compile
> 
> [*INFO*] |  +- com.sun.jersey:jersey-json:jar:1.9:compile
> 
> [*INFO*] |  |  +- org.codehaus.jettison:jettison:jar:1.1:compile
> 
> [*INFO*] |  |  +- com.sun.xml.bind:jaxb-impl:jar:2.2.3-1:compile
> 
> [*INFO*] |  |  |  \- javax.xml.bind:jaxb-api:jar:2.2.2:compile
> 
> [*INFO*] |  |  |     \- javax.xml.stream:stax-api:jar:1.0-2:compile
> 
> [*INFO*] |  |  +- org.codehaus.jackson:jackson-jaxrs:jar:1.8.3:compile
> 
> [*INFO*] |  |  \- org.codehaus.jackson:jackson-xc:jar:1.8.3:compile
> 
> [*INFO*] |  +- com.sun.jersey:jersey-server:jar:1.9:compile
> 
> [*INFO*] |  |  \- asm:asm:jar:3.1:compile
> 
> [*INFO*] |  +- commons-logging:commons-logging:jar:1.1.3:compile
> 
> [*INFO*] |  +- commons-lang:commons-lang:jar:2.6:compile
> 
> [*INFO*] |  +- commons-configuration:commons-configuration:jar:1.6:compile
> 
> [*INFO*] |  |  +- commons-digester:commons-digester:jar:1.8:compile
> 
> [*INFO*] |  |  |  \- commons-beanutils:commons-beanutils:jar:1.7.0:compile
> 
> [*INFO*] |  |  \- commons-beanutils:commons-beanutils-core:jar:1.8.0:compile
> 
> [*INFO*] |  +- org.slf4j:slf4j-log4j12:jar:1.7.10:compile
> 
> [*INFO*] |  +- com.google.protobuf:protobuf-java:jar:2.5.0:compile
> 
> [*INFO*] |  +- org.apache.hadoop:hadoop-auth:jar:2.7.3:provided
> 
> [*INFO*] |  |  \-
> org.apache.directory.server:apacheds-kerberos-codec:jar:2.0.0-M15:provided
> 
> [*INFO*] |  |     +-
> org.apache.directory.server:apacheds-i18n:jar:2.0.0-M15:provided
> 
> [*INFO*] |  |     +-
> org.apache.directory.api:api-asn1-api:jar:1.0.0-M20:provided
> 
> [*INFO*] |  |     \- org.apache.directory.api:api-util:jar:1.0.0-M20:provided
> 
> [*INFO*] |  +- com.jcraft:jsch:jar:0.1.42:provided
> 
> [*INFO*] |  +- org.apache.curator:curator-client:jar:2.7.1:compile
> 
> [*INFO*] |  +- org.apache.curator:curator-recipes:jar:2.7.1:provided
> 
> [*INFO*] |  +- com.google.code.findbugs:jsr305:jar:3.0.0:compile
> 
> [*INFO*] |  \- org.apache.htrace:htrace-core:jar:3.1.0-incubating:provided
> 
> [*INFO*] +- org.apache.hadoop:hadoop-core:jar:1.2.1:compile
> 
> [*INFO*] |  +- org.apache.commons:commons-math:jar:2.1:compile
> 
> [*INFO*] |  +- tomcat:jasper-runtime:jar:5.5.12:compile
> 
> [*INFO*] |  +- tomcat:jasper-compiler:jar:5.5.12:compile
> 
> [*INFO*] |  +- oro:oro:jar:2.0.8:compile
> 
> [*INFO*] |  \- org.eclipse.jdt:core:jar:3.1.1:compile
> 
> [*INFO*] +- org.apache.parquet:parquet-hadoop:jar:1.8.1:provided
> 
> [*INFO*] |  +- org.apache.parquet:parquet-column:jar:1.8.1:provided
> 
> [*INFO*] |  |  +- org.apache.parquet:parquet-common:jar:1.8.1:provided
> 
> [*INFO*] |  |  \- org.apache.parquet:parquet-encoding:jar:1.8.1:provided
> 
> [*INFO*] |  +- org.apache.parquet:parquet-format:jar:2.3.0-incubating:compile
> 
> [*INFO*] |  +- org.apache.parquet:parquet-jackson:jar:1.8.1:provided
> 
> [*INFO*] |  \- org.xerial.snappy:snappy-java:jar:1.1.1.6:compile
> 
> [*INFO*] +- org.apache.parquet:parquet-hadoop-bundle:jar:1.8.1:provided
> 
> [*INFO*] +- org.apache.parquet:parquet-tools:jar:1.8.1:provided
> 
> [*INFO*] +- org.apache.parquet:parquet-avro:jar:1.8.1:compile
> 
> [*INFO*] |  \- it.unimi.dsi:fastutil:jar:6.5.7:compile
> 
> [*INFO*] +- commons-cli:commons-cli:jar:1.2:compile
> 
> [*INFO*] +- org.apache.commons:commons-csv:jar:1.5:compile
> 
> [*INFO*] +- org.apache.hbase:hbase-common:jar:1.4.1:provided
> 
> [*INFO*] |  +- org.apache.hbase:hbase-protocol:jar:1.4.1:provided
> 
> [*INFO*] |  +- org.apache.hbase:hbase-annotations:jar:1.4.1:provided
> 
> [*INFO*] |  +- 
> org.apache.hadoop:hadoop-mapreduce-client-core:jar:2.7.4:compile
> 
> [*INFO*] |  |  \- org.apache.hadoop:hadoop-yarn-common:jar:2.7.4:compile
> 
> [*INFO*] |  \- 
> com.github.stephenc.findbugs:findbugs-annotations:jar:1.3.9-1:provided
> 
> [*INFO*] +- org.apache.hbase:hbase-client:jar:1.4.1:provided
> 
> [*INFO*] |  +- org.apache.hbase:hbase-hadoop-compat:jar:1.4.1:provided
> 
> [*INFO*] |  |  \- org.apache.hbase:hbase-metrics-api:jar:1.4.1:provided
> 
> [*INFO*] |  +- org.apache.hbase:hbase-hadoop2-compat:jar:1.4.1:provided
> 
> [*INFO*] |  |  \- org.apache.hbase:hbase-metrics:jar:1.4.1:provided
> 
> [*INFO*] |  +- io.netty:netty-all:jar:4.1.8.Final:provided
> 
> [*INFO*] |  +- org.jruby.jcodings:jcodings:jar:1.0.8:provided
> 
> [*INFO*] |  +- org.jruby.joni:joni:jar:2.1.2:provided
> 
> [*INFO*] |  \- com.yammer.metrics:metrics-core:jar:2.2.0:compile
> 
> [*INFO*] +- org.ojai:ojai:jar:2.0-mapr-1710:compile
> 
> [*INFO*] |  +- org.antlr:antlr4-runtime:jar:4.5:compile
> 
> [*INFO*] |  +- 
> com.fasterxml.jackson.core:jackson-annotations:jar:2.7.2:compile
> 
> [*INFO*] |  +- com.fasterxml.jackson.core:jackson-core:jar:2.7.2:compile
> 
> [*INFO*] |  \- com.fasterxml.jackson.core:jackson-databind:jar:2.7.2:compile
> 
> [*INFO*] +- org.apache.orc:orc-mapreduce:jar:1.1.0:compile
> 
> [*INFO*] |  +- org.apache.orc:orc-core:jar:1.1.0:compile
> 
> [*INFO*] |  |  +- org.apache.hadoop:hadoop-hdfs:jar:2.6.0:compile
> 
> [*INFO*] |  |  |  +- commons-daemon:commons-daemon:jar:1.0.13:compile
> 
> [*INFO*] |  |  |  +- xerces:xercesImpl:jar:2.9.1:compile
> 
> [*INFO*] |  |  |  \- org.htrace:htrace-core:jar:3.0.4:compile
> 
> [*INFO*] |  |  \- org.iq80.snappy:snappy:jar:0.2:compile
> 
> [*INFO*] |  +- com.esotericsoftware:kryo-shaded:jar:3.0.3:compile
> 
> [*INFO*] |  |  +- com.esotericsoftware:minlog:jar:1.3.0:compile
> 
> [*INFO*] |  |  \- org.objenesis:objenesis:jar:2.1:compile
> 
> [*INFO*] |  \- org.apache.hive:hive-storage-api:jar:2.1.0-pre-orc:compile
> 
> [*INFO*] +- com.alibaba:dubbo:jar:2.5.9:compile
> 
> [*INFO*] |  +- org.springframework:spring-context:jar:4.3.10.RELEASE:compile
> 
> [*INFO*] |  |  +- org.springframework:spring-aop:jar:4.3.10.RELEASE:compile
> 
> [*INFO*] |  |  +- org.springframework:spring-core:jar:4.3.10.RELEASE:compile
> 
> [*INFO*] |  |  \-
> org.springframework:spring-expression:jar:4.3.10.RELEASE:compile
> 
> [*INFO*] |  +- org.springframework:spring-beans:jar:4.3.10.RELEASE:compile
> 
> [*INFO*] |  +- org.springframework:spring-web:jar:4.3.10.RELEASE:compile
> 
> [*INFO*] |  +- org.javassist:javassist:jar:3.20.0-GA:compile
> 
> [*INFO*] |  \- org.jboss.netty:netty:jar:3.2.5.Final:compile
> 
> [*INFO*] +- org.apache.spark:spark-core_2.11:jar:2.0.0:provided
> 
> [*INFO*] |  +- org.apache.avro:avro-mapred:jar:hadoop2:1.7.7:provided
> 
> [*INFO*] |  |  +- org.apache.avro:avro-ipc:jar:1.7.7:provided
> 
> [*INFO*] |  |  \- org.apache.avro:avro-ipc:jar:tests:1.7.7:provided
> 
> [*INFO*] |  +- com.twitter:chill_2.11:jar:0.8.0:provided
> 
> [*INFO*] |  +- com.twitter:chill-java:jar:0.8.0:provided
> 
> [*INFO*] |  +- org.apache.xbean:xbean-asm5-shaded:jar:4.4:provided
> 
> [*INFO*] |  +- org.apache.hadoop:hadoop-client:jar:2.2.0:provided
> 
> [*INFO*] |  |  +-
> org.apache.hadoop:hadoop-mapreduce-client-app:jar:2.2.0:provided
> 
> [*INFO*] |  |  |  +-
> org.apache.hadoop:hadoop-mapreduce-client-common:jar:2.2.0:provided
> 
> [*INFO*] |  |  |  |  \- 
> org.apache.hadoop:hadoop-yarn-client:jar:2.2.0:provided
> 
> [*INFO*] |  |  |  \-
> org.apache.hadoop:hadoop-mapreduce-client-shuffle:jar:2.2.0:provided
> 
> [*INFO*] |  |  +- org.apache.hadoop:hadoop-yarn-api:jar:2.2.0:compile
> 
> [*INFO*] |  |  \-
> org.apache.hadoop:hadoop-mapreduce-client-jobclient:jar:2.2.0:provided
> 
> [*INFO*] |  +- org.apache.spark:spark-launcher_2.11:jar:2.0.0:provided
> 
> [*INFO*] |  +- org.apache.spark:spark-network-common_2.11:jar:2.0.0:provided
> 
> [*INFO*] |  +- org.apache.spark:spark-network-shuffle_2.11:jar:2.0.0:provided
> 
> [*INFO*] |  |  \- org.fusesource.leveldbjni:leveldbjni-all:jar:1.8:runtime
> 
> [*INFO*] |  +- org.apache.spark:spark-unsafe_2.11:jar:2.0.0:provided
> 
> [*INFO*] |  +- javax.servlet:javax.servlet-api:jar:3.1.0:provided
> 
> [*INFO*] |  +- org.slf4j:jul-to-slf4j:jar:1.7.16:provided
> 
> [*INFO*] |  +- org.slf4j:jcl-over-slf4j:jar:1.7.16:provided
> 
> [*INFO*] |  +- com.ning:compress-lzf:jar:1.0.3:provided
> 
> [*INFO*] |  +- net.jpountz.lz4:lz4:jar:1.3.0:compile
> 
> [*INFO*] |  +- org.roaringbitmap:RoaringBitmap:jar:0.5.11:provided
> 
> [*INFO*] |  +- org.scala-lang:scala-library:jar:2.11.8:compile
> 
> [*INFO*] |  +- org.json4s:json4s-jackson_2.11:jar:3.2.11:provided
> 
> [*INFO*] |  |  \- org.json4s:json4s-core_2.11:jar:3.2.11:provided
> 
> [*INFO*] |  |     +- org.json4s:json4s-ast_2.11:jar:3.2.11:provided
> 
> [*INFO*] |  |     \- org.scala-lang:scalap:jar:2.11.0:provided
> 
> [*INFO*] |  |        \- org.scala-lang:scala-compiler:jar:2.11.0:provided
> 
> [*INFO*] |  |           \-
> org.scala-lang.modules:scala-parser-combinators_2.11:jar:1.0.1:provided
> 
> [*INFO*] |  +- org.glassfish.jersey.core:jersey-client:jar:2.22.2:provided
> 
> [*INFO*] |  |  +- javax.ws.rs:javax.ws.rs-api:jar:2.0.1:provided
> 
> [*INFO*] |  |  +- org.glassfish.hk2:hk2-api:jar:2.4.0-b34:provided
> 
> [*INFO*] |  |  |  +- org.glassfish.hk2:hk2-utils:jar:2.4.0-b34:provided
> 
> [*INFO*] |  |  |  \-
> org.glassfish.hk2.external:aopalliance-repackaged:jar:2.4.0-b34:provided
> 
> [*INFO*] |  |  +- 
> org.glassfish.hk2.external:javax.inject:jar:2.4.0-b34:provided
> 
> [*INFO*] |  |  \- org.glassfish.hk2:hk2-locator:jar:2.4.0-b34:provided
> 
> [*INFO*] |  +- org.glassfish.jersey.core:jersey-common:jar:2.22.2:provided
> 
> [*INFO*] |  |  +- javax.annotation:javax.annotation-api:jar:1.2:provided
> 
> [*INFO*] |  |  +-
> org.glassfish.jersey.bundles.repackaged:jersey-guava:jar:2.22.2:provided
> 
> [*INFO*] |  |  \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.1:provided
> 
> [*INFO*] |  +- org.glassfish.jersey.core:jersey-server:jar:2.22.2:provided
> 
> [*INFO*] |  |  +-
> org.glassfish.jersey.media:jersey-media-jaxb:jar:2.22.2:provided
> 
> [*INFO*] |  |  \- javax.validation:validation-api:jar:1.1.0.Final:provided
> 
> [*INFO*] |  +- 
> org.glassfish.jersey.containers:jersey-container-servlet:jar:2.22.2:provided
> 
> [*INFO*] |  +- 
> org.glassfish.jersey.containers:jersey-container-servlet-core:jar:2.22.2:provided
> 
> [*INFO*] |  +- org.apache.mesos:mesos:jar:shaded-protobuf:0.21.1:provided
> 
> [*INFO*] |  +- io.netty:netty:jar:3.8.0.Final:compile
> 
> [*INFO*] |  +- com.clearspring.analytics:stream:jar:2.7.0:provided
> 
> [*INFO*] |  +- io.dropwizard.metrics:metrics-json:jar:3.1.2:compile
> 
> [*INFO*] |  +- 
> com.fasterxml.jackson.module:jackson-module-scala_2.11:jar:2.6.5:provided
> 
> [*INFO*] |  |  +- org.scala-lang:scala-reflect:jar:2.11.7:provided
> 
> [*INFO*] |  |  \-
> com.fasterxml.jackson.module:jackson-module-paranamer:jar:2.6.5:provided
> 
> [*INFO*] |  +- net.razorvine:pyrolite:jar:4.9:provided
> 
> [*INFO*] |  +- net.sf.py4j:py4j:jar:0.10.1:provided
> 
> [*INFO*] |  +- org.apache.spark:spark-tags_2.11:jar:2.0.0:provided
> 
> [*INFO*] |  |  \- org.scalatest:scalatest_2.11:jar:2.2.6:provided
> 
> [*INFO*] |  |     \- org.scala-lang.modules:scala-xml_2.11:jar:1.0.2:provided
> 
> [*INFO*] |  \- org.spark-project.spark:unused:jar:1.0.0:provided
> 
> [*INFO*] +- org.apache.spark:spark-sql_2.11:jar:2.0.0:provided
> 
> [*INFO*] |  +- com.univocity:univocity-parsers:jar:2.1.1:provided
> 
> [*INFO*] |  +- org.apache.spark:spark-sketch_2.11:jar:2.0.0:provided
> 
> [*INFO*] |  \- org.apache.spark:spark-catalyst_2.11:jar:2.0.0:provided
> 
> [*INFO*] +- org.apache.kafka:kafka_2.10:jar:0.10.0.0:compile
> 
> [*INFO*] |  +- com.101tec:zkclient:jar:0.8:compile
> 
> [*INFO*] |  +- org.apache.kafka:kafka-clients:jar:0.10.0.0:compile
> 
> [*INFO*] |  \- net.sf.jopt-simple:jopt-simple:jar:4.9:compile
> 
> [*INFO*] +- org.apache.kafka:connect-transforms:jar:1.0.0:compile
> 
> [*INFO*] \- org.apache.kafka:connect-api:jar:1.0.0:compile
> 
> 
> I am getting following exception while running the jar -
> 
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at com.demo.cry.DubboCryFactory.createInstance(DubboCryFactory.java:55)
> at com.demo.cry.DubboRPCTest.main(DubboRPCTest.java:26)
> Caused by: java.lang.IllegalStateException: fail to create adaptive
> instance: java.lang.IllegalStateException: Can not create adaptive
> extension interface
> com.alibaba.dubbo.common.extension.ExtensionFactory, cause: No
> adaptive method on extension
> com.alibaba.dubbo.common.extension.ExtensionFactory, refuse to create
> the adaptive class!
> at 
> com.alibaba.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:447)
> at 
> com.alibaba.dubbo.common.extension.ExtensionLoader.(ExtensionLoader.java:98)
> at 
> com.alibaba.dubbo.common.extension.ExtensionLoader.getExtensionLoader(ExtensionLoader.java:119)
> at com.alibaba.dubbo.config.ReferenceConfig.(ReferenceConfig.java:67)
> 
> 
> Can some help me out here. If I create a jar with only dubbo consumer
> then it works but when I add the consumer to my module, then it fails
> to create the extensions. What is wrong here.
> 
> With Regards,
> Milind Karandikar

Reply via email to