wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Serializable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Serializable" Watch "Serializable" New topic


Candy Bortniker
Ranch Hand

Joined: Mar 17, 2003
Posts: 123
I am getting this error when I try to write to the file, NotSerializableException. How do I fix this? This is the code that I think is throwing the error.
Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24166

The object pointed to by "transaction" must belong to a class that declares that it "implements java.io.Serializable", or you'll get this exception.

[Jess in Action][AskingGoodQuestions]
Don't get me started about those stupid light bulbs.
subject: Serializable
Similar Threads
Jtable loading after being saved problem
Corresponding READ method for writeChars()
ObjectOutputStream Make copy of Serialized File
Problems with serialization / deserialization.
writing back to jar file ??