本文由我司收集整编,推荐下载,如有疑问,请与我司联系
反序列化无效的类
反序列化无效的类- 从文件工作反序列化但不是blob?[英]class invalid for deserialization - Deserializes from file working but not blob? The problem lies when trying to deserialize an instance of the class itemSet returned in a resultSet after querying my database. The blobfile seems to be fine itself and the data can be saved to a file then correctly read using a filereader (see below) as such I’m inclined to believe the issue lies somewhere in my implementation? The program runs on tomcat using the netbeans 8.01 ide.
问题在于在查询数据库后尝试反序列化在resultSet中返回的类itemSet的实例。
blobfile本身似乎很好,数据可以保存到文件然后使用文件读取器正确读取(见下文),因为我倾向于认为问题出在我的实现中的某个地方?该程序使用netbeans 8.01 ide在tomcat上运行。
My project git link: https://github/feltax/gw2apiMark2
我的项目git链接:https://github/feltax/gw2apiMark2
My project is using a modified wrapper for a few classes: https://github/feltax/gw2apiModified
我的项目使用一个修改过的包装器来完成几个
类:https://github/feltax/gw2apiModified
The exact error:
确切的错误:
type Exception report message me.nithanim.gw2api.v2.api.items.ItemInfo; class invalid for deserializationdescription The server encountered an internal error that prevented it from fulfilling this request.exception java.io.InvalidClassException: me.nithanim.gw2api.v2.api.items.ItemInfo; class invalid for deserialization java.io.ObjectStreamClass$ExceptionInfo.newInvalidClassException(ObjectStreamClass.j ava:150)java.io.ObjectStreamClass.checkDeserialize(ObjectStreamClass.java:790)java.io.。