[JBoss Web Development] - Error while trying to persist JPA entity...
by ricardo luceac
ricardo luceac [http://community.jboss.org/people/RLUCEAC] created the discussion
"Error while trying to persist JPA entity..."
To view the discussion, visit: http://community.jboss.org/message/622181#622181
--------------------------------------------------------------
Hi, 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
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/622181#622181]
Start a new discussion in JBoss Web Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[JBoss AS7 Development] - Jboss AS7.01 final parse error?
by Wendell Hatcher
Wendell Hatcher [http://community.jboss.org/people/dell1074] created the discussion
"Jboss AS7.01 final parse error?"
To view the discussion, visit: http://community.jboss.org/message/621955#621955
--------------------------------------------------------------
14:44:29,229 INFO [org.jboss.modules] JBoss Modules version 1.0.1.GA
14:44:29,474 INFO [org.jboss.msc] JBoss MSC version 1.0.0.GA
14:44:29,529 INFO [org.jboss.as] JBoss AS 7.0.1.Final "Zap" starting
14:44:29,703 ERROR [stderr] Exception in thread "Controller Boot Thread" java.lang.RuntimeException: org.jboss.as.controller.persistence.ConfigurationPersistenceException: Failed to parse configuration
14:44:29,704 ERROR [stderr] at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:89)
14:44:29,704 ERROR [stderr] at java.lang.Thread.run(Thread.java:662)
14:44:29,704 ERROR [stderr] Caused by: org.jboss.as.controller.persistence.ConfigurationPersistenceException: Failed to parse configuration
14:44:29,704 ERROR [stderr] at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:115)
14:44:29,704 ERROR [stderr] at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:104)
14:44:29,704 ERROR [stderr] at org.jboss.as.server.ServerService.boot(ServerService.java:193)
14:44:29,705 ERROR [stderr] at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:83)
14:44:29,705 ERROR [stderr] ... 1 more
14:44:29,705 ERROR [stderr] Caused by: java.lang.RuntimeException: Unable to determine a default name based on the local host name
14:44:29,705 ERROR [stderr] at org.jboss.as.controller.parsing.CommonXml.getDefaultName(CommonXml.java:184)
14:44:29,705 ERROR [stderr] at org.jboss.as.controller.parsing.StandaloneXml.readServerElement(StandaloneXml.java:137)
14:44:29,705 ERROR [stderr] at org.jboss.as.controller.parsing.StandaloneXml.readElement(StandaloneXml.java:91)
14:44:29,706 ERROR [stderr] at org.jboss.as.controller.parsing.StandaloneXml.readElement(StandaloneXml.java:79)
14:44:29,706 ERROR [stderr] at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:100)
14:44:29,706 ERROR [stderr] at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:59)
14:44:29,706 ERROR [stderr] at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:107)
14:44:29,706 ERROR [stderr] ... 4 more
14:44:29,706 ERROR [stderr] Caused by: java.net.UnknownHostException: 127.0.0.1 dclstest: 127.0.0.1 dclstest
14:44:29,706 ERROR [stderr] at java.net.InetAddress.getLocalHost(InetAddress.java:1354)
14:44:29,707 ERROR [stderr] at org.jboss.as.controller.parsing.CommonXml.getDefaultName(CommonXml.java:182)
14:44:29,707 ERROR [stderr] ... 10 more
^C14:44:43,582 INFO [org.jboss.as] JBoss AS 7.0.1.Final "Zap" stopped in 0ms
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/621955#621955]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[JBoss AS7 Development] - Proposal of a system metrics subsystem
by Thomas Diesler
Thomas Diesler [http://community.jboss.org/people/thomas.diesler] created the discussion
"Proposal of a system metrics subsystem"
To view the discussion, visit: http://community.jboss.org/message/621842#621842
--------------------------------------------------------------
Folks,
I recently looked at the gwt console and the management model in order to find some system metrics similar to what is available through jconsole - I couldn't find it.
A remote client could use the system metrics (available through json data structures) to monitor server/domain health.
Initially I propose to add some static env information for the standalone server. Perhaps something like this
"result" => {"metric" => {
"os" => {
"arch" => "amd64",
"name" => "Linux",
"version" => "2.6.40-4.fc15.x86_64"
},
"java" => {
"vendor" => "Sun Microsystems Inc.",
"version" => "1.6.0_26"
},
"runtime" => {
"name" => "Java(TM) SE Runtime Environment",
"version" => "1.6.0_26-b03"
}
}}
Going forward we could add mem, thread, cpu stats.
Because this would be available through the domain model, the console could also easily display these metrics.
What do you think?
cheers
-thomas
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/621842#621842]
Start a new discussion in JBoss AS7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months