NullPointerException « Collection « JPA Q&A

1. NullPointerException when retrieving collection

I am using version 2.0.3. I have a one-to-many association between a Vehicle and its Timetables using the following mapping LICENSING.seq_time_table ...

2. NullPointerException - there is no snapshot of a collection

The variable sn is null, there is no snapshot of the set. sn.size() causes the NPE Hibernate version: 2.1 Mapping documents:

3. NullPointerException - Set in Collection not initialized

Author Message menlo Post subject: NullPointerException - Set in Collection not initialized Posted: Tue Nov 16, 2004 11:05 am Newbie Joined: Tue Nov 16, 2004 10:10 am Posts: 2 Our object PublicationUnit contains a set of Issues objects which are mapped to a table. During the first session the Set of Issues gets initialized and gets an object added ...