简体   繁体   English

java.lang.RuntimeException:虚假序列化错误

[英]java.lang.RuntimeException: Spurious serialisation error

I had problem with my client program when I run my client in eclipse or netbeans, I get a runtime error java.lang.RuntimeException: Spurious serialisation error. 在eclipse或netbeans中运行客户端时,客户端程序出现问题,出现运行时错误java.lang.RuntimeException:虚假序列化错误。 But when i use command prompt I have no errors. 但是,当我使用命令提示符时,我没有任何错误。

Here is my client code 这是我的客户代码

http://pastebin.com/jUkw7F7k http://pastebin.com/jUkw7F7k


Looks like you are writing an Integer (through autoboxing) to the serial file and attempting to read two objects casting them to BigInteger . 看起来您正在将Integer (通过自动装箱)写入串行文件,并尝试读取将其转换为BigInteger两个对象。 (But see my comment on the question.) (但请参阅我对此问题的评论。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM