You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2018/07/27 04:32:42 UTC

[GitHub] beiwei30 commented on issue #2134: java.lang.NoClassDefFoundError in com.alibaba:dubbo-rpc-thrift, due to dependency conflict issue

beiwei30 commented on issue #2134: java.lang.NoClassDefFoundError in com.alibaba:dubbo-rpc-thrift, due to dependency conflict issue
URL: https://github.com/apache/incubator-dubbo/issues/2134#issuecomment-408308419
 
 
   @LeoAugust19 
   
   dubbo-rpc-thrift doesn't introduce multiple versions for http-core. I think the only reason you see two versions is because you introduce `org.apache.http.impl.conn.Wire` in `org.apache.dubbo.rpc.protocol.thrift.io.RandomAccessByteArrayOutputStream`, which is only available in http-client 4.5.3.
   
   ```sh
   [INFO] ------------------------------------------------------------------------
   [INFO] Building dubbo-rpc-thrift 2.7.0-SNAPSHOT
   [INFO] ------------------------------------------------------------------------
   [INFO] 
   [INFO] --- maven-dependency-plugin:2.10:tree (default-cli) @ dubbo-rpc-thrift ---
   [INFO] org.apache.dubbo:dubbo-rpc-thrift:jar:2.7.0-SNAPSHOT
   [INFO] +- org.apache.dubbo:dubbo-rpc-api:jar:2.7.0-SNAPSHOT:compile
   [INFO] |  +- org.apache.dubbo:dubbo-common:jar:2.7.0-SNAPSHOT:compile
   [INFO] |  |  +- commons-logging:commons-logging:jar:1.2:compile
   [INFO] |  |  +- log4j:log4j:jar:1.2.16:compile
   [INFO] |  |  +- org.javassist:javassist:jar:3.20.0-GA:compile
   [INFO] |  |  +- com.alibaba:hessian-lite:jar:3.2.3:compile
   [INFO] |  |  +- com.alibaba:fastjson:jar:1.2.46:compile
   [INFO] |  |  +- com.esotericsoftware:kryo:jar:4.0.1:compile
   [INFO] |  |  |  +- com.esotericsoftware:reflectasm:jar:1.11.3:compile
   [INFO] |  |  |  |  \- org.ow2.asm:asm:jar:5.0.4:compile
   [INFO] |  |  |  \- com.esotericsoftware:minlog:jar:1.3.0:compile
   [INFO] |  |  +- de.javakaffee:kryo-serializers:jar:0.42:compile
   [INFO] |  |  \- de.ruedigermoeller:fst:jar:2.48-jdk-6:compile
   [INFO] |  |     +- com.fasterxml.jackson.core:jackson-core:jar:2.8.6:compile
   [INFO] |  |     \- com.cedarsoftware:java-util:jar:1.9.0:compile
   [INFO] |  |        \- com.cedarsoftware:json-io:jar:2.5.1:compile
   [INFO] |  \- org.apache.dubbo:dubbo-serialization-api:jar:2.7.0-SNAPSHOT:compile
   [INFO] +- org.apache.dubbo:dubbo-rpc-dubbo:jar:2.7.0-SNAPSHOT:compile
   [INFO] |  \- org.apache.dubbo:dubbo-container-api:jar:2.7.0-SNAPSHOT:compile
   [INFO] +- org.apache.dubbo:dubbo-remoting-api:jar:2.7.0-SNAPSHOT:compile
   [INFO] +- org.apache.dubbo:dubbo-remoting-netty4:jar:2.7.0-SNAPSHOT:compile
   [INFO] |  \- io.netty:netty-all:jar:4.1.25.Final:compile
   [INFO] +- org.apache.thrift:libthrift:jar:0.8.0:compile
   [INFO] |  +- org.slf4j:slf4j-api:jar:1.7.25:compile
   [INFO] |  +- commons-lang:commons-lang:jar:2.5:compile
   [INFO] |  +- org.apache.httpcomponents:httpclient:jar:4.5.3:compile
   [INFO] |  |  \- commons-codec:commons-codec:jar:1.9:compile
   [INFO] |  \- org.apache.httpcomponents:httpcore:jar:4.1.3:compile
   [INFO] +- org.springframework:spring-context:jar:4.3.16.RELEASE:compile
   [INFO] |  +- org.springframework:spring-aop:jar:4.3.16.RELEASE:compile
   [INFO] |  +- org.springframework:spring-beans:jar:4.3.16.RELEASE:compile
   [INFO] |  +- org.springframework:spring-core:jar:4.3.16.RELEASE:compile
   [INFO] |  \- org.springframework:spring-expression:jar:4.3.16.RELEASE:compile
   [INFO] +- org.apache.dubbo:dubbo-config-spring:jar:2.7.0-SNAPSHOT:test
   [INFO] |  +- org.apache.dubbo:dubbo-config-api:jar:2.7.0-SNAPSHOT:test
   [INFO] |  |  +- org.apache.dubbo:dubbo-monitor-api:jar:2.7.0-SNAPSHOT:test
   [INFO] |  |  +- org.apache.dubbo:dubbo-filter-validation:jar:2.7.0-SNAPSHOT:test
   [INFO] |  |  |  \- javax.validation:validation-api:jar:1.1.0.Final:test
   [INFO] |  |  \- org.apache.dubbo:dubbo-filter-cache:jar:2.7.0-SNAPSHOT:test
   [INFO] |  |     \- javax.cache:cache-api:jar:1.0.0:test
   [INFO] |  +- org.apache.dubbo:dubbo-bootstrap:jar:2.7.0-SNAPSHOT:test
   [INFO] |  +- org.springframework:spring-web:jar:4.3.16.RELEASE:test
   [INFO] |  \- org.apache.dubbo:dubbo-rpc-injvm:jar:2.7.0-SNAPSHOT:test
   [INFO] +- org.apache.dubbo:dubbo-registry-multicast:jar:2.7.0-SNAPSHOT:test
   [INFO] |  \- org.apache.dubbo:dubbo-registry-api:jar:2.7.0-SNAPSHOT:test
   [INFO] |     \- org.apache.dubbo:dubbo-cluster:jar:2.7.0-SNAPSHOT:test
   [INFO] +- junit:junit:jar:4.12:test
   [INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:test
   [INFO] +- org.hamcrest:hamcrest-all:jar:1.3:test
   [INFO] +- org.mockito:mockito-core:jar:2.18.3:test
   [INFO] |  +- net.bytebuddy:byte-buddy:jar:1.8.5:test
   [INFO] |  +- net.bytebuddy:byte-buddy-agent:jar:1.8.5:test
   [INFO] |  \- org.objenesis:objenesis:jar:2.6:compile
   [INFO] \- cglib:cglib-nodep:jar:2.2:test
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org