3 Replies Latest reply on Nov 4, 2007 10:05 AM by Sergio R Pantano

    Error after updated CR2!

    Sergio R Pantano Newbie

      After I updated to Seam 2.0CR2 the following error appears:

      ERROR [BasicLazyInitializer] Javassist Enhancement failed: com.bcsinfo.security.model.Profile
      java.lang.RuntimeException: java.lang.IllegalArgumentException: Can not set static javassist.util.proxy.MethodFilter field com.bcsinfo.security.model.Profile_$$_javassist_0._method_filter to org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer$1
       at javassist.util.proxy.ProxyFactory.setField(ProxyFactory.java:356)
       at javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:339)
       at javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:312)
       at javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:271)
       at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:138)
       at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:42)
       at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)

      ...
      at org.jboss.Main$1.run(Main.java:508)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.IllegalArgumentException: Can not set static javassist.util.proxy.MethodFilter field com.bcsinfo.security.model.Profile_$$_javassist_0._method_filter to org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer$1
       at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
       at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
       at sun.reflect.UnsafeStaticObjectFieldAccessorImpl.set(UnsafeStaticObjectFieldAccessorImpl.java:61)
       at java.lang.reflect.Field.set(Field.java:657)
       at javassist.util.proxy.ProxyFactory.setField(ProxyFactory.java:352)
       ... 170 more
      13:24:33,647 INFO [STDOUT] 13:24:33,616 WARN [PojoEntityTuplizer] could not create proxy factory for:com.bcsinfo.security.model.Profile
      org.hibernate.HibernateException: Javassist Enhancement failed: com.bcsinfo.security.model.Profile
       at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:145)
       at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:42)
       at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:162)


      and the Profile.class is:

      @Entity
      @Table(name = "BAS_ROLE", schema = "UTIL")
      public class Profile extends Pojo implements Serializable {
      
       @Column(name = "ID_ROLE")
       @Id
       @GeneratedValue(strategy = GenerationType.AUTO)
       @NotNull
       private long id;
      
       @NotNull
       private String profile;
      
       private String description;
      
       @ManyToOne
       @JoinColumn(name = "ID_LICENCA")
       private License license;
      
       private boolean screenProfile;
      
       @ManyToMany
       @JoinTable(name = "CONF_ROLESYSTEM", schema = "UTIL",
       joinColumns = {@JoinColumn(name = "ID_ROLE")},
       inverseJoinColumns = {@JoinColumn(name = "ID_SYSTEM")})
       private List<Sistem> sistems;
      
       @ManyToMany(mappedBy = "profiles")
       private List<User> users = new ArrayList<User>();
      
       //GETTERS and SETTERS
      


      why it´s happing????