Comments (8)
无法重现此问题
from dubbox.
这种问题序列化时我也经常遇见
from dubbox.
这个可能是Kyro的问题
from dubbox.
可以重现呀。环境是JDK7。在远程方法调用时就会出现。配置改成hessian2,就一切正常。
查了一下,当服务的方法参数含有Java原生数据类型时(比如int,long等),com.alibaba.dubbo.rpc.protocol.dubbo.DubboCodec类中的encodeRequestData方法中 标记有 // NOTICE modified by lishen 的部分会跳入out.writeInt(-1);,导致后续解码的时候出错。
from dubbox.
你可以发个可以重现的代码
from dubbox.
我也遇到了,偶尔还遇到 Caused by: com.esotericsoftware.kryo.KryoException: Encountered unregistered class ID:xx
发现kryo还是有些坑的,之计修改使用默认的序列化协议了
e.g.
String doSomething(String type, int num);
from dubbox.
已修正
from dubbox.
java.io.IOException: com.esotericsoftware.kryo.KryoException: Encountered unregistered class ID: 84
at com.alibaba.dubbo.common.serialize.support.kryo.KryoObjectInput.readObject(KryoObjectInput.java:127)
at com.alibaba.dubbo.rpc.protocol.dubbo.DecodeableRpcInvocation.decode(DecodeableRpcInvocation.java:116)
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:109)
at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:312)
at org.jboss.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:90)
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)
Caused by: com.esotericsoftware.kryo.KryoException: Encountered unregistered class ID: 84
at com.esotericsoftware.kryo.util.DefaultClassResolver.readClass(DefaultClassResolver.java:119)
at com.esotericsoftware.kryo.Kryo.readClass(Kryo.java:641)
at com.esotericsoftware.kryo.Kryo.readClassAndObject(Kryo.java:752)
at com.alibaba.dubbo.common.serialize.support.kryo.KryoObjectInput.readObject(KryoObjectInput.java:125)
... 22 more
没有啊!还有这个问题
from dubbox.
Related Issues (20)
- 我用最新的dubbo-spring-boot提供服务,消费端用dubbo2.8.4消费,报invok。。。的错误
- 请问dubbo-monitor-simple-2.8.3是你们的版本吗 HOT 1
- dubbox2.8.4 为啥不能打包成功 HOT 5
- springboot整合dubbox类型转换异常
- 从dubbox 2.8.4转移到阿里重新维护的dubbo2.5.* 是否可以? HOT 6
- dubbox如何设置servlet静态资源
- 请变更groupId
- 2.8.4接入腾讯TSF出现类型错误的情况。
- Dubbox不支持DubboComponentScan
- Please check if the providers have been started and registered.
- 是否支持protobuf序列化
- 2.8.4优雅停机 HOT 4
- dubbox 2.8.4版本作为消费者调用2.6.3及之后的版本报Unknown result flag, expect '0' '1' '2', get 4 HOT 2
- 111
- 应用停止过程rest请求报错
- CVE-2019-17564在dubbox中是否存在
- CVE-2020-1948在dubbox中是否存在
- dubbox中<dubbo:service document="这个document属性是做什么的"> HOT 1
- dubbox中<dubbo:reference check=false> 设置消费者check=false没有生效
- dubbo测试callback报错
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dubbox.