persistence@glassfish.java.net

NullPointerException in persist() method

From: edu53 <eduardoefigueroa_at_yahoo.com.ar>
Date: Tue, 6 Nov 2007 12:47:41 -0800 (PST)

Hi,
I'm new using JPA (GlassFish V2 Server, TopLinks, NetBeans IDE) and have the
following problem:
In a managed bean that uses resource injection, i.e

@PersistentContext
private EntityManager em;

When calling em.persist(entity) always get a java.lang.NullPointerException,
no matter what entity trying to persist.
I'm not sure if resource injection is working.


Somebody can help ?
Thanks in advance


-- 
View this message in context: http://www.nabble.com/NullPointerException-in-persist%28%29-method-tf4760965.html#a13615642
Sent from the java.net - glassfish persistence mailing list archive at Nabble.com.