Javassist « Exception « JPA Q&A

1. Hibernate Envers and "Javassist Enhancement failed" Exception

We are using Hibernate Envers and have the following situation: A class BusinessObjectType and a class Identity with a reference to BusinessObjectType:

@Table( name = "ID_IDENTITY" )
public class Identity {


3. org.hibernate.HibernateException: Javassist Enhancement fail

I got this exception when i try do execute a hql query: Looks like it does not find org/hibernate/proxy/HibernateProxy: org.hibernate.HibernateException: Javassist Enhancement failed: com.dsdatafashion.domain.persistence.hibernate.Dvs at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxy( at org.hibernate.proxy.pojo.javassist.SerializableProxy.readResolve( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at at at at at at at at at java.util.ArrayList.readObject( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at ...

4. org.hibernate.HibernateException:Javassist EnhancementFailed

Im using Hibernate 3 with JBOSS 4.2.1 GA and get this error while executing a simple query : 12:34:06,611 ERROR [STDERR] org.hibernate.HibernateException: Javassist Enhancement failed: com.MyCompany.MyApp.cube.hibernate.CubeQuery at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxy( at org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.getProxy( at org.hibernate.tuple.entity.AbstractEntityTuplizer.createProxy( at org.hibernate.persister.entity.AbstractEntityPersister.createProxy( at org.hibernate.event.def.DefaultLoadEventListener.createProxyIfNecessary( at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad( at org.hibernate.event.def.DefaultLoadEventListener.onLoad( at org.hibernate.impl.SessionImpl.fireLoad( at org.hibernate.impl.SessionImpl.internalLoad( at org.hibernate.type.EntityType.resolveIdentifier( at org.hibernate.type.EntityType.resolve( at org.hibernate.type.EntityType.nullSafeGet( at at com.MyCompany.MyApp.cube.ajax.AjaxServlet.doPost(Unknown Source) at com.MyCompany.MyApp.cube.ajax.AjaxServlet.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service( at ...

5. java.lang.ClassNotFoundException: javassist.util.proxy.Metho

I have used Hibernate for several years, and recently tried to upgrade to the latest version, including the annotations package. However, there seems to be something wrong with the dependencies, that is the different jar files that need to be included to make it work. The files in the distribution, in the \lib\required folder, are obviously not enough, so I added ...

6. Javassist Exception

7. ClassCastException _$$_javassist_

Hi there! Last week I update the hibernate.jar from version 3.2 to 3.3.2-GA. Unfortunately, I get an error about class cast and _$$javassit_ with a super class (First time I use inheritance with hibernate). With hibernate 3.2 everything was working just right. I have a super class called AFEPlaza with two subclasses: CentroCostoAFEPuesto and ProyectoInstitucionalAFEPuesto. This is the code line where ...