Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6899029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:22:12+00:00 2026-05-27T07:22:12+00:00

I’m getting an error when I try to persist an entity from a class.

  • 0

I’m getting an error when I try to persist an entity from a class. I created the class UserController, and when I try to execute the Register method, the em.pertist(usr) line I’m getting an error, when I run this code inside the UserRegBean directly it works… Someone can help me please…

Here are the code:

UserController.java

public Boolean Register(String _userName,String _passwd) throws NoSuchAlgorithmException, UnsupportedEncodingException

    {

         User usr = new User();

         usr.setEmail(_userName);

         MessageDigest digest = MessageDigest.getInstance("SHA-1");

         digest.reset();

         digest.update(pwdSalt);

         byte[] input = digest.digest(_passwd.getBytes("UTF-8"));    

         BASE64Encoder encoder = new BASE64Encoder();

         usr.setPassword(encoder.encode(input));

         em.persist(usr);



        return true;

    }

UserRegBean.java

public void register() throws Exception {

      UserController uControl = new UserController();

          Boolean registered = uControl.Register(this.email,this.passwd);  



/*             User usr = new User();

             usr.setEmail(this.email);

             MessageDigest digest = MessageDigest.getInstance("SHA-1");

             digest.reset();

             digest.update(pwdSalt);

             byte[] input = digest.digest(this.passwd. getBytes("UTF-8"));    

             BASE64Encoder encoder = new BASE64Encoder();

             usr.setPassword(encoder.encode(input));

             em.persist(usr);*/

       }

The Error:

10:27:01,524 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] (http--127.0.0.1-8080-6) java.lang.NullPointerException: javax.faces.el.EvaluationException: java.lang.NullPointerException

    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]

    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]

    at javax.faces.component.UICommand.broadcast(UICommand.java:315) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]

    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]

    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]

    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]

    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]

    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118) [prettyfaces-jsf2-3.3.0.jar:]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:110) [prettyfaces-jsf2-3.3.0.jar:]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.0.Final.jar:7.0.0.Final]

    at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49) [jboss-as-jpa-7.0.0.Final.jar:7.0.0.Final]

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

Caused by: java.lang.NullPointerException

    at net.newideas.scart.controllers.UserController.Register(UserController.java:34) [classes:]

    at net.newideas.scart.model.UserRegBean.register(UserRegBean.java:85) [classes:]

    at net.newideas.scart.model.UserRegBean$Proxy$_$$_WeldClientProxy.register(UserRegBean$Proxy$_$$_WeldClientProxy.java) [classes:]

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_26]

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_26]

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_26]

    at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_26]

    at org.apache.el.parser.AstValue.invoke(AstValue.java:196) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:43) [weld-core-1.1.2.AS7.jar:2011-07-06 12:26]

    at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:56) [weld-core-1.1.2.AS7.jar:2011-07-06 12:26]

    at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]

    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]

    ... 32 more



10:27:01,527 WARNING [javax.enterprise.resource.webcontainer.jsf.lifecycle] (http--127.0.0.1-8080-6) #{userRegBean.register}: java.lang.NullPointerException: javax.faces.FacesException:
#{userRegBean.register}: java.lang.NullPointerException

    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]

    at javax.faces.component.UICommand.broadcast(UICommand.java:315) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]

    at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]

    at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]

    at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]

    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]

    at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]

    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118) [prettyfaces-jsf2-3.3.0.jar:]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:110) [prettyfaces-jsf2-3.3.0.jar:]

    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57) [jboss-as-web-7.0.0.Final.jar:7.0.0.Final]

    at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49) [jboss-as-jpa-7.0.0.Final.jar:7.0.0.Final]

    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException

    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]

    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]

    ... 31 more

Caused by: java.lang.NullPointerException

    at net.newideas.scart.controllers.UserController.Register(UserController.java:34) [classes:]

    at net.newideas.scart.model.UserRegBean.register(UserRegBean.java:85) [classes:]

    at net.newideas.scart.model.UserRegBean$Proxy$_$$_WeldClientProxy.register(UserRegBean$Proxy$_$$_WeldClientProxy.java) [classes:]

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_26]

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_26]

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_26]

    at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_26]

    at org.apache.el.parser.AstValue.invoke(AstValue.java:196) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276) [jbossweb-7.0.0.CR4.jar:7.0.0.Final]

    at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:43) [weld-core-1.1.2.AS7.jar:2011-07-06 12:26]

    at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:56) [weld-core-1.1.2.AS7.jar:2011-07-06 12:26]

    at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105) [jsf-impl-2.0.4-b09-jbossorg-4.jar:2.0.4-b09-jbossorg-4]

    at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88) [jboss-jsf-api_2.0_spec-1.0.0.Final.jar:1.0.0.Final]

    ... 32 more



10:27:01,531 ERROR [stderr] (http--127.0.0.1-8080-6) javax.faces.FacesException: #{userRegBean.register}: java.lang.NullPointerException

