[jboss-user] [JBoss Seam] - Error after updated CR2!

srpantano do-not-reply at jboss.com
Mon Oct 8 12:32:03 EDT 2007


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????

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4092663#4092663

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4092663




More information about the jboss-user mailing list