Urgent-Errors with Serialization

This is a school assignment so I just want some direction.  I really need some help with serialization. I've read all the java sources and looked at many examples and I feel like I've been doing everything properly but whatever I try it seems that I still get a java.io.NotSerializableException.  Could someone point out where I am going wrong here?  My two important classes are attached.  Thanks!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

you didn't post Book class, make sure it is Serializable
islandguy10Author Commented:
Ok, I attached it.  Books is Serializable, as are these other two classes Title, and Borrower.  I have some exception classes as well which all implement Serializable as well.
CPColinSenior Java ArchitectCommented:
NotSerializableException is usually constructed with the name of the offending class as the message. What value is returned when you call toString() on the exception?
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

islandguy10Author Commented:
This is what I see in the NetBeans display.  But, I'm not sure exactly where or what is causing the exception.

java.io.NotSerializableException: TestLibGUI$6
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
        at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
        at java.util.HashMap.writeObject(HashMap.java:1001)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>                     Library.getLibrary().addBook(new Book(title, amtBooks, remBooks) {});

you're using an inner class for creating Books. THat won't work, you need to create a (non-inner) Book subclass

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
CPColinSenior Java ArchitectCommented:
"TestLibGUI$6" means "the sixth anonymous nested class in TestLibGUI. I'll bet it's choking on your various ActionListeners and MouseListeners.

After refreshing this question, I see objects has pointed out the likely culprit. Try taking out the empty braces after the Book constructor.
islandguy10Author Commented:
That was it!  Thanks a lot!...I'm new to this site still and I think I missed the part where I can split the points. :/  Your comments were very helpful as well CPColin.  My head feels a lot better now!!!!!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.