由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Java版 - ObjectOutputStream.writeObject(Hashtable) ?
相关主题
Re: hashtable问一道关于Vector的题
如何遍历hashtable里边的每一项?interview question
请教一个多线程lock机制的问题传递一个object reference,如何防止更改object?
writeObject()的时候出现NotSerializableException是怎么回事?哪位大牛帮帮忙, 初学JAVA, 问题一道
java applet 能否写文件给网站?让大家了解工业界Java/J2EE面试题的难度
用java访问数据库问HashSet的问题?
How to check if an element is in an array?学以致用,但多此一举?
Simple question: delete element from collection on condition?问个数组问题
相关话题的讨论汇总
话题: hashtable话题: asnode话题: hashset话题: serialized
进入Java版参与讨论
1 (共1页)
b****d
发帖数: 246
1
when I use writeObject(Hashtable) or writeObject(HashSet),
there is always a "java.io.NotSerializableException: ASNode",
where "ASNode" is the class inserted in the hashtable. ASNode itself
is not serialized.
anyone knows how to solve it?
THanks a lot.
m******t
发帖数: 2416
2

ASNode needs to implement Serializable.

【在 b****d 的大作中提到】
: when I use writeObject(Hashtable) or writeObject(HashSet),
: there is always a "java.io.NotSerializableException: ASNode",
: where "ASNode" is the class inserted in the hashtable. ASNode itself
: is not serialized.
: anyone knows how to solve it?
: THanks a lot.

b****d
发帖数: 246
3
THanks. You are right.

【在 m******t 的大作中提到】
:
: ASNode needs to implement Serializable.

1 (共1页)
进入Java版参与讨论
相关主题
问个数组问题java applet 能否写文件给网站?
如何确保每次读入的字符串都是unique的用java访问数据库
问个set和literal String的问题How to check if an element is in an array?
Leetcode ==> Max Points on a Line, 我的程序到底哪出问题了Simple question: delete element from collection on condition?
Re: hashtable问一道关于Vector的题
如何遍历hashtable里边的每一项?interview question
请教一个多线程lock机制的问题传递一个object reference,如何防止更改object?
writeObject()的时候出现NotSerializableException是怎么回事?哪位大牛帮帮忙, 初学JAVA, 问题一道
相关话题的讨论汇总
话题: hashtable话题: asnode话题: hashset话题: serialized