users@glassfish.java.net

Re: java.lang.NullPointerException when running client application

From: <glassfish_at_javadesktop.org>
Date: Mon, 18 May 2009 12:31:42 PDT

Caused by: java.lang.NullPointerException
at beans.NewSessionBean.addBook(NewSessionBean.java:27)

Which is line 27? The one that says "em.persist(lib);" ?
If so, your em is null. Is EJBPU defined? Are there any errors when you deploy the jar?
[Message sent by forum member 'matterbury' (matterbury)]

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