users@glassfish.java.net

Re: javax.persistence.PersistenceException

From: <glassfish_at_javadesktop.org>
Date: Thu, 11 Feb 2010 07:55:24 PST

Hello Eva,

The error is stating that the code is attempting to use a serializable mapping for the entityJB.Baleent basketItems List, so you might want to check out how this was set up and what is in the List. A serializable mapping means that the entire collection shoudl get serialized into single field, so both the collection and the items in the collection must be serializable. If this is what is intended, you will need to use a serializable collection type, most likely a type like ArrayList instead of an interface.

I'm sorry I don't know anything about the tutorial, so I can't be of any help in whats going wrong there.

Best Regards,
Chris
[Message sent by forum member 'chris_delahunt' (christopher.delahunt_at_oracle.com)]

http://forums.java.net/jive/thread.jspa?messageID=386144