NullPointerException « Association « JPA Q&A





2. NullPointerException setting associations???    forum.hibernate.org

I'm getting a NullPointerException when I try the following query: select tso from com.gm.netprofiler.server.hibernate.TblTileSetOwner as tso where tso.id like '%xyz%'" I've enabled debug for hibernate and the output when the problem occurs is as follows: 2003-11-17 15:10:51,331 DEBUG [net.sf.hibernate.loader.Loader] total objects hydrated: 70 2003-11-17 15:10:51,331 DEBUG [net.sf.hibernate.impl.SessionImpl] resolving associations for [com.gm.netprofiler.server.hibernate.TblTileSetOwner#STF00] 2003-11-17 15:10:51,331 DEBUG [net.sf.hibernate.transaction.JTATransaction] rollback 2003-11-17 15:10:51,331 DEBUG [net.sf.hibernate.impl.SessionImpl] transaction ...

3. NullPointerException whith simple many-to-one association    forum.hibernate.org

public class Journal{ public Journal(){} private long id; private String name; /** * The Publisher of the journal */ private Publisher publisher = new Publisher(); // setters and getters ...

4. Many-to-one association throws NullPointerException    forum.hibernate.org

hi, Here are the two related tables mappings :

5. null pointer exception after "resolving associations fo    forum.hibernate.org

I'm having problems exercising the following code (details below). Interestingly this works in our Linux environment but does not run out of Eclipse on Windows. Hibernate version: 3 Mapping documents: