[jboss-as7-dev] Hibernate/Infinispan Exception/Failure on redeployment

Frank Langelage frank at lafr.de
Sun Mar 25 13:26:23 EDT 2012


After the current Hibernate upgrade from 4.0.1 to 4.1.1 in JBoss AS7 I 
see such exception when redeploying my ear application.
This only happens, when I have deployed two ear and replace one of them.
When only one is deployed and I replace it with a new version this does 
not happen.
Also not when deploying another ear additional to an existing one.

I have enabled cache in persistence.xml (see attached), did not define a 
region prefix.

19:10:12,001 ERROR [org.jboss.msc.service.fail#startFailed] MSC00001: 
Failed to start service 
jboss.persistenceunit."dtz2e-langfr-sb2000-net.ear/ejb-entity.jar#dtz2e-langfr-sb2000-net": 
org.jboss.msc.service.StartException in service 
jboss.persistenceunit."dtz2e-langfr-sb2000-net.ear/ejb-entity.jar#dtz2e-langfr-sb2000-net": 
Failed to start service
         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_31]
         at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) 
[rt.jar:1.6.0_31]
         at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
Caused by: java.util.NoSuchElementException
         at java.util.Collections$EmptySet$1.next(Collections.java:2912) 
[rt.jar:1.6.0_31]
         at 
org.hibernate.cache.infinispan.InfinispanRegionFactory.getCacheCommandFactory(InfinispanRegionFactory.java:448)
         at 
org.hibernate.cache.infinispan.InfinispanRegionFactory.startRegion(InfinispanRegionFactory.java:337)
         at 
org.hibernate.cache.infinispan.InfinispanRegionFactory.buildEntityRegion(InfinispanRegionFactory.java:195)
         at 
org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:347)
         at 
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1740)
         at 
org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94)
         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$StartTask.run(ServiceControllerImpl.java:1746) 
[jboss-msc-1.0.2.GA.jar:1.0.2.GA]
         ... 3 more

-------------- next part --------------
A non-text attachment was scrubbed...
Name: persistence.xml
Type: text/xml
Size: 1507 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/jboss-as7-dev/attachments/20120325/7199be07/attachment.xml 


More information about the jboss-as7-dev mailing list