This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes not serializable error after implemaenting inteface on a particula class Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "not serializable error after implemaenting inteface on a particula class" Watch "not serializable error after implemaenting inteface on a particula class" New topic
Author

not serializable error after implemaenting inteface on a particula class

raghu ramn
Greenhorn

Joined: Feb 20, 2011
Posts: 2












it display the following error why
java.io.NotSerializableException: java.io.BufferedReader
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at java.util.ArrayList.writeObject(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)


Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3670

Welcome to JavaRanch, raghu ramn
Please UseCodeTags when posting code in the forums. You may edit and add code tags to your post. And is your Dairy class compiles in the first place (just by looking at it there's no store reference defined)?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32708
    
    4
None of your classes implements the Serializable interface.
Sorry, I was mistaken there.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

Please PostRealCode. There is at least one } missing there, and there's a definite copy-paste error in there.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: not serializable error after implemaenting inteface on a particula class
 
Similar Threads
Deserialization - Cause of WriteAbortedException question
serialization for class Object references
Extend Non-Serializable class and implements Serializable - Abnormal
Serializing HashMap
inner classes and serialization