11 Replies Latest reply on Feb 12, 2008 8:19 AM by Adrián Juan Heredia

    Problem with update

    Adrián Juan Heredia Newbie

      Hi all,

      I've got an entity (user) that has a many-to-one relationship with another entity (group), both generated with seam-gen. The problem is that when I try to change the group that a user belongs to, this happens, but in the database what has happened is that the name of that group has been changed, and that is not what I want.

      I´m using Seam 2.0.0.SNAPSHOT, JBoss AS 4.2.2 and Red Hat Developer Studio 1.0.0.CR1.

      Here you have my code:

      the user:

      @Entity
      @Table(name = "USUARIOS")
      public class Usuarios implements java.io.Serializable {
      
       private long codUsuario;
       private GruposUsuarios gruposUsuarios;
       private String nombreUsuario;
       private Short prioridadUsuario;
       private String passwordUsuario;
       private String filtroUsuario;
       private String snmpUsuario;
       private Set<TemispConfiguracion> temispConfiguracions = new HashSet<TemispConfiguracion>(
       0);
       private Set<FiltrosFichas> filtrosFichases = new HashSet<FiltrosFichas>(0);
       private Set<Operacion> operacions = new HashSet<Operacion>(0);
       private Set<Macro> macros = new HashSet<Macro>(0);
       private Set<NuevaConfiguracion> nuevaConfiguracions = new HashSet<NuevaConfiguracion>(
       0);
       private Set<Grupo> grupos = new HashSet<Grupo>(0);
      
       public Usuarios() {
       }
      
       public Usuarios(long codUsuario, GruposUsuarios gruposUsuarios) {
       this.codUsuario = codUsuario;
       this.gruposUsuarios = gruposUsuarios;
       }
       public Usuarios(long codUsuario, GruposUsuarios gruposUsuarios,
       String nombreUsuario, Short prioridadUsuario,
       String passwordUsuario, String filtroUsuario, String snmpUsuario,
       Set<TemispConfiguracion> temispConfiguracions,
       Set<FiltrosFichas> filtrosFichases, Set<Operacion> operacions,
       Set<Macro> macros, Set<NuevaConfiguracion> nuevaConfiguracions,
       Set<Grupo> grupos) {
       this.codUsuario = codUsuario;
       this.gruposUsuarios = gruposUsuarios;
       this.nombreUsuario = nombreUsuario;
       this.prioridadUsuario = prioridadUsuario;
       this.passwordUsuario = passwordUsuario;
       this.filtroUsuario = filtroUsuario;
       this.snmpUsuario = snmpUsuario;
       this.temispConfiguracions = temispConfiguracions;
       this.filtrosFichases = filtrosFichases;
       this.operacions = operacions;
       this.macros = macros;
       this.nuevaConfiguracions = nuevaConfiguracions;
       this.grupos = grupos;
       }
      
       @Id
       @Column(name = "COD_USUARIO", unique = true, nullable = false, precision = 10, scale = 0)
       @NotNull
       public long getCodUsuario() {
       return this.codUsuario;
       }
      
       public void setCodUsuario(long codUsuario) {
       this.codUsuario = codUsuario;
       }
       @ManyToOne(fetch = FetchType.LAZY)
       @JoinColumn(name = "COD_GRUPOS_USUARIOS", nullable = false)
       @NotNull
       public GruposUsuarios getGruposUsuarios() {
       return this.gruposUsuarios;
       }
      
       public void setGruposUsuarios(GruposUsuarios gruposUsuarios) {
       this.gruposUsuarios = gruposUsuarios;
       }
      
       @Column(name = "NOMBRE_USUARIO", length = 60)
       @Length(max = 60)
       public String getNombreUsuario() {
       return this.nombreUsuario;
       }
      
       public void setNombreUsuario(String nombreUsuario) {
       this.nombreUsuario = nombreUsuario;
       }
      
       @Column(name = "PRIORIDAD_USUARIO", precision = 3, scale = 0)
       public Short getPrioridadUsuario() {
       return this.prioridadUsuario;
       }
      
       public void setPrioridadUsuario(Short prioridadUsuario) {
       this.prioridadUsuario = prioridadUsuario;
       }
      
       @Column(name = "PASSWORD_USUARIO", length = 128)
       @Length(max = 128)
       public String getPasswordUsuario() {
       return this.passwordUsuario;
       }
      
       public void setPasswordUsuario(String passwordUsuario) {
       this.passwordUsuario = passwordUsuario;
       }
      
       @Column(name = "FILTRO_USUARIO", length = 20)
       @Length(max = 20)
       public String getFiltroUsuario() {
       return this.filtroUsuario;
       }
      
       public void setFiltroUsuario(String filtroUsuario) {
       this.filtroUsuario = filtroUsuario;
       }
      
       @Column(name = "SNMP_USUARIO", length = 20)
       @Length(max = 20)
       public String getSnmpUsuario() {
       return this.snmpUsuario;
       }
      
       public void setSnmpUsuario(String snmpUsuario) {
       this.snmpUsuario = snmpUsuario;
       }
       @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "usuarios")
       public Set<TemispConfiguracion> getTemispConfiguracions() {
       return this.temispConfiguracions;
       }
      
       public void setTemispConfiguracions(
       Set<TemispConfiguracion> temispConfiguracions) {
       this.temispConfiguracions = temispConfiguracions;
       }
       @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "usuarios")
       public Set<FiltrosFichas> getFiltrosFichases() {
       return this.filtrosFichases;
       }
      
       public void setFiltrosFichases(Set<FiltrosFichas> filtrosFichases) {
       this.filtrosFichases = filtrosFichases;
       }
       @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "usuarios")
       public Set<Operacion> getOperacions() {
       return this.operacions;
       }
      
       public void setOperacions(Set<Operacion> operacions) {
       this.operacions = operacions;
       }
       @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "usuarios")
       public Set<Macro> getMacros() {
       return this.macros;
       }
      
       public void setMacros(Set<Macro> macros) {
       this.macros = macros;
       }
       @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "usuarios")
       public Set<NuevaConfiguracion> getNuevaConfiguracions() {
       return this.nuevaConfiguracions;
       }
      
       public void setNuevaConfiguracions(
       Set<NuevaConfiguracion> nuevaConfiguracions) {
       this.nuevaConfiguracions = nuevaConfiguracions;
       }
       @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "usuarios")
       public Set<Grupo> getGrupos() {
       return this.grupos;
       }
      
       public void setGrupos(Set<Grupo> grupos) {
       this.grupos = grupos;
       }
      
      }
      


      The group:


      @Entity
      @Table(name = "GRUPOS_USUARIOS")
      public class GruposUsuarios implements java.io.Serializable {
      
       private long codGruposUsuarios;
       private String nombreGruposUsuarios;
       private Set<Usuarios> usuarioses = new HashSet<Usuarios>(0);
       private Set<Filtros> filtroses = new HashSet<Filtros>(0);
       private Set<Equipos> equiposes = new HashSet<Equipos>(0);
      
       public GruposUsuarios() {
       }
      
       public GruposUsuarios(long codGruposUsuarios) {
       this.codGruposUsuarios = codGruposUsuarios;
       }
       public GruposUsuarios(long codGruposUsuarios, String nombreGruposUsuarios,
       Set<Usuarios> usuarioses, Set<Filtros> filtroses,
       Set<Equipos> equiposes) {
       this.codGruposUsuarios = codGruposUsuarios;
       this.nombreGruposUsuarios = nombreGruposUsuarios;
       this.usuarioses = usuarioses;
       this.filtroses = filtroses;
       this.equiposes = equiposes;
       }
      
       @Id
       @Column(name = "COD_GRUPOS_USUARIOS", unique = true, nullable = false, precision = 10, scale = 0)
       @NotNull
       public long getCodGruposUsuarios() {
       return this.codGruposUsuarios;
       }
      
       public void setCodGruposUsuarios(long codGruposUsuarios) {
       this.codGruposUsuarios = codGruposUsuarios;
       }
      
       @Column(name = "NOMBRE_GRUPOS_USUARIOS", length = 60)
       @Length(max = 60)
       public String getNombreGruposUsuarios() {
       return this.nombreGruposUsuarios;
       }
      
       public void setNombreGruposUsuarios(String nombreGruposUsuarios) {
       this.nombreGruposUsuarios = nombreGruposUsuarios;
       }
       @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "gruposUsuarios")
       public Set<Usuarios> getUsuarioses() {
       return this.usuarioses;
       }
      
       public void setUsuarioses(Set<Usuarios> usuarioses) {
       this.usuarioses = usuarioses;
       }
       @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "gruposUsuarios")
       public Set<Filtros> getFiltroses() {
       return this.filtroses;
       }
      
       public void setFiltroses(Set<Filtros> filtroses) {
       this.filtroses = filtroses;
       }
       @OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "gruposUsuarios")
       public Set<Equipos> getEquiposes() {
       return this.equiposes;
       }
      
       public void setEquiposes(Set<Equipos> equiposes) {
       this.equiposes = equiposes;
       }
      
      }
      


      This is the code where I show the group name and where I do the update:

      <s:decorate id="grupoUsuarioDecoration" template="layout/edit.xhtml">
       <ui:define name="label">${messages.usersEditGroup}</ui:define>
       <h:selectOneMenu id="grupoUsuario1" required="true" rendered="#{s:hasRole('Administrador') or (s:hasRole('Supervisor') and (usuariosHome.instance.prioridadUsuario > 20))}"
       value="#{usuariosHome.instance.gruposUsuarios.nombreGruposUsuarios}">
       <s:selectItems value="#{usuariosEditBean.listaGruposUsuarios}" var="t" label="#{t}" />
       </h:selectOneMenu>
       <h:inputText id="grupoUsuario2"
       size="20"
       maxlength="20"
       rendered="#{s:hasRole('Configurador') or s:hasRole('Visualizador') or (s:hasRole('Supervisor') and (not (usuariosHome.instance.prioridadUsuario > 20)))}"
       disabled="true"
       value="#{usuariosHome.instance.gruposUsuarios.nombreGruposUsuarios}">
       <a:support event="onblur" reRender="grupoUsuarioDecoration" bypassUpdates="true"/>
       </h:inputText>
       </s:decorate>
      


      Does anyone know something about this?

      Thanks in advance.

        • 1. Re: Problem with update
          Adrián Juan Heredia Newbie

          Sorry, I'm using Seam 2.0.1.SNAPSHOT.

          • 2. Re: Problem with update
            Adrián Juan Heredia Newbie

            Anyone could help me, please?

            • 3. Re: Problem with update
              Nicklas Karlsson Master

              if your selectItems work on a list of entities and your selectbox value is pointing at an entity you need the s:convertEntity tag, check the manual for futher details.

              • 4. Re: Problem with update
                Adrián Juan Heredia Newbie

                I´ve got a selectOneMenu, and is pointing to a variable of an entity, the group name, of the entity group.

                • 5. Re: Problem with update
                  Nicklas Karlsson Master

                  And are you using a nested s:convertEntity?

                  • 6. Re: Problem with update
                    Adrián Juan Heredia Newbie

                    I've got this:

                    <h:selectOneMenu id="grupoUsuario1" required="true" value="#{usuariosHome.instance.gruposUsuarios.nombreGruposUsuarios
                    }">
                     <s:selectItems value="#{usuariosEditBean.listaGruposUsuarios}" var="t" label="#{t}" /> </h:selectOneMenu>


                    And the bean is:

                    @Stateless
                    @Name("usuariosEditBean")
                    @Scope(EVENT)
                    @Restrict("#{identity.loggedIn}")
                    public class UsuariosEditBeanAction implements UsuariosEditBeanInterface, Serializable
                    {
                     private static final long serialVersionUID = 1L;
                    
                     @Logger
                     Log log;
                    
                     @In
                     Identity identity;
                    
                     @PersistenceContext
                     private EntityManager em;
                    
                     @Out
                     private List<String> listaGruposUsuarios = new ArrayList<String>();
                    
                     @Out
                     private List<Short> listaPrioridades = new ArrayList<Short>();
                    
                     public List<String> getListaGruposUsuarios()
                     {
                     List results = em.createQuery("select gruposUsuarios from GruposUsuarios gruposUsuarios")
                     .getResultList();
                    
                     if (listaGruposUsuarios.size() != 0)
                     {
                     listaGruposUsuarios.clear();
                     }
                    
                     if (results.size() == 0)
                     {
                     listaGruposUsuarios = null;
                     return listaGruposUsuarios;
                     }
                     else
                     {
                     GruposUsuarios grupo;
                    
                     for (int i = 0; i < results.size(); i++)
                     {
                     grupo = (GruposUsuarios)results.get(i);
                     listaGruposUsuarios.add(grupo.getNombreGruposUsuarios());
                     }
                     return listaGruposUsuarios;
                     }
                     }
                    
                     public List<Short> getListaPrioridades()
                     {
                     Short aux;
                    
                     listaPrioridades.clear();
                    
                     if (identity.hasRole("Administrador"))
                     {
                     aux = 10;
                     listaPrioridades.add(aux);
                     aux = 20;
                     listaPrioridades.add(aux);
                     aux = 30;
                     listaPrioridades.add(aux);
                     aux = 40;
                     listaPrioridades.add(aux);
                     }
                     else if (identity.hasRole("Supervisor"))
                     {
                     aux = 30;
                     listaPrioridades.add(aux);
                     aux = 40;
                     listaPrioridades.add(aux);
                     }
                     else if (identity.hasRole("Configurador"))
                     {
                     aux = 30;
                     listaPrioridades.add(aux);
                     }
                     if (identity.hasRole("Visualizador"))
                     {
                     aux = 40;
                     listaPrioridades.add(aux);
                     }
                    
                     return listaPrioridades;
                     }
                    
                     public GruposUsuarios selectGruposWhereNombreGruposUsuarios(String g)
                     {
                     GruposUsuarios grupo;
                    
                     List results = em.createQuery("select g from GruposUsuarios g where g.nombreGruposUsuario="+g)
                     .getResultList();
                    
                     if ( results.size()==0 )
                     {
                     log.info("Grupo '#0' no está en la DB", g);
                     grupo = null;
                     }
                     // Si existe...
                     else
                     {
                     log.info("Grupo '#0' sà está en la DB", g);
                     grupo = (GruposUsuarios) results.get(0);
                     }
                    
                     return grupo;
                     }
                    }


                    I catch all the groups and put them in the selecItems, with their name.

                    Thanks for the reply, nickarls.

                    • 7. Re: Problem with update
                      Adrián Juan Heredia Newbie

                      When I use <s:convertEntity /> and select a new group (grupo

                      2) for the user and click on update, it gives me the following error:

                      10:53:37,124 WARN [lifecycle] For input string: "grupo2"
                      java.lang.NumberFormatException: For input string: "grupo2"
                       at java.lang.NumberFormatException.forInputString(Unknown Source)
                       at java.lang.Integer.parseInt(Unknown Source)
                       at java.lang.Integer.<init>(Unknown Source)
                       at org.jboss.seam.ui.converter.entityConverter.EntityIdentifierStore.get(EntityIdentifierStore.java:46)
                       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                       at java.lang.reflect.Method.invoke(Unknown Source)
                       at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                       at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:61)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                       at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
                       at org.jboss.seam.ui.converter.entityConverter.EntityIdentifierStore_$$_javassist_17.get(EntityIdentifierStore_$$_javassist_17.java)
                       at org.jboss.seam.ui.converter.entityConverter.AbstractEntityLoader.get(AbstractEntityLoader.java:23)
                       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                       at java.lang.reflect.Method.invoke(Unknown Source)
                       at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                       at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:61)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                       at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
                       at org.jboss.seam.util.Work.workInTransaction(Work.java:79)
                       at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
                       at org.jboss.seam.ui.converter.entityConverter.EntityLoader_$$_javassist_15.get(EntityLoader_$$_javassist_15.java)
                       at org.jboss.seam.ui.converter.EntityConverter.getAsObject(EntityConverter.java:89)
                       at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:152)
                       at com.sun.faces.renderkit.html_basic.MenuRenderer.convertSelectOneValue(MenuRenderer.java:197)
                       at com.sun.faces.renderkit.html_basic.MenuRenderer.getConvertedValue(MenuRenderer.java:359)
                       at javax.faces.component.UIInput.getConvertedValue(UIInput.java:934)
                       at javax.faces.component.UIInput.validate(UIInput.java:860)
                       at javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
                       at javax.faces.component.UIInput.processValidators(UIInput.java:666)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIForm.processValidators(UIForm.java:229)
                       at javax.faces.component.UIForm.processValidators(UIForm.java:229)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
                       at org.ajax4jsf.component.AjaxViewRoot.access$201(AjaxViewRoot.java:57)
                       at org.ajax4jsf.component.AjaxViewRoot$3.invokeRoot(AjaxViewRoot.java:319)
                       at org.ajax4jsf.context.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:56)
                       at org.ajax4jsf.context.AjaxContextImpl.invokeOnRegionOrRoot(AjaxContextImpl.java:173)
                       at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:333)
                       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)
                       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.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                       at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                       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:432)
                       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                       at java.lang.Thread.run(Unknown Source)
                      10:53:37,124 WARN [lifecycle] executePhase(PROCESS_VALIDATIONS 3,com.sun.faces.context.FacesContextImpl@5dae4f) threw exception
                      javax.faces.FacesException: For input string: "grupo2"
                       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.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                       at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                       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:432)
                       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                       at java.lang.Thread.run(Unknown Source)
                      Caused by: java.lang.NumberFormatException: For input string: "grupo2"
                       at java.lang.NumberFormatException.forInputString(Unknown Source)
                       at java.lang.Integer.parseInt(Unknown Source)
                       at java.lang.Integer.<init>(Unknown Source)
                       at org.jboss.seam.ui.converter.entityConverter.EntityIdentifierStore.get(EntityIdentifierStore.java:46)
                       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                       at java.lang.reflect.Method.invoke(Unknown Source)
                       at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                       at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:61)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                       at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
                       at org.jboss.seam.ui.converter.entityConverter.EntityIdentifierStore_$$_javassist_17.get(EntityIdentifierStore_$$_javassist_17.java)
                       at org.jboss.seam.ui.converter.entityConverter.AbstractEntityLoader.get(AbstractEntityLoader.java:23)
                       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                       at java.lang.reflect.Method.invoke(Unknown Source)
                       at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                       at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:61)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                       at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
                       at org.jboss.seam.util.Work.workInTransaction(Work.java:79)
                       at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
                       at org.jboss.seam.ui.converter.entityConverter.EntityLoader_$$_javassist_15.get(EntityLoader_$$_javassist_15.java)
                       at org.jboss.seam.ui.converter.EntityConverter.getAsObject(EntityConverter.java:89)
                       at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:152)
                       at com.sun.faces.renderkit.html_basic.MenuRenderer.convertSelectOneValue(MenuRenderer.java:197)
                       at com.sun.faces.renderkit.html_basic.MenuRenderer.getConvertedValue(MenuRenderer.java:359)
                       at javax.faces.component.UIInput.getConvertedValue(UIInput.java:934)
                       at javax.faces.component.UIInput.validate(UIInput.java:860)
                       at javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
                       at javax.faces.component.UIInput.processValidators(UIInput.java:666)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIForm.processValidators(UIForm.java:229)
                       at javax.faces.component.UIForm.processValidators(UIForm.java:229)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
                       at org.ajax4jsf.component.AjaxViewRoot.access$201(AjaxViewRoot.java:57)
                       at org.ajax4jsf.component.AjaxViewRoot$3.invokeRoot(AjaxViewRoot.java:319)
                       at org.ajax4jsf.context.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:56)
                       at org.ajax4jsf.context.AjaxContextImpl.invokeOnRegionOrRoot(AjaxContextImpl.java:173)
                       at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:333)
                       at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:100)
                       ... 40 more
                      10:53:37,139 ERROR [ExceptionFilter] handling uncaught exception
                      javax.servlet.ServletException: For input string: "grupo2"
                       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.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                       at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                       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:432)
                       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                       at java.lang.Thread.run(Unknown Source)
                      Caused by: java.lang.NumberFormatException: For input string: "grupo2"
                       at java.lang.NumberFormatException.forInputString(Unknown Source)
                       at java.lang.Integer.parseInt(Unknown Source)
                       at java.lang.Integer.<init>(Unknown Source)
                       at org.jboss.seam.ui.converter.entityConverter.EntityIdentifierStore.get(EntityIdentifierStore.java:46)
                       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                       at java.lang.reflect.Method.invoke(Unknown Source)
                       at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                       at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:61)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                       at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
                       at org.jboss.seam.ui.converter.entityConverter.EntityIdentifierStore_$$_javassist_17.get(EntityIdentifierStore_$$_javassist_17.java)
                       at org.jboss.seam.ui.converter.entityConverter.AbstractEntityLoader.get(AbstractEntityLoader.java:23)
                       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                       at java.lang.reflect.Method.invoke(Unknown Source)
                       at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                       at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:61)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                       at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
                       at org.jboss.seam.util.Work.workInTransaction(Work.java:79)
                       at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
                       at org.jboss.seam.ui.converter.entityConverter.EntityLoader_$$_javassist_15.get(EntityLoader_$$_javassist_15.java)
                       at org.jboss.seam.ui.converter.EntityConverter.getAsObject(EntityConverter.java:89)
                       at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:152)
                       at com.sun.faces.renderkit.html_basic.MenuRenderer.convertSelectOneValue(MenuRenderer.java:197)
                       at com.sun.faces.renderkit.html_basic.MenuRenderer.getConvertedValue(MenuRenderer.java:359)
                       at javax.faces.component.UIInput.getConvertedValue(UIInput.java:934)
                       at javax.faces.component.UIInput.validate(UIInput.java:860)
                       at javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
                       at javax.faces.component.UIInput.processValidators(UIInput.java:666)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIForm.processValidators(UIForm.java:229)
                       at javax.faces.component.UIForm.processValidators(UIForm.java:229)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
                       at org.ajax4jsf.component.AjaxViewRoot.access$201(AjaxViewRoot.java:57)
                       at org.ajax4jsf.component.AjaxViewRoot$3.invokeRoot(AjaxViewRoot.java:319)
                       at org.ajax4jsf.context.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:56)
                       at org.ajax4jsf.context.AjaxContextImpl.invokeOnRegionOrRoot(AjaxContextImpl.java:173)
                       at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:333)
                       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)
                       at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                       ... 37 more
                      10:53:37,139 ERROR [ExceptionFilter] exception root cause
                      java.lang.NumberFormatException: For input string: "grupo2"
                       at java.lang.NumberFormatException.forInputString(Unknown Source)
                       at java.lang.Integer.parseInt(Unknown Source)
                       at java.lang.Integer.<init>(Unknown Source)
                       at org.jboss.seam.ui.converter.entityConverter.EntityIdentifierStore.get(EntityIdentifierStore.java:46)
                       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                       at java.lang.reflect.Method.invoke(Unknown Source)
                       at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                       at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:61)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                       at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
                       at org.jboss.seam.ui.converter.entityConverter.EntityIdentifierStore_$$_javassist_17.get(EntityIdentifierStore_$$_javassist_17.java)
                       at org.jboss.seam.ui.converter.entityConverter.AbstractEntityLoader.get(AbstractEntityLoader.java:23)
                       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                       at java.lang.reflect.Method.invoke(Unknown Source)
                       at org.jboss.seam.util.Reflections.invoke(Reflections.java:21)
                       at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:61)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
                       at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:31)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:38)
                       at org.jboss.seam.util.Work.workInTransaction(Work.java:79)
                       at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:32)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:42)
                       at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
                       at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:106)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
                       at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
                       at org.jboss.seam.ui.converter.entityConverter.EntityLoader_$$_javassist_15.get(EntityLoader_$$_javassist_15.java)
                       at org.jboss.seam.ui.converter.EntityConverter.getAsObject(EntityConverter.java:89)
                       at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getConvertedValue(HtmlBasicInputRenderer.java:152)
                       at com.sun.faces.renderkit.html_basic.MenuRenderer.convertSelectOneValue(MenuRenderer.java:197)
                       at com.sun.faces.renderkit.html_basic.MenuRenderer.getConvertedValue(MenuRenderer.java:359)
                       at javax.faces.component.UIInput.getConvertedValue(UIInput.java:934)
                       at javax.faces.component.UIInput.validate(UIInput.java:860)
                       at javax.faces.component.UIInput.executeValidate(UIInput.java:1065)
                       at javax.faces.component.UIInput.processValidators(UIInput.java:666)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIForm.processValidators(UIForm.java:229)
                       at javax.faces.component.UIForm.processValidators(UIForm.java:229)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:1033)
                       at javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:662)
                       at org.ajax4jsf.component.AjaxViewRoot.access$201(AjaxViewRoot.java:57)
                       at org.ajax4jsf.component.AjaxViewRoot$3.invokeRoot(AjaxViewRoot.java:319)
                       at org.ajax4jsf.context.JsfOneOneInvoker.invokeOnRegionOrRoot(JsfOneOneInvoker.java:56)
                       at org.ajax4jsf.context.AjaxContextImpl.invokeOnRegionOrRoot(AjaxContextImpl.java:173)
                       at org.ajax4jsf.component.AjaxViewRoot.processValidators(AjaxViewRoot.java:333)
                       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)
                       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.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                       at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                       at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                       at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                       at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                       at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:158)
                       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:432)
                       at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
                       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
                       at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                       at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
                       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
                       at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
                       at java.lang.Thread.run(Unknown Source)


                      I have added in components.xml:

                      <component name="org.jboss.seam.ui.EntityConverter">
                       <property name="entityManager">#{em}</property>
                      </component>




                      • 8. Re: Problem with update
                        Nicklas Karlsson Master

                        And you are now working on lists of entities without converting them to Strings?

                        • 9. Re: Problem with update
                          Adrián Juan Heredia Newbie

                          It is a list of Strings.

                          • 10. Re: Problem with update
                            Nicklas Karlsson Master

                            Give it a try on a plain list of entities, now the converter is trying to convert the string to an entity id...

                            • 11. Re: Problem with update
                              Adrián Juan Heredia Newbie

                              GruposUsuarios has 2 columns, codGruposUsuarios (the @Id) and nombreGruposUsuarios, which is the one I'm using to change the group.
                              Could it be the problem that nombreGruposUsuarios is not a @Id??
                              In this case, how could I do to change not by the Id?
                              Thanks.