Ebook Coder

javax.faces.FacesException: # {loginBean.authenticate}: java.lang.NullPointerException

java.lang.NullPointerException: javax.faces.Fac...

What is the best approach to get EntityManagerFactory in web app(jsp/servlets)? Is this a good way When should EntityManagerFactory instance be created/opened?, or is it better to get it from JNDI,... Best practice to get EntityManagerFactory logged in as RAHMI TRESNA YULIA (24030419) close window: By using Downline Viewer, you agree to abide by its Terms and Conditions.

javax.faces.FacesException: #{loginBean.authenticate ...

javax.faces.el.EvaluationException: Cannot get ... Based on the NullPointerException and the line you say it is thrown at being:. EntityManager em = emf.createEntityManager(); I am also assuming it is at: org.tutorial.LoginBean.authenticate(LoginBean.java:50). java.lang.NullPointerException at com.comcast.npsconfig.jsf.controllers.AddApplicationPage.getApplications(AddApplicationPage.java:32)Some object at line 32 of AddApplicationPage, inside the method getApplications(), is null while the code is accessing/invoking it. Custom authentication: #{LoginBean.authenticate ... This discussion is archived. 1 Reply Latest reply on May 2, 2008 2:48 AM by 624978 . Custom authentication: #{LoginBean.authenticateUser}:NullPointerException java.lang.NullPointerException Error When trying to Create ... java.lang.NullPointerException: javax.faces.Fac... Well I m using JPA and Hibernate for data layer and JSF for UI. i m running it on a JBoss. I auto-generated all the entities using the JPA project from Eclipse. My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.