This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Getting nullpointerexception while persisting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Getting nullpointerexception while persisting" Watch "Getting nullpointerexception while persisting" New topic

Getting nullpointerexception while persisting

sinan dogan

Joined: May 21, 2012
Posts: 2
Hi. I am getting nullpointer exception while persisting an object. I checked values in debug, all of objects is loadded but when step came entitymanager.persist that exception has been throwing.

my xhtml page :

Hussein Baghdadi
clojure forum advocate

Joined: Nov 08, 2003
Posts: 3476

Not the greatest help but check:
Make sure that partStockFacade and partCatalog aren't null.
sinan dogan

Joined: May 21, 2012
Posts: 2
Thanks. There was a problem at h:from. I have tried a4j:from and the problem has solved.
subject: Getting nullpointerexception while persisting
Similar Threads
Could not instantiate Seam component: motorcycleCategService Problem
Seam: Misterious ClassCastExceptions during EJB use
DriverManager not getting connection.
Hibernate: org.hibernate.AssertionFailure: null id don't flush the Session after an exception occurs
hibernate exception thrown from @Factory method