java.io.NotSerializableException: java.util.Scanner

Hi guys,

My program is a CD/DVD store. There are customers, admininstrators, each with login username and password. Now I have to save all data when exiting the program by either the admin or customer. Now i keep getting that exception whenever exiting.

In the code Customer doesnt have scanner, Administrator does though. I suppose the problem in Administrator class but can't really find any error. Any input would be appreciated.

Cheers

[467 byte] By [Rafea] at [2007-11-27 4:53:57]
# 1
dont worry, just solved it by declaring scanner as transient....
Rafea at 2007-7-12 10:08:31 > top of Java-index,Core,Core APIs...