10:27:01,531 ERROR [stderr] (http--127.0.0.1-8080-6)     at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:89)

10:27:01,531 ERROR [stderr] (http--127.0.0.1-8080-6)     at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)

10:27:01,531 ERROR [stderr] (http--127.0.0.1-8080-6)     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)

10:27:01,532 ERROR [stderr] (http--127.0.0.1-8080-6)     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)

10:27:01,532 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

10:27:01,532 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

10:27:01,532 ERROR [stderr] (http--127.0.0.1-8080-6)     at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:118)

10:27:01,532 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

10:27:01,532 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

10:27:01,532 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734)

10:27:01,532 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541)

10:27:01,533 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479)

10:27:01,533 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407)

10:27:01,533 ERROR [stderr] (http--127.0.0.1-8080-6)     at com.ocpsoft.pretty.PrettyFilter.doFilter(PrettyFilter.java:110)

10:27:01,533 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

10:27:01,533 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

10:27:01,533 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

10:27:01,533 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

10:27:01,533 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)

10:27:01,533 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:49)

10:27:01,534 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)

10:27:01,534 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

10:27:01,534 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

10:27:01,534 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)

10:27:01,534 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

10:27:01,534 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)

10:27:01,534 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)

10:27:01,534 ERROR [stderr] (http--127.0.0.1-8080-6)     at java.lang.Thread.run(Thread.java:662)

10:27:01,535 ERROR [stderr] (http--127.0.0.1-8080-6) Caused by: javax.faces.FacesException: #{userRegBean.register}: java.lang.NullPointerException

10:27:01,535 ERROR [stderr] (http--127.0.0.1-8080-6)     at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:118)

10:27:01,535 ERROR [stderr] (http--127.0.0.1-8080-6)     at javax.faces.component.UICommand.broadcast(UICommand.java:315)

10:27:01,535 ERROR [stderr] (http--127.0.0.1-8080-6)     at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:787)

10:27:01,535 ERROR [stderr] (http--127.0.0.1-8080-6)     at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:1252)

10:27:01,535 ERROR [stderr] (http--127.0.0.1-8080-6)     at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:81)

10:27:01,535 ERROR [stderr] (http--127.0.0.1-8080-6)     ... 27 more

10:27:01,535 ERROR [stderr] (http--127.0.0.1-8080-6) Caused by: javax.faces.el.EvaluationException: java.lang.NullPointerException

10:27:01,536 ERROR [stderr] (http--127.0.0.1-8080-6)     at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)

10:27:01,536 ERROR [stderr] (http--127.0.0.1-8080-6)     at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)

10:27:01,536 ERROR [stderr] (http--127.0.0.1-8080-6)     ... 31 more

10:27:01,536 ERROR [stderr] (http--127.0.0.1-8080-6) Caused by: java.lang.NullPointerException

10:27:01,536 ERROR [stderr] (http--127.0.0.1-8080-6)     at net.newideas.scart.controllers.UserController.Register(UserController.java:34)

10:27:01,536 ERROR [stderr] (http--127.0.0.1-8080-6)     at net.newideas.scart.model.UserRegBean.register(UserRegBean.java:85)

10:27:01,536 ERROR [stderr] (http--127.0.0.1-8080-6)     at net.newideas.scart.model.UserRegBean$Proxy$_$$_WeldClientProxy.register(UserRegBean$Proxy$_$$_WeldClientProxy.java)

10:27:01,536 ERROR [stderr] (http--127.0.0.1-8080-6)     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

10:27:01,537 ERROR [stderr] (http--127.0.0.1-8080-6)     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

10:27:01,537 ERROR [stderr] (http--127.0.0.1-8080-6)     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

10:27:01,537 ERROR [stderr] (http--127.0.0.1-8080-6)     at java.lang.reflect.Method.invoke(Method.java:597)

10:27:01,537 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.el.parser.AstValue.invoke(AstValue.java:196)

10:27:01,537 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)

10:27:01,537 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.jboss.weld.util.el.ForwardingMethodExpression.invoke(ForwardingMethodExpression.java:43)

10:27:01,537 ERROR [stderr] (http--127.0.0.1-8080-6)     at org.jboss.weld.el.WeldMethodExpression.invoke(WeldMethodExpression.java:56)

10:27:01,537 ERROR [stderr] (http--127.0.0.1-8080-6)     at com.sun.faces.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:105)

10:27:01,538 ERROR [stderr] (http--127.0.0.1-8080-6)     at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)

10:27:01,538 ERROR [stderr] (http--127.0.0.1-8080-6)     ... 32 more
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:22:13+00:00Added an answer on May 27, 2026 at 7:22 am

    I guess @EJB works for non-JEE6 (Tomcat or Jetty) & in JEE6 CDI (JBoss or Glassfish) you need to use @Inject

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm new to using the Perl treebuilder module for HTML parsing and can't figure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.