5 Replies Latest reply on Aug 23, 2006 4:34 AM by leon qian

    why booking example does not work when i try to change the p

    leon qian Newbie

      it doesn't work in http://seam.demo.jboss.com/home.seam. when i login by username :demo and password:demo, try to modify the password, some wrong infomation showed.
      what is the cause?

        • 1. Re: why booking example does not work when i try to change t
          leon qian Newbie

          error list is the belows:


          type Exception report

          message

          description The server encountered an internal error () that prevented it from fulfilling this request.

          exception

          javax.servlet.ServletException: Error calling action method of component with id _id16:_id32
          javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)
          org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
          org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


          root cause

          javax.faces.FacesException: Error calling action method of component with id _id16:_id32
          org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
          javax.faces.component.UICommand.broadcast(UICommand.java:106)
          javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
          javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
          org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
          org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
          javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
          org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
          org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


          note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.

          • 2. Re: why booking example does not work when i try to change t
            hdslkf hklsdg Apprentice

             

            note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.

            Please have a look in your log file to see the whole stuff. The exception shown here occurs after many different errors, and it provides no real information ;).

            • 3. Re: why booking example does not work when i try to change t
              leon qian Newbie

              thanks for giving some advice. the log is belows, :)

              ........
              2006-08-21 16:55:42,421 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
              2006-08-21 16:55:42,421 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/seam-booking].[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
              javax.faces.FacesException: Error calling action method of component with id _id16:_id32
              at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
              at javax.faces.component.UICommand.broadcast(UICommand.java:106)
              at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
              at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
              at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
              at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
              at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.jboss.seam.servlet.SeamRedirectFilter.doFilter(SeamRedirectFilter.java:30)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
              at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
              at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
              at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
              at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
              at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
              at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
              at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
              at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
              at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
              at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
              at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
              at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
              at java.lang.Thread.run(Thread.java:595)
              Caused by: javax.faces.el.EvaluationException: /password.xhtml @37,95 action="#{changePassword.changePassword}": java.lang.RuntimeException: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=qiandong/20, BranchQual=, localId=20] status=STATUS_NO_TRANSACTION; - nested throwable: (javax.persistence.PersistenceException: org.hibernate.validator.InvalidStateException: validation failed for: org.jboss.seam.example.booking.User)
              at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:73)
              at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
              ... 27 more
              Caused by: java.lang.RuntimeException: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=qiandong/20, BranchQual=, localId=20] status=STATUS_NO_TRANSACTION; - nested throwable: (javax.persistence.PersistenceException: org.hibernate.validator.InvalidStateException: validation failed for: org.jboss.seam.example.booking.User)
              at org.jboss.aspects.tx.TxPolicy.handleEndTransactionException(TxPolicy.java:198)
              at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:180)
              at org.jboss.aspects.tx.TxPolicy.invokeInOurTx(TxPolicy.java:87)
              at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:197)
              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
              at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
              at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188)
              at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
              at $Proxy131.changePassword(Unknown Source)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:585)
              at com.sun.el.parser.AstValue.invoke(AstValue.java:151)
              at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
              at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
              at com.sun.facelets.el.LegacyMethodBinding.invoke(LegacyMethodBinding.java:69)
              ... 28 more
              Caused by: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=qiandong/20, BranchQual=, localId=20] status=STATUS_NO_TRANSACTION; - nested throwable: (javax.persistence.PersistenceException: org.hibernate.validator.InvalidStateException: validation failed for: org.jboss.seam.example.booking.User)
              at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:372)
              at org.jboss.tm.TxManager.commit(TxManager.java:240)
              at org.jboss.aspects.tx.TxPolicy.endTransaction(TxPolicy.java:175)
              ... 52 more
              Caused by: javax.persistence.PersistenceException: org.hibernate.validator.InvalidStateException: validation failed for: org.jboss.seam.example.booking.User
              at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:487)
              at org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1491)
              at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1110)
              at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:324)
              ... 54 more
              Caused by: org.hibernate.validator.InvalidStateException: validation failed for: org.jboss.seam.example.booking.User
              at org.hibernate.validator.event.ValidateEventListener.validate(ValidateEventListener.java:104)
              at org.hibernate.validator.event.ValidateEventListener.onPreUpdate(ValidateEventListener.java:132)
              at org.hibernate.action.EntityUpdateAction.preUpdate(EntityUpdateAction.java:217)
              at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:64)
              at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
              at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
              at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
              at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
              at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
              at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:993)
              at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:340)
              at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:475)
              ... 57 more

              • 4. Re: why booking example does not work when i try to change t
                Jim Hazen Expert

                Looks like the password you're trying to change to isn't valid. Maybe the error feedback in the booking example could be better, but check the constraints on the User object and make sure they pass validation.

                • 5. Re: why booking example does not work when i try to change t
                  leon qian Newbie

                  thanks a lot . I have soved that by your advice