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

Scott Marlow smarlow at redhat.com
Mon Mar 26 10:15:25 EDT 2012


The reason why I'm interested in retesting with Hibernate 4.0.1, is that 
we also upgraded Infinispan last week (to 5.1.3.CR1).

The regression could also be in Infinispan since that also changed.

If you cannot try this, let us know.

On 03/26/2012 09:47 AM, Scott Marlow wrote:
> Frank,
>
> Thanks for finding and reporting this.
>
> Any chance that you could try replacing the Hibernate 4.1.1 jars in
> JBoss AS7 folder as7/modules/org/hibernate/main with the Hibernate 4.0.1
> jars (need to delete *.index in that folder and change jar names in
> module.xml file)?
>
> Scott
>
> On 03/25/2012 01:26 PM, Frank Langelage wrote:
>> 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
>>
>>
>>
>> _______________________________________________
>> jboss-as7-dev mailing list
>> jboss-as7-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev



More information about the jboss-as7-dev mailing list