com.test.TestPersisteceLocal: java.lang.RuntimeException: by java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy

redhat.com | 4 months ago
  1. 0

    JavassistLazyInitializer is not able to load org.hibernate.proxy.HibernateProxy in EAP6 - Red Hat Customer Portal

    redhat.com | 4 months ago
    com.test.TestPersisteceLocal: java.lang.RuntimeException: by java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy

    Root Cause Analysis

    1. com.test.TestPersisteceLocal

      java.lang.RuntimeException: by java.lang.NoClassDefFoundError: org/hibernate/proxy/HibernateProxy

      at javassist.util.proxy.ProxyFactory.createClass3()
    2. Javassist
      ProxyFactory.createClass
      1. javassist.util.proxy.ProxyFactory.createClass3(ProxyFactory.java:510)
      2. javassist.util.proxy.ProxyFactory.createClass2(ProxyFactory.java:487)
      3. javassist.util.proxy.ProxyFactory.createClass1(ProxyFactory.java:423)
      4. javassist.util.proxy.ProxyFactory.createClass(ProxyFactory.java:395)
      4 frames
    3. Hibernate
      PojoEntityTuplizer.<init>
      1. org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.getProxyFactory(JavassistLazyInitializer.java:163)
      2. org.hibernate.proxy.pojo.javassist.JavassistProxyFactory.postInstantiate(JavassistProxyFactory.java:66)
      3. org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:221)
      4. org.hibernate.tuple.entity.AbstractEntityTuplizer.<init>(AbstractEntityTuplizer.java:212)
      5. org.hibernate.tuple.entity.PojoEntityTuplizer.<init>(PojoEntityTuplizer.java:82)
      5 frames
    4. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[rt.jar:1.7.0_15]
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[rt.jar:1.7.0_15]
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[rt.jar:1.7.0_15]
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:525)[rt.jar:1.7.0_15]
      4 frames
    5. Hibernate
      SingleTableEntityPersister.<init>
      1. org.hibernate.tuple.entity.EntityTuplizerFactory.constructTuplizer(EntityTuplizerFactory.java:135)
      2. org.hibernate.tuple.entity.EntityTuplizerFactory.constructDefaultTuplizer(EntityTuplizerFactory.java:188)
      3. org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:341)
      4. org.hibernate.persister.entity.AbstractEntityPersister.<init>(AbstractEntityPersister.java:505)
      5. org.hibernate.persister.entity.SingleTableEntityPersister.<init>(SingleTableEntityPersister.java:146)
      5 frames
    6. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[rt.jar:1.7.0_15]
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[rt.jar:1.7.0_15]
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[rt.jar:1.7.0_15]
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:525)[rt.jar:1.7.0_15]
      4 frames
    7. Hibernate
      Configuration.buildSessionFactory
      1. org.hibernate.persister.internal.PersisterFactoryImpl.create(PersisterFactoryImpl.java:163)
      2. org.hibernate.persister.internal.PersisterFactoryImpl.createEntityPersister(PersisterFactoryImpl.java:135)
      3. org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:381)
      4. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1746)
      4 frames