[jboss-user] [JBoss Seam] - Re: Trouble W/ NullPointerException

damianharvey do-not-reply at jboss.com
Fri Dec 14 10:22:01 EST 2007


Well not knowing your components.xml, I'd hazard a guess that maybe you should check that your entityManager is null? Put in a log line checking something like 'em==null' (or run it through a debugger).

And why not use @In
  | EntityManager entityManager;rather than PersistenceContext? You define your entityManager in your <persistence:managed-persistence-context> in your components.xml. 

Cheers,

Damian.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4112966#4112966

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4112966



More information about the jboss-user mailing list