0 Replies Latest reply on Mar 24, 2014 8:13 AM by Bimales Mandal

    Does Jboss 7 & Hibernate 4 support dynamic-map as default_entity_mode?

    Bimales Mandal Newbie

      Dear JBoss Team,

      We are in process to migrate project to Jboss 7.1.1 and Hibernate 4. It has been observed that dynamic-map is not working and throwing NPE exception while deploying our existing JPA project. (Note: It was working fine with Jboss 4.3.2 & Hibernate 3).

      Please let us know whether Hibernate 4 does support dynamic-map as default_entity_mode? If yes then what are the required additional configuration.

      Thanks a lot in advance!

      Please check the below error stack trace. Even we have downgrade the Hibernate version to 3 though Jboss 7 is throwing same NPE error and seems that JBoss 7 internally calls the Hibernate 4 classes (e.g. org.hibernate.internal.SessionFactoryImpl).

       

      Please let us know about your plan regarding below reported BUG.

      Link: [HHH-7654] NPE in dynamic entity - Hibernate JIRA

       

       

      Deployment log:

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_30]

      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_30]

      at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_30]

      Caused by: java.lang.NullPointerException

      at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_30]

      at java.lang.Class.forName(Class.java:247) [rt.jar:1.6.0_30]

      at org.hibernate.annotations.common.util.ReflectHelper.classForName(ReflectHelper.java:143)

      at org.hibernate.annotations.common.reflection.java.JavaReflectionManager.classForName(JavaReflectionManager.java:117)

      at org.hibernate.envers.configuration.RevisionInfoConfiguration.configure(RevisionInfoConfiguration.java:256)

      at org.hibernate.envers.configuration.AuditConfiguration.<init>(AuditConfiguration.java:95)

      at org.hibernate.envers.configuration.AuditConfiguration.getFor(AuditConfiguration.java:135)

      at org.hibernate.envers.event.EnversIntegrator.integrate(EnversIntegrator.java:63)

      at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:294)

      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1737)

      at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:84)

      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:904)

      at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:889)

      at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)

      at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)

      at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]

      at org.jboss.msc.service.ServiceControllerImpl$Sta