7 Replies Latest reply on Sep 13, 2006 1:22 PM by Andre Fernando Salvati

    Hibernate Validation issue

    Andre Fernando Salvati Novice

      Hi,

      I'm getting this error when I try to update my bean with an invalid parameter:

      21:40:19,953 ERROR [SeamExceptionFilter] uncaught exception handled by Seam
      javax.servlet.ServletException: Could not commit transaction
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:121)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:595)
      21:40:19,953 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
       java.lang.IllegalStateException: Could not commit transaction
       at org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.commitOrRollback(SeamExtendedManagedPersistencePhaseListener.java:98)
       at org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.afterPhase(SeamExtendedManagedPersistencePhaseListener.java:52)
       at org.apache.myfaces.lifecycle.LifecycleImpl.informPhaseListenersAfter(LifecycleImpl.java:536)
       at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:318)
       at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
       at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
       at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
       at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
       at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
       at java.lang.Thread.run(Thread.java:595)
      Caused by: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl[FormatId=257, GlobalId=andre-99ar76ely/156, BranchQual=, localId=156] status=STATUS_NO_TRANSACTION; - nested throwable: (javax.persistence.PersistenceException: org.hibernate.validator.InvalidStateException: validation failed for: com.simac.domain.Equipesimac)
       at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:372)
       at org.jboss.tm.TxManager.commit(TxManager.java:240)
       at org.jboss.tm.usertx.client.ServerVMClientUserTransaction.commit(ServerVMClientUserTransaction.java:140)
       at org.jboss.seam.jsf.SeamExtendedManagedPersistencePhaseListener.commitOrRollback(SeamExtendedManagedPersistencePhaseListener.java:87)
       ... 26 more
      Caused by: javax.persistence.PersistenceException: org.hibernate.validator.InvalidStateException: validation failed for: com.simac.domain.Equipesimac
       at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:487)
       at org.jboss.tm.TransactionImpl.doBeforeCompletion(TransactionImpl.java:1491)
       at org.jboss.tm.TransactionImpl.beforePrepare(TransactionImpl.java:1110)
       at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:324)
       ... 29 more
      Caused by: org.hibernate.validator.InvalidStateException: validation failed for: com.simac.domain.Equipesimac
       at org.hibernate.validator.event.ValidateEventListener.validate(ValidateEventListener.java:104)
       at org.hibernate.validator.event.ValidateEventListener.onPreUpdate(ValidateEventListener.java:132)
       at org.hibernate.action.EntityUpdateAction.preUpdate(EntityUpdateAction.java:217)
       at org.hibernate.action.EntityUpdateAction.execute(EntityUpdateAction.java:64)
       at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
       at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:232)
       at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
       at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
       at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
       at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:993)
       at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:340)
       at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:475)
       ... 32 more
      



      
       @IfInvalid(outcome = Outcome.REDISPLAY)
       public String update() {
       refreshFinder();
       return null;
       }
      


      and this bean:

       @Valid
       private Equipesimac instance = new Equipesimac();
      
       @TransactionAttribute(NOT_SUPPORTED)
       public Equipesimac getInstance() {
       return instance;
      


      Weird thing. Bean creation works fine!!!

       @Begin(join = true)
       @IfInvalid(outcome = Outcome.REDISPLAY)
       public String create() {
       if (entityManager.find(Equipesimac.class, instance.getCodigoEquipe()) != null) {
       FacesContext.getCurrentInstance().addMessage(
       null,
       new FacesMessage(messages.get("Equipesimac_codigoEquipe")
       + " " + messages.get("AlreadyExists")));
       return null;
       }
       entityManager.persist(instance);
       isNew = false;
       refreshFinder();
       return "editEquipesimac";
       }
      
      
      


      Thanks for some help.


        • 1. Re: Hibernate Validation issue
          Pete Muir Master

          @IfInvalid is deprecated, you should use s:validate or s:validateAll from the Seam JSF tag library instead.

          • 2. Re: Hibernate Validation issue
            Denis Karpov Newbie

            Unfortunaly we can not use hibernate validation, because it raises exception, as you already experienced.

            s:validate or s:validateAll works, BUT with restriction. It does not work with facelets templating. For me facelets templating is very important to sacrifice.

            • 3. Re: Hibernate Validation issue
              hdslkf hklsdg Apprentice

              @denis-karpov:

              You mean, something like this does fail?:

              template (common stuff like the form or action buttons)

              <h:form>
               <s:validateAll>
               <ui:insert name="stuffToEdit" />
               <... save, delete and cancel button.... >
               </s:validateAll>
              </h:form>
              


              concrete input fields
              <ui:define name="stuffToEdit">
               <h:inputText....>
               ....
              </ui:define>
              


              I can only say that this works perfectly for me. I just tested it with an org.hibernate.validator.Pattern annotation on an Entity bean. And the annotated property is correctly marked as invalid during process_validations phase :).

              • 4. Re: Hibernate Validation issue
                Pete Muir Master

                No, he means source tag files such as

                <h:composition>
                 <my:input value="#{entity.property}" />
                </h:composition>
                


                my.input.xhtml
                 <h:input value="#{value}" >
                 <s:validate />
                 </h:input>
                


                The consensus seems to be that this a limitation in EL that should be fixed. I work around it by specifying the entity.property as a string as well as a value binding for my source tags

                <h:composition>
                 <my:input value="#{entity.property}" id="entity.property"/>
                </h:composition>
                


                my.input.xhtml
                 <h:input value="#{value}" >
                 <s:validate for="#{id}" />
                 </h:input>
                


                • 5. Re: Hibernate Validation issue
                  Denis Karpov Newbie

                  Yes. I mean exactly this. But this situation can arise not only in the ?source tag case?.

                  I work around it by specifying the entity.property as a string as well as a value binding for my source tags

                  Hmm. Interesting. Is it works??? I have tried your way, but no success. What does it mean FOR="entity.property"?

                  Have you created your own s:valivate that processes for attribute?

                  • 6. Re: Hibernate Validation issue
                    Andre Fernando Salvati Novice

                    Thanks for your answers. I've tried out with <s:validateAll> tag, but got another error. Now, even create method isn't working:

                     @Begin(join = true)
                     //@IfInvalid(outcome = Outcome.REDISPLAY)
                     public String create() {
                     if (entityManager.find(Equipesimac.class, instance.getCodigoEquipe()) != null) {
                     FacesContext.getCurrentInstance().addMessage(
                     null,
                     new FacesMessage(messages.get("Equipesimac_codigoEquipe")
                     + " " + messages.get("AlreadyExists")));
                     return null;
                     }
                     entityManager.persist(instance);
                     isNew = false;
                     refreshFinder();
                     return "editEquipesimac";
                     }
                    
                     //@IfInvalid(outcome = Outcome.REDISPLAY)
                     public String update() {
                     refreshFinder();
                     return null;
                     }
                    
                    


                     <span class="rvgInputs">
                     <s:validateAll>
                     <span class="rvgMessage"><h:messages globalOnly="true"/></span>
                     <h:outputLabel value="#{msg.Equipesimac_codigoEquipe}" for="codigoEquipe">
                     <h:inputText value="#{equipesimacEditor.instance.codigoEquipe}" id="codigoEquipe" disabled="true"/>
                     <span class="rvgMessage"><h:message for="codigoEquipe"/></span>
                     </h:outputLabel>
                     <h:outputLabel value="#{msg.Equipesimac_estacao}" for="estacao">
                     <h:selectOneMenu value="#{equipesimacEditor.instance.estacao}">
                     <f:selectItem itemLabel="Any" itemValue="" id="estacao" />
                     <f:selectItem itemValue="Barra Funda"/>
                     <f:selectItem itemValue="Ana Rosa"/>
                     <f:selectItem itemValue="Tietê"/>
                     <f:selectItem itemValue="Santana"/>
                     </h:selectOneMenu>
                     <span class="rvgMessage"><h:message for="estacao" /></span>
                     </h:outputLabel>
                     <h:outputLabel value="#{msg.Equipesimac_linha}" for="linha">
                     <h:selectOneMenu value="#{equipesimacEditor.instance.linha}">
                     <f:selectItem itemLabel="Any" itemValue="" id="linha" />
                     <f:selectItem itemValue="Azul"/>
                     <f:selectItem itemValue="Amarela"/>
                     <f:selectItem itemValue="Rosa"/>
                     <f:selectItem itemValue="Laranja"/>
                     </h:selectOneMenu>
                     <span class="rvgMessage"><h:message for="linha"/></span>
                     </h:outputLabel>
                     <h:outputLabel value="#{msg.Equipesimac_regiao}" for="regiao">
                     <h:selectOneMenu value="#{equipesimacEditor.instance.regiao}">
                     <f:selectItem itemLabel="Any" itemValue="" id="regiao" />
                     <f:selectItem itemValue="Centro"/>
                     <f:selectItem itemValue="Zona Sul"/>
                     <f:selectItem itemValue="Zona Oeste"/>
                     <f:selectItem itemValue="Zona Norte"/>
                     <f:selectItem itemValue="Zona Leste"/>
                     </h:selectOneMenu>
                     <span class="rvgMessage"><h:message for="regiao"/></span>
                     </h:outputLabel>
                     </s:validateAll>
                     </span>
                    
                    


                    11:00:27,185 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
                    javax.faces.FacesException: Error calling action method of component with id _id2:_id49
                     at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
                     at javax.faces.component.UICommand.broadcast(UICommand.java:106)
                     at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
                     at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
                     at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
                     at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
                     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:106)
                     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
                     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                     at org.jboss.seam.servlet.SeamExceptionFilter.doFilter(SeamExceptionFilter.java:45)
                     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                     at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                     at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                     at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                     at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                     at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                     at java.lang.Thread.run(Thread.java:595)
                    Caused by: javax.faces.el.EvaluationException: Exception while invoking expression #{equipesimacEditor.create}
                     at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
                     at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
                     ... 27 more
                    Caused by: javax.ejb.EJBTransactionRolledbackException: org.hibernate.validator.InvalidStateException: validation failed for: com.simac.domain.Equipesimac
                     at org.jboss.ejb3.tx.Ejb3TxPolicy.handleInCallerTx(Ejb3TxPolicy.java:93)
                     at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:130)
                     at org.jboss.aspects.tx.TxInterceptor$Required.invoke(TxInterceptor.java:201)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.aspects.tx.TxPropagationInterceptor.invoke(TxPropagationInterceptor.java:76)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:81)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:188)
                     at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
                     at $Proxy435.create(Unknown Source)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
                     ... 28 more
                    Caused by: org.hibernate.validator.InvalidStateException: validation failed for: com.simac.domain.Equipesimac
                     at org.hibernate.validator.event.ValidateEventListener.validate(ValidateEventListener.java:104)
                     at org.hibernate.validator.event.ValidateEventListener.onPreInsert(ValidateEventListener.java:127)
                     at org.hibernate.action.EntityIdentityInsertAction.preInsert(EntityIdentityInsertAction.java:106)
                     at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:41)
                     at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
                     at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:290)
                     at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:180)
                     at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:108)
                     at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:131)
                     at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:87)
                     at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:38)
                     at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:620)
                     at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:594)
                     at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:598)
                     at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:186)
                     at com.simac.action.EquipesimacEditorBean.create(EquipesimacEditorBean.java:87)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
                     at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:166)
                     at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                     at org.jboss.seam.interceptors.ValidationInterceptor.validateTargetComponent(ValidationInterceptor.java:64)
                     at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
                     at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
                     at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
                     at org.jboss.seam.interceptors.OutcomeInterceptor.interceptOutcome(OutcomeInterceptor.java:21)
                     at sun.reflect.GeneratedMethodAccessor232.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
                     at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
                     at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
                     at org.jboss.seam.interceptors.RollbackInterceptor.rollbackIfNecessary(RollbackInterceptor.java:30)
                     at sun.reflect.GeneratedMethodAccessor231.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
                     at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
                     at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
                     at org.jboss.seam.interceptors.BijectionInterceptor.bijectTargetComponent(BijectionInterceptor.java:33)
                     at sun.reflect.GeneratedMethodAccessor230.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
                     at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
                     at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
                     at org.jboss.seam.interceptors.ConversationInterceptor.endOrBeginLongRunningConversation(ConversationInterceptor.java:82)
                     at sun.reflect.GeneratedMethodAccessor229.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
                     at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
                     at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
                     at org.jboss.seam.interceptors.BusinessProcessInterceptor.manageBusinessProcessContext(BusinessProcessInterceptor.java:60)
                     at sun.reflect.GeneratedMethodAccessor228.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
                     at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
                     at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
                     at org.jboss.seam.interceptors.RemoveInterceptor.removeIfNecessary(RemoveInterceptor.java:39)
                     at sun.reflect.GeneratedMethodAccessor227.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
                     at org.jboss.seam.interceptors.Interceptor.aroundInvoke(Interceptor.java:90)
                     at org.jboss.seam.interceptors.SeamInvocationContext.proceed(SeamInvocationContext.java:60)
                     at org.jboss.seam.ejb.SeamInterceptor.aroundInvokeInContexts(SeamInterceptor.java:73)
                     at org.jboss.seam.ejb.SeamInterceptor.aroundInvoke(SeamInterceptor.java:45)
                     at sun.reflect.GeneratedMethodAccessor226.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:118)
                     at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor.invoke(ExtendedPersistenceContextPropagationInterceptor.java:57)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.ejb3.AllowedOperationsInterceptor.invoke(AllowedOperationsInterceptor.java:47)
                     at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
                     at org.jboss.aspects.tx.TxPolicy.invokeInCallerTx(TxPolicy.java:126)
                     ... 48 more
                    


                    • 7. Re: Hibernate Validation issue
                      Andre Fernando Salvati Novice

                      Solved. I've put required="true" in selectOneMenu tags.