1 2 Previous Next 15 Replies Latest reply on Jul 16, 2007 2:06 AM by Fabrizio Boco

    Seam 2.0.0 B1 & validateAll

    Fabrizio Boco Newbie

      Hi,

      I have just ported my application to Seam 2.0.0 B1 following the migration guide and the seamdiscs example.

      It look likes to work fine except I had to remove <s:validateall> from all my xhtml pages.

      With I get the following error each time I submit the page:

      
      java.lang.NullPointerException:
       at org.jboss.seam.ui.validator.ModelValidator.validate(ModelValidator.java:44)
       at org.apache.myfaces.trinidad.component.UIXEditableValue.validateValue(UIXEditableValue.java:348)
       at org.apache.myfaces.trinidad.component.UIXEditableValue.validate(UIXEditableValue.java:172)
       at org.apache.myfaces.trinidad.component.UIXEditableValue._executeValidate(UIXEditableValue.java:491)
       at org.apache.myfaces.trinidad.component.UIXEditableValue.processValidators(UIXEditableValue.java:271)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXForm.processValidators(UIXForm.java:82)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030)
       at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
       at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
      08:19:57,929 WARN [lifecycle] executePhase(PROCESS_VALIDATIONS 3,org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$CacheRenderKit@1a684dd) threw exception
      javax.faces.FacesException:
       at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:108)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
       at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
       at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
       at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
       at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:63)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      Caused by: java.lang.NullPointerException:
       at org.jboss.seam.ui.validator.ModelValidator.validate(ModelValidator.java:44)
       at org.apache.myfaces.trinidad.component.UIXEditableValue.validateValue(UIXEditableValue.java:348)
       at org.apache.myfaces.trinidad.component.UIXEditableValue.validate(UIXEditableValue.java:172)
       at org.apache.myfaces.trinidad.component.UIXEditableValue._executeValidate(UIXEditableValue.java:491)
       at org.apache.myfaces.trinidad.component.UIXEditableValue.processValidators(UIXEditableValue.java:271)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXForm.processValidators(UIXForm.java:82)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030)
       at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
       at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
      08:19:57,940 ERROR [ExceptionFilter] handling uncaught exception
      javax.servlet.ServletException:
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:256)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
       at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
       at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
       at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
       at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:63)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
       at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
      Caused by: java.lang.NullPointerException:
       at org.jboss.seam.ui.validator.ModelValidator.validate(ModelValidator.java:44)
       at org.apache.myfaces.trinidad.component.UIXEditableValue.validateValue(UIXEditableValue.java:348)
       at org.apache.myfaces.trinidad.component.UIXEditableValue.validate(UIXEditableValue.java:172)
       at org.apache.myfaces.trinidad.component.UIXEditableValue._executeValidate(UIXEditableValue.java:491)
       at org.apache.myfaces.trinidad.component.UIXEditableValue.processValidators(UIXEditableValue.java:271)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXForm.processValidators(UIXForm.java:82)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030)
       at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
       at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
      08:19:57,948 ERROR [ExceptionFilter] exception root cause
      java.lang.NullPointerException:
       at org.jboss.seam.ui.validator.ModelValidator.validate(ModelValidator.java:44)
       at org.apache.myfaces.trinidad.component.UIXEditableValue.validateValue(UIXEditableValue.java:348)
       at org.apache.myfaces.trinidad.component.UIXEditableValue.validate(UIXEditableValue.java:172)
       at org.apache.myfaces.trinidad.component.UIXEditableValue._executeValidate(UIXEditableValue.java:491)
       at org.apache.myfaces.trinidad.component.UIXEditableValue.processValidators(UIXEditableValue.java:271)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXForm.processValidators(UIXForm.java:82)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030)
       at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
       at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
      08:19:57,960 ERROR [DebugPageHandler] redirecting to debug page
      java.lang.NullPointerException:
       at org.jboss.seam.ui.validator.ModelValidator.validate(ModelValidator.java:44)
       at org.apache.myfaces.trinidad.component.UIXEditableValue.validateValue(UIXEditableValue.java:348)
       at org.apache.myfaces.trinidad.component.UIXEditableValue.validate(UIXEditableValue.java:172)
       at org.apache.myfaces.trinidad.component.UIXEditableValue._executeValidate(UIXEditableValue.java:491)
       at org.apache.myfaces.trinidad.component.UIXEditableValue.processValidators(UIXEditableValue.java:271)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXForm.processValidators(UIXForm.java:82)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildrenImpl(UIXComponentBase.java:991)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.validateChildren(UIXComponentBase.java:976)
       at org.apache.myfaces.trinidad.component.UIXComponentBase.processValidators(UIXComponentBase.java:811)
       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1030)
       at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
       at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
       at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
       at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
      
      


      Any suggestion ?

      Thank you in advance.

      Regards

      Fabrizio


        • 1. Re: Seam 2.0.0 B1 & validateAll
          xie ping Newbie

          me too,how to fix this problem

          • 2. Re: Seam 2.0.0 B1 & validateAll
            Gavin King Master

            OK, I tried to fix this in CVS. Please try it out and let me know if everything is working correctly now. Thanks.

            • 3. Re: Seam 2.0.0 B1 & validateAll
              xie ping Newbie

              yes,it's work now thinks :)

              • 4. Re: Seam 2.0.0 B1 & validateAll
                Fabrizio Boco Newbie

                Gavin,

                I still have something wrong.

                My bean has this method:

                 @Length(max=2)
                 public String getNome()
                 {
                 return nome;
                 }
                


                When I submit the form and Nome is shorter then 2 everything works fine.

                If Nome is longer than 2 I get the following error on the console:
                07:42:57,391 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator_2] TwoPhaseCoordinator.beforeCompletion - failed for com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple@19cc044
                javax.persistence.PersistenceException: org.hibernate.validator.InvalidStateException: validation failed for: mobileAuditor.entity.Asse
                 at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:527)
                 at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
                 at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:249)
                 at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:88)
                 at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
                 at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1256)
                 at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
                 at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
                 at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
                 at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:47)
                 at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:579)
                 at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
                 at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                Caused by: org.hibernate.validator.InvalidStateException: validation failed for: mobileAuditor.entity.Asse
                 at org.hibernate.validator.event.ValidateEventListener.validate(ValidateEventListener.java:143)
                 at org.hibernate.validator.event.ValidateEventListener.onPreInsert(ValidateEventListener.java:167)
                 at org.hibernate.action.EntityInsertAction.preInsert(EntityInsertAction.java:152)
                 at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:45)
                 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:139)
                 at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
                 at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
                 at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
                 at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
                 at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:515)
                 at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
                 at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:249)
                 at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:88)
                 at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
                 at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1256)
                 at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
                 at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
                 at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
                 at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:47)
                 at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:579)
                 at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                07:42:57,408 ERROR [SeamPhaseListener] uncaught exception
                java.lang.IllegalStateException: Could not commit transaction
                 at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:589)
                 at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
                 at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                 at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:70)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                Caused by: javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't commit because the transaction is in aborted state
                 at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1267)
                 at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
                 at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
                 at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
                 at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:47)
                 at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:579)
                 at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
                 at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                 at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:70)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                Caused by: javax.persistence.PersistenceException: org.hibernate.validator.InvalidStateException: validation failed for: mobileAuditor.entity.Asse
                 at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:527)
                 at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
                 at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:249)
                 at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:88)
                 at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
                 at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1256)
                 at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
                 at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
                 at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
                 at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:47)
                 at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:579)
                 at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
                 at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                Caused by: org.hibernate.validator.InvalidStateException: validation failed for: mobileAuditor.entity.Asse
                 at org.hibernate.validator.event.ValidateEventListener.validate(ValidateEventListener.java:143)
                 at org.hibernate.validator.event.ValidateEventListener.onPreInsert(ValidateEventListener.java:167)
                 at org.hibernate.action.EntityInsertAction.preInsert(EntityInsertAction.java:152)
                 at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:45)
                 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:139)
                 at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
                 at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
                 at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
                 at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
                 at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:515)
                 at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
                 at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:249)
                 at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:88)
                 at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
                 at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1256)
                 at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
                 at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
                 at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
                 at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:47)
                 at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:579)
                 at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                07:42:57,476 ERROR [SeamPhaseListener] swallowing exception
                java.lang.IllegalStateException: Could not commit transaction
                 at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:589)
                 at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
                 at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                 at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:70)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                Caused by: javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't commit because the transaction is in aborted state
                 at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1267)
                 at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
                 at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
                 at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
                 at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:47)
                 at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:579)
                 at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
                 at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                 at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:70)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                 at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                Caused by: javax.persistence.PersistenceException: org.hibernate.validator.InvalidStateException: validation failed for: mobileAuditor.entity.Asse
                 at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:527)
                 at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
                 at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:249)
                 at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:88)
                 at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
                 at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1256)
                 at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
                 at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
                 at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
                 at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:47)
                 at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:579)
                 at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
                 at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                Caused by: org.hibernate.validator.InvalidStateException: validation failed for: mobileAuditor.entity.Asse
                 at org.hibernate.validator.event.ValidateEventListener.validate(ValidateEventListener.java:143)
                 at org.hibernate.validator.event.ValidateEventListener.onPreInsert(ValidateEventListener.java:167)
                 at org.hibernate.action.EntityInsertAction.preInsert(EntityInsertAction.java:152)
                 at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:45)
                 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:139)
                 at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
                 at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
                 at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
                 at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
                 at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:515)
                 at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
                 at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:249)
                 at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:88)
                 at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
                 at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1256)
                 at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
                 at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
                 at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
                 at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:47)
                 at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:579)
                 at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                 at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                 at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                 at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                 at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                 at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                


                Is it my fault ?

                Thank you.

                Fabrizio

                • 5. Re: Seam 2.0.0 B1 & validateAll
                  Gavin King Master

                  You don't have an s:validate or s:validateAll, do you?

                  • 6. Re: Seam 2.0.0 B1 & validateAll
                    Fabrizio Boco Newbie

                    Yes I have validateAll

                    This is my form

                    
                    ...........
                    
                    <trh:body onload="startup();">
                    <f:loadBundle basename="messages" var="msgs" />
                    <tr:form id="form" usesUpload="false" defaultCommand="go" >
                    <tr:panelPage id="panelPage">
                    <!-- HEADER -->
                     <ui:include src="header.xhtml"/>
                    
                    ..........
                    
                    <trh:tableLayout borderWidth="0" width="100%">
                    <s:validateAll id="validateAll">
                    
                    <trh:rowLayout width="100%" >
                     <trh:cellFormat styleClass="formFieldLabel" ><tr:outputLabel for="nome" value="#{msgs.form_Asse_nome}" rendered="#{(asseOperation=='CREATE') or (asseOperation=='EDIT') or (asseOperation=='DISPLAY') or (asseOperation=='DELETE')}"/></trh:cellFormat>
                     <trh:cellFormat >
                     <tr:inputText id="nome" value="#{asse.nome}" required="true" rendered="#{(asseOperation=='CREATE') or (asseOperation=='EDIT')}" />
                     <tr:outputText id="nome" value="#{asse.nome}" rendered="#{(asseOperation=='DISPLAY') or (asseOperation=='DELETE')}" />
                     </trh:cellFormat>
                     <trh:cellFormat width="1%"><tr:image styleClass="imageLink" source="img/info.gif" onclick="help('help/form_Asse_nome.html');" /></trh:cellFormat>
                    </trh:rowLayout>
                    
                    ....
                    
                    </s:validateAll>
                    </trh:tableLayout>
                    <!-- BUTTONS -->
                    <tr:spacer height="15" />
                    <trh:tableLayout borderWidth="0" width="100%">
                    <trh:rowLayout width="100%" >
                     <trh:cellFormat halign="right" width="50%">
                     <tr:commandButton id="go" styleClass="button" text="#{msgs.Application_buttonNew}" action="#{AsseManager.processCreate}" rendered="#{asseOperation=='CREATE'}" />
                     <tr:commandButton id="go" styleClass="button" text="#{msgs.Application_buttonEdit}" action="#{AsseManager.processEdit}" rendered="#{asseOperation=='EDIT'}" />
                     <tr:commandButton id="go" styleClass="button" text="#{msgs.Application_buttonDelete}" action="#{AsseManager.processDelete}" rendered="#{asseOperation=='DELETE'}" />
                     <tr:commandButton id="go" styleClass="button" text="#{msgs.Application_buttonOk}" action="#{AsseManager.processDisplay}" rendered="#{asseOperation=='DISPLAY'}" />
                     </trh:cellFormat>
                     <trh:cellFormat halign="left" width="50%">
                     <tr:commandButton styleClass="button" text="#{msgs.Application_buttonCancel}" immediate="true" action="#{AsseManager.cancel}" rendered="#{asseOperation!='DISPLAY'}" />
                     </trh:cellFormat>
                    </trh:rowLayout>
                    </trh:tableLayout>
                    </tr:panelPage>
                    .......
                    </tr:form>
                    


                    Thanks

                    Fabrizio

                    • 7. Re: Seam 2.0.0 B1 & validateAll
                      Fabrizio Boco Newbie

                      Is anyone using seam 2.0.0, trinidad and validateall ?

                      Please help.

                      Thanks

                      Fabrizio

                      • 8. Re: Seam 2.0.0 B1 & validateAll
                        Pete Muir Master

                        Post your current backing bean, page and exception. What you need to do to get a good response is submit code that will actually run, but that *only* shows the point you are trying to get across. Having stuff like spacers in there doesn't makes it harder to understand whats going on.

                        • 9. Re: Seam 2.0.0 B1 & validateAll
                          Tony Herstell Master

                          valdateAll was causing problems with ICEfaces.
                          Problem was elimated by using normal validate all over the place.

                          • 10. Re: Seam 2.0.0 B1 & validateAll
                            Fabrizio Boco Newbie

                            Pete,

                            I have created a simplified test code for you.

                            <?xml version="1.0" encoding="iso-8859-15"?>
                            <!DOCTYPE xsl:stylesheet [
                             <!ENTITY nbsp " "> <!-- NO-BREAK SPACE -->
                             ]>
                            <trh:html
                             xmlns="http://www.w3.org/1999/xhtml"
                             xmlns:ui="http://java.sun.com/jsf/facelets"
                             xmlns:h="http://java.sun.com/jsf/html"
                             xmlns:f="http://java.sun.com/jsf/core"
                             xmlns:s="http://jboss.com/products/seam/taglib"
                             xmlns:tr="http://myfaces.apache.org/trinidad"
                             xmlns:trh="http://myfaces.apache.org/trinidad/html"
                             xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
                             >
                            
                            <trh:head>
                            <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
                            <title>Asse</title>
                            
                            <link href="styles/default.css" rel="stylesheet" type="text/css" />
                            <link href="styles/trinidad.css" rel="stylesheet" type="text/css" />
                            
                            <script language="JavaScript">
                            //<![CDATA[
                            //]]>
                            </script>
                            
                            </trh:head>
                            <trh:body >
                            <f:loadBundle basename="messages" var="msgs" />
                            <tr:form id="form" usesUpload="false" defaultCommand="go" >
                            <s:validateAll>
                            <tr:panelPage id="panelPage">
                            
                            <trh:tableLayout borderWidth="0" width="100%">
                            
                            <trh:rowLayout width="100%" >
                             <trh:cellFormat styleClass="formFieldLabel" ><tr:outputLabel for="nome" value="#{msgs.form_Asse_nome}" /></trh:cellFormat>
                             <trh:cellFormat >
                             <tr:inputText id="nome" value="#{asse.nome}" required="true" />
                             </trh:cellFormat>
                            </trh:rowLayout>
                            
                            </trh:tableLayout>
                            
                            <trh:tableLayout borderWidth="0" width="100%">
                            <trh:rowLayout width="100%" >
                             <trh:cellFormat halign="right" width="50%">
                             <tr:commandButton id="go" styleClass="button" text="#{msgs.Application_buttonNew}" action="#{AsseManager.processCreate}" />
                             </trh:cellFormat>
                            </trh:rowLayout>
                            </trh:tableLayout>
                            </tr:panelPage>
                            </s:validateAll>
                            </tr:form>
                            </trh:body>
                            </trh:html>
                            



                            
                            @Entity
                            @Name("asse")
                            @Scope(CONVERSATION)
                            @Table(name = "Asse")
                            @Security(rolesAnabledToCreate = {"NCCV", "Amministratore"}, rolesAnabledToEdit = {"NCCV", "Amministratore"}, rolesAnabledToDelete = {"Amministratore"})
                            public class Asse implements Serializable
                            {
                            
                             private static final long serialVersionUID = 0;
                            
                             private Long id;
                            
                             private String nome;
                            
                             private List<Misura> misuras;
                            
                             private Obiettivo obiettivo;
                            
                             @Length(max=2)
                             public String getNome()
                             {
                             return nome;
                             }
                            
                             public void setNome(String nome)
                             {
                             this.nome = nome;
                             }
                            
                             @Transient
                             public static long getSerialVersionUID()
                             {
                             return serialVersionUID;
                             }
                            
                             public boolean equals(Object obj)
                             {
                             if (obj == null)
                             return false;
                            
                             if (!(obj instanceof Asse))
                             return false;
                            
                             Asse tmp = (Asse) obj;
                            
                             if (id != null && tmp.getId() != null && id.longValue() == tmp.getId().longValue())
                             return true;
                            
                             return false;
                             }
                            
                             public void setMisuras(List<Misura> misuras)
                             {
                             this.misuras = misuras;
                             }
                            
                             public void addMisuras(Misura misuras)
                             {
                             if (this.misuras == null)
                             this.misuras = new Vector();
                            
                             this.misuras.add(misuras);
                             }
                            
                             public void removeMisuras(Misura misuras)
                             {
                             if (this.misuras == null)
                             return;
                            
                             this.misuras.remove(misuras);
                             }
                            
                             public void removeAllMisuras()
                             {
                             this.misuras = new Vector<Misura>();
                             }
                            
                             public void setObiettivo(Obiettivo obiettivo)
                             {
                             this.obiettivo = obiettivo;
                             }
                            
                             @OneToMany(targetEntity = Misura.class, cascade = {CascadeType.REFRESH, CascadeType.REMOVE}, fetch = FetchType.LAZY, mappedBy = "asse")
                             public List<Misura> getMisuras()
                             {
                             return misuras;
                             }
                            
                             @ManyToOne(targetEntity = Obiettivo.class, cascade = {CascadeType.REFRESH}, fetch = FetchType.LAZY)
                             public Obiettivo getObiettivo()
                             {
                             return obiettivo;
                             }
                            
                             @Id
                             @GeneratedValue(strategy = GenerationType.AUTO)
                             public Long getId()
                             {
                             return id;
                             }
                            
                             public void setId(Long id)
                             {
                             this.id = id;
                             }
                            }
                            
                            


                            @Stateful
                            @Name("AsseManager")
                            @Scope(ScopeType.CONVERSATION)
                            @Synchronized
                            public class AsseManagerBean implements Serializable, AsseManager,
                             AsseManagerRemote
                            {
                            
                             private static final long serialVersionUID = 1L;
                            
                             @In
                             private EntityManager em;
                            
                             @In(create = true)
                             @Out(required = false, scope = ScopeType.CONVERSATION)
                             @DataModelSelection(value = "asseList")
                             private Asse asse;
                            
                             @DataModel(value = "asseList")
                             private List<Asse> asseList;
                            
                             @Logger
                             private Log log;
                            
                             @In(required = false)
                             private FacesContext facesContext;
                            
                            
                             @In
                             private Conversation conversation;
                            
                             public AsseManagerBean()
                             {
                             }
                            
                             @Create()
                             public void create()
                             {
                             }
                            
                             public String getAsseConversationId()
                             {
                             return conversation.getId();
                             }
                            
                             /** Init * */
                             @Begin(nested = true)
                             public String initCreate()
                             {
                            
                             asse = new Asse();
                             return "/Asse.xhtml";
                             }
                            
                             @Begin(nested = true)
                             public String initEdit()
                             {
                             em.clear();
                             asse = em.find(Asse.class, asse.getId());
                            
                             return "/Asse.xhtml";
                             }
                            
                             /** Process * */
                             @End(beforeRedirect = true)
                             public String processCreate()
                             {
                             asse = em.merge(asse);
                            
                             asseList = null;
                            
                             asse = null;
                            
                             return "/list/AsseList.xhtml";
                             }
                            
                             @Factory("asseList")
                             @Begin(join = true)
                             public void findAll()
                             {
                             log.info("findAll");
                            
                             long startTime = System.currentTimeMillis();
                            
                             em.clear();
                            
                             ListOrderedSet tmp = new ListOrderedSet();
                            
                             Query q = em.createQuery("select o from Asse as o");
                            
                             asseList = q.getResultList();
                            
                             long endTime = System.currentTimeMillis();
                            
                             log.debug("Query Time: " + (endTime - startTime) + " ms " + (endTime - startTime) / 1000 + " s");
                            
                             }
                            
                             @Begin(join = true)
                             public void onListLoad()
                             {
                             asseList = null;
                             }
                            
                             @Remove
                             @Destroy
                             public void destroy()
                             {
                             }
                            
                             public Asse getAsse()
                             {
                             return asse;
                             }
                            
                             public void setAsse(Asse asse)
                             {
                             this.asse = asse;
                             }
                            }
                            


                            This is the error message I get when "nome" is longer than 2.

                            09:15:16,392 WARN [arjLoggerI18N] [com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator_2] TwoPhaseCoordinator.beforeCompletion - failed for com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple@192a81f
                            javax.persistence.PersistenceException: org.hibernate.validator.InvalidStateException: validation failed for: mobileAuditor.entity.Asse
                             at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:527)
                             at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
                             at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:249)
                             at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:88)
                             at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
                             at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1256)
                             at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
                             at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
                             at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
                             at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:47)
                             at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:579)
                             at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                             at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                             at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
                             at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                            Caused by: org.hibernate.validator.InvalidStateException: validation failed for: mobileAuditor.entity.Asse
                             at org.hibernate.validator.event.ValidateEventListener.validate(ValidateEventListener.java:143)
                             at org.hibernate.validator.event.ValidateEventListener.onPreInsert(ValidateEventListener.java:167)
                             at org.hibernate.action.EntityInsertAction.preInsert(EntityInsertAction.java:152)
                             at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:45)
                             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:139)
                             at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
                             at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
                             at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
                             at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
                             at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:515)
                             at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
                             at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:249)
                             at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:88)
                             at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
                             at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1256)
                             at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
                             at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
                             at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
                             at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:47)
                             at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:579)
                             at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                             at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                             at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                            09:15:16,426 ERROR [SeamPhaseListener] uncaught exception
                            java.lang.IllegalStateException: Could not commit transaction
                             at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:589)
                             at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                             at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                             at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
                             at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                             at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:70)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                             at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                            Caused by: javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't commit because the transaction is in aborted state
                             at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1267)
                             at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
                             at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
                             at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
                             at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:47)
                             at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:579)
                             at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                             at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                             at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
                             at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                             at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:70)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                            Caused by: javax.persistence.PersistenceException: org.hibernate.validator.InvalidStateException: validation failed for: mobileAuditor.entity.Asse
                             at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:527)
                             at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
                             at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:249)
                             at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:88)
                             at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
                             at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1256)
                             at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
                             at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
                             at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
                             at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:47)
                             at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:579)
                             at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                             at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                             at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
                             at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                            Caused by: org.hibernate.validator.InvalidStateException: validation failed for: mobileAuditor.entity.Asse
                             at org.hibernate.validator.event.ValidateEventListener.validate(ValidateEventListener.java:143)
                             at org.hibernate.validator.event.ValidateEventListener.onPreInsert(ValidateEventListener.java:167)
                             at org.hibernate.action.EntityInsertAction.preInsert(EntityInsertAction.java:152)
                             at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:45)
                             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:139)
                             at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
                             at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
                             at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
                             at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
                             at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:515)
                             at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
                             at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:249)
                             at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:88)
                             at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
                             at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1256)
                             at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
                             at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
                             at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
                             at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:47)
                             at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:579)
                             at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                             at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                             at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                            09:15:16,766 ERROR [SeamPhaseListener] swallowing exception
                            java.lang.IllegalStateException: Could not commit transaction
                             at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:589)
                             at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                             at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                             at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
                             at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                             at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:70)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:63)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:46)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:140)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                             at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                            Caused by: javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't commit because the transaction is in aborted state
                             at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1267)
                             at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
                             at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
                             at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
                             at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:47)
                             at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:579)
                             at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                             at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                             at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
                             at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                             at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:70)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:60)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                             at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:87)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                            Caused by: javax.persistence.PersistenceException: org.hibernate.validator.InvalidStateException: validation failed for: mobileAuditor.entity.Asse
                             at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:527)
                             at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
                             at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:249)
                             at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:88)
                             at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
                             at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1256)
                             at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
                             at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
                             at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
                             at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:47)
                             at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:579)
                             at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                             at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                             at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
                             at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                             at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                            Caused by: org.hibernate.validator.InvalidStateException: validation failed for: mobileAuditor.entity.Asse
                             at org.hibernate.validator.event.ValidateEventListener.validate(ValidateEventListener.java:143)
                             at org.hibernate.validator.event.ValidateEventListener.onPreInsert(ValidateEventListener.java:167)
                             at org.hibernate.action.EntityInsertAction.preInsert(EntityInsertAction.java:152)
                             at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:45)
                             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:139)
                             at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
                             at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
                             at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
                             at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:338)
                             at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:515)
                             at com.arjuna.ats.internal.jta.resources.arjunacore.SynchronizationImple.beforeCompletion(SynchronizationImple.java:114)
                             at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.beforeCompletion(TwoPhaseCoordinator.java:249)
                             at com.arjuna.ats.arjuna.coordinator.TwoPhaseCoordinator.end(TwoPhaseCoordinator.java:88)
                             at com.arjuna.ats.arjuna.AtomicAction.commit(AtomicAction.java:177)
                             at com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple.commitAndDisassociate(TransactionImple.java:1256)
                             at com.arjuna.ats.internal.jta.transaction.arjunacore.BaseTransaction.commit(BaseTransaction.java:135)
                             at com.arjuna.ats.jbossatx.BaseTransactionManagerDelegate.commit(BaseTransactionManagerDelegate.java:87)
                             at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
                             at org.jboss.seam.transaction.UTTransaction.commit(UTTransaction.java:47)
                             at org.jboss.seam.jsf.SeamPhaseListener.commitOrRollback(SeamPhaseListener.java:579)
                             at org.jboss.seam.jsf.SeamPhaseListener.handleTransactionsAfterPhase(SeamPhaseListener.java:325)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterServletPhase(SeamPhaseListener.java:226)
                             at org.jboss.seam.jsf.SeamPhaseListener.afterPhase(SeamPhaseListener.java:184)
                             at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:280)
                             at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                             at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                             at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                             at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:208)
                             at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:165)
                            


                            Thank you in advance for any help

                            Regards

                            Fabrizio


                            • 11. Re: Seam 2.0.0 B1 & validateAll
                              Fabrizio Boco Newbie

                              Since I have not resolved my problem with , I am trying to compare my application with the trinidad example provided with seam.

                              I have checked seam out from cvs repository and built it.

                              Then I go into the trinidad directory to build the jboss-seam libraries. I get the following error running ant:

                              /root/jboss-seam/trinidad/build.xml:35: /root/jboss-seam/trinidad/${trinidad.lib.dir} not found.
                              


                              Almost the same error if try to compile the seamdiscs example

                              BUILD FAILED
                              /root/jboss-seam/trinidad/examples/seamdiscs/build.xml:60: The following error occurred while executing this line:
                              /root/jboss-seam/trinidad/build.xml:35: /root/jboss-seam/trinidad/${trinidad.lib.dir} not found.
                              


                              Is there anybody out there that can help ?

                              Thank you

                              Fabrizio



                              • 12. Re: Seam 2.0.0 B1 & validateAll
                                Pete Muir Master

                                Sorry, the seamdiscs example won't build at the moment. It's on my todo list (hopefully this weekend). I'll look at this problem at the same time.

                                • 13. Re: Seam 2.0.0 B1 & validateAll
                                  Fabrizio Boco Newbie

                                  Pete,

                                  thank you so much.

                                  Please, take some free time during the weekend !!

                                  Fabrizio

                                  • 14. Re: Seam 2.0.0 B1 & validateAll
                                    Pete Muir Master

                                    Ok, the seamdiscs example is back in CVS (examples/seamdiscs). It would be great if you would test it!

                                    I was able to replicate your problem http://jira.jboss.com/jira/browse/JBSEAM-1667

                                    1 2 Previous Next