Steve HELDEBAUME (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5f22e68...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMWUxZGVhNjIx...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-14128?atlOrigin=eyJpIjoiMWUxZG...
) HHH-14128 (
https://hibernate.atlassian.net/browse/HHH-14128?atlOrigin=eyJpIjoiMWUxZG...
) NullPointerException when building sessionFactory (
https://hibernate.atlassian.net/browse/HHH-14128?atlOrigin=eyJpIjoiMWUxZG...
)
Issue Type: Bug Affects Versions: 5.3.15 Assignee: Unassigned Attachments:
persistence.xml, server (1).log Components: hibernate-core Created: 30/Jul/2020 08:35 AM
Environment: openjdk8
Jboss EAP 7.2.8 Priority: Major Reporter: Steve HELDEBAUME (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=5f22e68...
)
We're migrating our app from JBoss EAP6.4 to JBoss EAP7.2.8
So migrating from hibernate 4.2.27 to 5.3.15
When building session factory at JBoss startup, we have a NullPointerException :
13:44:45,421 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 115)
MSC000001: Failed to start service jboss.persistenceunit.
"wcs-Application.ear/wcs-Application.jar#x2010" :
org.jboss.msc.service.StartException in service jboss.persistenceunit.
"wcs-Application.ear/wcs-Application.jar#x2010" :
javax.persistence.PersistenceException: [PersistenceUnit: x2010] Unable to build Hibernate
SessionFactory
at
org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:195)
at
org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:125)
at
org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:662)
[wildfly-elytron-1.6.6.Final-redhat-00001.jar:1.6.6.Final-redhat-00001]
at
org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:209)
at
org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1982)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
at java.lang. Thread.run( Thread.java:748) [rt.jar:1.8.0_222]
at org.jboss.threads.JBossThread.run(JBossThread.java:485)
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: x2010] Unable to
build Hibernate SessionFactory
at
org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:1327)
at
org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1253)
at
org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44)
at
org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:167)
... 9 more
Caused by: java.lang.NullPointerException
at
org.hibernate.loader.plan.build.internal.AbstractLoadPlanBuildingAssociationVisitationStrategy.foundCircularAssociation(AbstractLoadPlanBuildingAssociationVisitationStrategy.java:669)
at
org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitAttributeDefinition(MetamodelGraphWalker.java:148)
at
org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitAttributes(MetamodelGraphWalker.java:133)
at
org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitCompositeDefinition(MetamodelGraphWalker.java:209)
at
org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitCollectionIndex(MetamodelGraphWalker.java:240)
at
org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitCollectionDefinition(MetamodelGraphWalker.java:217)
at
org.hibernate.persister.walking.spi.MetamodelGraphWalker.visitCollection(MetamodelGraphWalker.java:73)
at
org.hibernate.loader.plan.build.spi.MetamodelDrivenLoadPlanBuilder.buildRootCollectionLoadPlan(MetamodelDrivenLoadPlanBuilder.java:54)
at
org.hibernate.loader.collection.plan.AbstractLoadPlanBasedCollectionInitializer.<init>(AbstractLoadPlanBasedCollectionInitializer.java:61)
at
org.hibernate.loader.collection.plan.CollectionLoader.<init>(CollectionLoader.java:81)
at
org.hibernate.loader.collection.plan.CollectionLoader$Builder.byKey(CollectionLoader.java:74)
at
org.hibernate.loader.collection.plan.AbstractBatchingCollectionInitializerBuilder.buildNonBatchingLoader(AbstractBatchingCollectionInitializerBuilder.java:28)
at
org.hibernate.loader.collection.BatchingCollectionInitializerBuilder.createBatchingOneToManyInitializer(BatchingCollectionInitializerBuilder.java:85)
at
org.hibernate.persister.collection.OneToManyPersister.createCollectionInitializer(OneToManyPersister.java:513)
at
org.hibernate.persister.collection.AbstractCollectionPersister.postInstantiate(AbstractCollectionPersister.java:668)
at java.util.concurrent.ConcurrentHashMap$ValuesView.forEach(ConcurrentHashMap.java:4707)
[rt.jar:1.8.0_222]
at org.hibernate.metamodel.internal.MetamodelImpl.initialize(MetamodelImpl.java:233)
at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:295)
at
org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:467)
at
org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:1250)
... 11 more
No other stack saying which entity could present a problem.
Any idea guys ?
persistence.xml (
https://hibernate.atlassian.net/secure/attachment/49720/49720_persistence... ) server
(1).log (
https://hibernate.atlassian.net/secure/attachment/49719/49719_server+%281...
)
(
https://hibernate.atlassian.net/browse/HHH-14128#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-14128#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100140- sha1:5beb332 )