This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Reply Bookmark "Getting nullpointerexception while persisting" Watch "Getting nullpointerexception while persisting" New topic
Author

Getting nullpointerexception while persisting

sinan dogan
Greenhorn

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
Bartender

Joined: Nov 08, 2003
Posts: 3359

Not the greatest help but check:
"#{partStockFacade.loadFromPartCatalog(partCatalogFacade.partCatalog)}"
Make sure that partStockFacade and partCatalog aren't null.
sinan dogan
Greenhorn

Joined: May 21, 2012
Posts: 2
Thanks. There was a problem at h:from. I have tried a4j:from and the problem has solved.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Getting nullpointerexception while persisting
 
Similar Threads
hibernate exception thrown from @Factory method
Seam: Misterious ClassCastExceptions during EJB use
Could not instantiate Seam component: motorcycleCategService Problem
DriverManager not getting connection.
Hibernate: org.hibernate.AssertionFailure: null id don't flush the Session after an exception occurs