IncompatibleClassChangeError

原创 2017年06月14日 10:08:46

java.lang.IncompatibleClassChangeError: Found interface org.objectweb.asm.MethodVisitor, but class was expected

at com.esotericsoftware.reflectasm.ConstructorAccess.insertConstructor(ConstructorAccess.java:128)

at com.esotericsoftware.reflectasm.ConstructorAccess.get(ConstructorAccess.java:98)

at com.esotericsoftware.kryo.Kryo$DefaultInstantiatorStrategy.newInstantiatorOf(Kryo.java:1271)

at com.esotericsoftware.kryo.Kryo.newInstantiator(Kryo.java:1127)

at com.esotericsoftware.kryo.Kryo.newInstance(Kryo.java:1136)

at com.esotericsoftware.kryo.serializers.MapSerializer.create(MapSerializer.java:120)

at com.esotericsoftware.kryo.serializers.MapSerializer.read(MapSerializer.java:124)

at com.esotericsoftware.kryo.serializers.MapSerializer.read(MapSerializer.java:39)

at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:813)

at com.alibaba.dubbo.common.serialize.support.kryo.KryoObjectInput.readObject(KryoObjectInput.java:125)

at com.alibaba.dubbo.common.serialize.support.kryo.KryoObjectInput.readObject(KryoObjectInput.java:140)

at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:146)

at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:74)

at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec.decodeBody(DubboCodec.java:138)

at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:134)

at com.alibaba.dubbo.remoting.exchange.codec.ExchangeCodec.decode(ExchangeCodec.java:95)

at com.alibaba.dubbo.rpc.protocol.dubbo.DubboCountCodec.decode(DubboCountCodec.java:46)

at com.alibaba.dubbo.remoting.transport.netty.NettyCodecAdapter$InternalDecoder.messageReceived(NettyCodecAdapter.java:134)

at org.jboss.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)

at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)

at org.jboss.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)

at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:268)

at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:255)

at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)

at org.jboss.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)

at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:337)

at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)

at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)

at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)

at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

at java.lang.Thread.run(Thread.java:745)

2017-06-14 10:03:07,808 ERROR [ExceptionFilter.java:87] :  [DUBBO] Got unchecked and undeclared exception which called by 192.168.10.101. service: com.lobo.user.service.api.IUserRegisterService, method: updateTokenOrCreateId, exception: com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method updateYunxinToken in the service com.lobo.im.service.api.IYunxinService. Tried 3 times of the providers [192.168.10.101:20882] (1/1) from the registry 192.168.10.16:2181 on the consumer 192.168.10.101 using the dubbo version 2.8.4. Last error is: Failed to invoke remote method: updateYunxinToken, provider: dubbo://192.168.10.101:20882/com.lobo.im.service.api.IYunxinService?anyhost=true&application=lobo-user-provider&check=false&dubbo=2.8.4&generic=false&interface=com.lobo.im.service.api.IYunxinService&methods=updateYunxinToken,createYunxinId&optimizer=com.lobo.im.service.serialization.SerializationOptimizerImpl&organization=dubbox&owner=programmer&pid=2086&serialization=kryo&side=consumer&timestamp=1497405769377, cause: Fail to decode request due to: RpcInvocation [methodName=updateYunxinToken, parameterTypes=[class java.lang.String, class java.lang.String], arguments=null, attachments={path=com.lobo.im.service.api.IYunxinService, input=264, dubbo=2.8.4, version=0.0.0}], dubbo version: 2.8.4, current host: 192.168.10.101

com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method updateYunxinToken in the service com.lobo.im.service.api.IYunxinService. Tried 3 times of the providers [192.168.10.101:20882] (1/1) from the registry 192.168.10.16:2181 on the consumer 192.168.10.101 using the dubbo version 2.8.4. Last error is: Failed to invoke remote method: updateYunxinToken, provider: dubbo://192.168.10.101:20882/com.lobo.im.service.api.IYunxinService?anyhost=true&application=lobo-user-provider&check=false&dubbo=2.8.4&generic=false&interface=com.lobo.im.service.api.IYunxinService&methods=updateYunxinToken,createYunxinId&optimizer=com.lobo.im.service.serialization.SerializationOptimizerImpl&organization=dubbox&owner=programmer&pid=2086&serialization=kryo&side=consumer&timestamp=1497405769377, cause: Fail to decode request due to: RpcInvocation [methodName=updateYunxinToken, parameterTypes=[class java.lang.String, class java.lang.String], arguments=null, attachments={path=com.lobo.im.service.api.IYunxinService, input=264, dubbo=2.8.4, version=0.0.0}]

