• Post Reply Bookmark Topic Watch Topic
  • New Topic

reading an writting Serializable file  RSS feed

 
Daniel Stallard
Ranch Hand
Posts: 89
Java ME MySQL Database PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is my code for writing the file


This is the error it is giving me an i have no clue what the problem is



I have no clue what these are talking about. Any help would be great i am only posting the writing the file first then ill test it an then post the reading error.
 
Carey Brown
Saloon Keeper
Posts: 3310
46
Eclipse IDE Firefox Browser Java MySQL Database VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not all classes are serializable. Is Stock a class you wrote? If so, you can add serialization support to your class.

See this tutorial for more info.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!