[
https://issues.jboss.org/browse/WFLY-10020?page=com.atlassian.jira.plugin...
]
Jan-Willem Gmelig Meyling commented on WFLY-10020:
--------------------------------------------------
Hibernate 5.2.x seems to be incompatible with Infinispan 9.1.x (and especially the new
infinispan.hibernate module in WildFly 12). While I've worked with both Hibernate
5.2.x and Infinispan in WildFly 10 and 11, WildFly 12 I don't seem to get it to work
either. It however works fine with the Infinispan 9.2.x in the next WildFly 13. If
you're on WildFly 12 with Hibernate 5.2.x like me, you probably have to let this
version pass. Now WildFly 13 is on Infinispan 9.2.x anyway, which seemed to be the last
blocker, I am wondering why Hibernate 5.2.x isn't going to be the new default
(WFLY-6682). I've also published an updated pull request for migrating to Hibernate
5.2.x in WildFly 13:
https://github.com/wildfly/wildfly/pull/11188 .
Custom Hibernate slot and second level cache with Wildfly 12 causes
NullPointer Exception
-----------------------------------------------------------------------------------------
Key: WFLY-10020
URL:
https://issues.jboss.org/browse/WFLY-10020
Project: WildFly
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: 12.0.0.Final
Reporter: Alessandro Moscatelli
Assignee: Scott Marlow
Migrating to 12 with Hibernate Custom slot causes NullPointer Exception.
https://mvnrepository.com/artifact/org.hibernate/hibernate-orm-modules
<property name="jboss.as.jpa.providerModule"
value="org.hibernate:5.2.13.Final" />
16:12:28,868 INFO [org.jboss.as.jpa] (MSC service thread 1-1) WFLYJPA0002: Read
persistence.xml for optoplus
16:12:29,142 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001:
Failed to start service
jboss.deployment.unit."optoplus-services-ear-1.0.18-SNAPSHOT.ear".FIRST_MODULE_USE:
org.jboss.msc.service.StartException in service
jboss.deployment.unit."optoplus-services-ear-1.0.18-SNAPSHOT.ear".FIRST_MODULE_USE:
WFLYSRV0153: Failed to process phase FIRST_MODULE_USE of deployment
"optoplus-services-ear-1.0.18-SNAPSHOT.ear"
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:151)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1714)
at
org.jboss.msc.service.ServiceControllerImpl$StartTask.execute(ServiceControllerImpl.java:1693)
at
org.jboss.msc.service.ServiceControllerImpl$ControllerTask.run(ServiceControllerImpl.java:1540)
at
org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
at
org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at
org.jboss.as.jpa.processor.secondLevelCache.InfinispanCacheDeploymentListener.addCacheDependencies(InfinispanCacheDeploymentListener.java:129)
at
org.jboss.as.jpa.processor.secondLevelCache.CacheDeploymentListener.addCacheDependencies(CacheDeploymentListener.java:111)
at
org.jipijapa.event.impl.internal.Notification.addCacheDependencies(Notification.java:95)
at
org.jboss.as.jpa.hibernate5.HibernateSecondLevelCache.addSecondLevelCacheDependencies(HibernateSecondLevelCache.java:125)
at
org.jboss.as.jpa.hibernate5.HibernatePersistenceProviderAdaptor.addProviderDependencies(HibernatePersistenceProviderAdaptor.java:107)
at
org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.deployPersistenceUnitPhaseOne(PersistenceUnitServiceHandler.java:538)
at
org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.addPuService(PersistenceUnitServiceHandler.java:273)
at
org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.handleEarDeployment(PersistenceUnitServiceHandler.java:228)
at
org.jboss.as.jpa.processor.PersistenceUnitServiceHandler.deploy(PersistenceUnitServiceHandler.java:135)
at
org.jboss.as.jpa.processor.PersistenceBeginInstallProcessor.deploy(PersistenceBeginInstallProcessor.java:52)
at
org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:144)
... 8 more
16:12:29,155 ERROR [org.jboss.as.controller.management-operation]
(management-handler-thread - 1) WFLYCTL0013: Operation
("full-replace-deployment") failed - address: ([]) - failure description:
{"WFLYCTL0080: Failed services" =>
{"jboss.deployment.unit.\"optoplus-services-ear-1.0.18-SNAPSHOT.ear\".FIRST_MODULE_USE"
=> "WFLYSRV0153: Failed to process phase FIRST_MODULE_USE of deployment
\"optoplus-services-ear-1.0.18-SNAPSHOT.ear\"
Caused by: java.lang.NullPointerException"}}
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)