at com.alibaba.dubbo.rpc.cluster.support.FailoverClusterInvoker.doInvoke(FailoverClusterInvoker.java:108)

at com.alibaba.dubbo.rpc.cluster.support.AbstractClusterInvoker.invoke(AbstractClusterInvoker.java:227)

at com.alibaba.dubbo.rpc.cluster.support.wrapper.MockClusterInvoker.invoke(MockClusterInvoker.java:72)

at com.alibaba.dubbo.rpc.proxy.InvokerInvocationHandler.invoke(InvokerInvocationHandler.java:52)

at com.alibaba.dubbo.common.bytecode.proxy5.updateYunxinToken(proxy5.java)

at com.lobo.user.service.UserRegisterServiceImpl.updateTokenOrCreateId(UserRegisterServiceImpl.java:315)



原因:spring包中已经依赖了asm5.0.4.jar,然后同事加了一个maven插件(maven-dependency-plugin),这个插件又依赖的asm3.3.1.jar,导致包冲突

解决办法:把maven插件去了


关于java.lang.IncompatibleClassChangeError: Implementing class错误解决

在尝试elastic-job 分布式任务时,跑example代码,任务正常启动。把example迁移到我们自己的应用后,发现无法启动,报错如下: Exception in thread "main" ...
  • yaowj2
  • yaowj2
  • 2015年11月26日 18:40
  • 18068

解决java.lang.IncompatibleClassChangeError

今天整理了Maven的pom.xml文件后,把多个项目用maven集成在了一起,结果在启动Tomcat的时候,遇到一个奇葩的错误: 严重: Servlet [spring] in web app...
  • znit2003
  • znit2003
  • 2017年06月13日 16:54
  • 728

JAVA常见问题解决办法汇总

1.java.lang.NullPointerException        原因是:有空指针,有地址没赋值 2.Exception in thread "main" java.lang.Ari...
  • shengmingqijiquan
  • shengmingqijiquan
  • 2016年04月17日 22:33
  • 24237

jar包问题的解决:java.lang.IncompatibleClassChangeError

摘要 在集成多maven项目的时候,出现了这个错,于是记录下解决的过程。 今天整理了Maven的pom.xml文件后,把多个项目用maven集成在了一起,结果在启动Tomcat的时候,遇到一个奇葩的错...
  • w1014074794
  • w1014074794
  • 2016年09月07日 09:51
  • 2229

Exception in thread "main" java.lang.IncompatibleClassChangeError: Found class com.squareup.okhttp.C

jdk1.6,用七牛的sdk的时候,出现错误 解决方法: qiniu-java-sdk-7.0.8.jar版本太高 换成 qiniu-java-sdk-7.0.0.jar就行 ...
  • zjy660358
  • zjy660358
  • 2016年06月06日 16:05
  • 1053

hive on spark 编译

前置条件说明Hive on Spark是Hive跑在Spark上,用的是Spark执行引擎,而不是MapReduce,和Hive on Tez的道理一样。 从Hive 1.1版本开始,Hive on...
  • stark_summer
  • stark_summer
  • 2015年09月15日 14:02
  • 31378

activeandroid在android5.0报IncompatibleClassChangeError错误

activeandroid在android5.0报IncompatibleClassChangeError错误
  • zhangshao45612
  • zhangshao45612
  • 2017年01月10日 15:55
  • 848

IncompatibleClassChangeError

java.lang.IncompatibleClassChangeError 在用poi使报出以上错误,可能是jar包冲突,在myeclipse删掉重复jar包之后,启动tomcat还不错误,然后发现...
  • oBaiBaShiGe
  • oBaiBaShiGe
  • 2013年09月03日 08:45
  • 550

在linux用wget直接下载JDK

在linux用wget直接下载JDK wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2F...
  • shangpusp
  • shangpusp
  • 2013年12月21日 16:40
  • 8234

Hive学习3_错误:hive startup -[ERROR] Terminal initialization failed; falling back to unsupported

在启动Hive时,遇到错误: [hadoop@Master apache-hive-1.2.1-bin]$ bin/hive Logging initialized using configu...
  • wang_zhenwei
  • wang_zhenwei
  • 2016年01月22日 14:54
  • 648
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:IncompatibleClassChangeError
举报原因:
原因补充:

(最多只允许输入30个字)