Nonserializable Exception in java
I'm getting NonserializableException when I'm converting an object to bytestream. At the following point my code is failing.
ByteArrayOutputStream bos = new ByteArrayOutputStream();
oos = new ObjectOutputStream(bos);
//Here at the time of calling writeObject() it's giving me the error
Please suggest any solution . Thanks in advance.
Re: Nonserializable Exception in java
Your object o1 or one of its members doesn't implement the Serializable interface.