[jboss-as7-dev] Hibernate/Infinispan Exception/Failure on redeployment
Frank Langelage
frank at lafr.de
Tue Mar 27 14:52:09 EDT 2012
That's great, I'm pleased to hear this.
Good luck to you for finding the cause. ;-)
Regards, Frank
On 27.03.12 20:34, Scott Marlow wrote:
> I recreated it (just needed to deploy an app that puts data in the
> second level cache instead of just starting it).
>
> http://pastebin.com/QPBcZ1eA
>
> I shouldn't need the test case now.
>
> Scott
>
> On 03/26/2012 04:26 PM, Scott Marlow wrote:
>> Hi Frank,
>>
>> Thanks for trying this. I look forward to the reduced ear (test) case
>> if you are able to pull that together.
>>
>> Scott
>> On 03/26/2012 04:06 PM, Frank Langelage wrote:
>>> Hi Scott,
>>>
>>> I did as you said. Had to exchange the envers library also.
>>> Then the server came up without any problems.
>>>
>>> The problem changed but did not go away. This is the stack trace:
>>>
>>> 21:56:57,310 INFO [org.jboss.as.clustering.infinispan#cacheStarted]
>>> JBAS010281: Started
>>> dtz2e-langfr-sb2000-net.ear/ejb-entity.jar#dtz2e-langfr-sb2000-net.biz.mbisoftware.fn.ejb.entity.MbiLandd
>>>
>>> cache from hibernate container
>>> 21:56:57,314 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.lang.NullPointerException
>>> at
>>> org.hibernate.cache.infinispan.InfinispanRegionFactory.getCache(InfinispanRegionFactory.java:445)
>>>
>>>
>>> at
>>> org.hibernate.cache.infinispan.InfinispanRegionFactory.buildEntityRegion(InfinispanRegionFactory.java:198)
>>>
>>>
>>> at
>>> org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:339)
>>>
>>>
>>> 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$StartTask.run(ServiceControllerImpl.java:1746)
>>>
>>> [jboss-msc-1.0.2.GA.jar:1.0.2.GA]
>>> ... 3 more
>>>
>>> So your theory about infinispan might be correct. Did no notice that
>>> this also was updated.
>>>
>>> Something I also see now I did not have before:
>>> 21:55:46,850 WARN
>>> [org.infinispan.notifications.cachelistener.CacheNotifierImpl#validateAndAddListenerInvocation]
>>>
>>> ISPN000133: Attempted to register listener of class class
>>> org.hibernate.cache.infinispan.query.QueryResultsRegionImpl, but no
>>> valid, public methods annotated with method-level event annotations
>>> found! Ignoring listener.
>>>
>>> I'm running a version as of mid of March also and this does not have
>>> the
>>> problem (ERROR) nor the warning.
>>>
>>> Regards, Frank
>>>
>>>
>>> On 26.03.12 15:47, 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