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×tamp=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×tamp=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插件去了