This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

I get java.lang.NullPointerException after generating CRUD  RSS feed

 
taieb baccouch
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, am using netbeans 7.2, Glassfish 3.1.2, JDK 1.7, JPA 2.0, EJB 3.0 and JSF 2.1. I generated a CRUD application using netbeans. When I try to add a new user, a java.lang.NullPointerException is generated. This is my database:
And this Stack Trace:

How can I fix it?
 
taieb baccouch
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem is resolved. I had to change @Named("groupeController") to @ManagedBean(name = "groupeController") in the controller. Thank you for your help.
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 37234
519
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for posting the solution for anyone who has that error message in the future.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!