[jboss-jira] [JBoss JIRA] (AS7-6639) Concurrent cache start causes NPE in MarshallerFactory with Infinispan 5.2.1.Final

RH Bugzilla Integration (JIRA) jira-events at lists.jboss.org
Tue Mar 5 12:13:57 EST 2013


    [ https://issues.jboss.org/browse/AS7-6639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12758642#comment-12758642 ] 

RH Bugzilla Integration commented on AS7-6639:
----------------------------------------------

Scott Marlow <smarlow at redhat.com> made a comment on [bug 918118|https://bugzilla.redhat.com/show_bug.cgi?id=918118]

I added "+" devel_ack to flags.  I'm adding these verbose comments so we can figure out who did what (in case Bugzilla doesn't keep a history).  If we don't need to be this verbose, I'll stop.
                
> Concurrent cache start causes NPE in MarshallerFactory with Infinispan 5.2.1.Final
> ----------------------------------------------------------------------------------
>
>                 Key: AS7-6639
>                 URL: https://issues.jboss.org/browse/AS7-6639
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Clustering
>    Affects Versions: 7.2.0.Alpha1
>            Reporter: Radoslav Husar
>            Assignee: Radoslav Husar
>             Fix For: 8.0.0.Alpha1
>
>
> After 5.2.1.Final upgrade an NPE was spotted in org.jboss.as.test.integration.jpa.secondlevelcache.JPA2LCTestCase
> {noformat}
> &#27;[0m&#27;[31m16:22:36,784 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 77) MSC00001: Failed to start service jboss.persistenceunit."jpa_SecondLevelCacheTestCase.jar#mypc2": org.jboss.msc.service.StartException in service jboss.persistenceunit."jpa_SecondLevelCacheTestCase.jar#mypc2": javax.persistence.PersistenceException: [PersistenceUnit: mypc2] Unable to build EntityManagerFactory
> 	at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:103)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_29]
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_29]
> 	at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_29]
> 	at org.jboss.threads.JBossThread.run(JBossThread.java:122)
> Caused by: javax.persistence.PersistenceException: [PersistenceUnit: mypc2] Unable to build EntityManagerFactory
> 	at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915)
> 	at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)
> 	at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:74)
> 	at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:200)
> 	at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.access$600(PersistenceUnitServiceImpl.java:57)
> 	at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:99)
> 	... 4 more
> Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.spi.CacheImplementor]
> 	at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:186)
> 	at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:150)
> 	at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
> 	at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:264)
> 	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1742)
> 	at org.hibernate.ejb.EntityManagerFactoryImpl.<init>(EntityManagerFactoryImpl.java:94)
> 	at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905)
> 	... 9 more
> Caused by: java.lang.NullPointerException
> 	at org.infinispan.factories.MarshallerFactory.construct(MarshallerFactory.java:48)
> 	at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:290)
> 	at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:161)
> 	at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:246)
> 	at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:86)
> 	at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:811)
> 	at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:220)
> 	at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:170)
> 	at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:175)
> 	at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:295)
> 	at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:161)
> 	at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:246)
> 	at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:86)
> 	at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:811)
> 	at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:220)
> 	at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:170)
> 	at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:175)
> 	at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:295)
> 	at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:161)
> 	at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:246)
> 	at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:86)
> 	at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:811)
> 	at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:220)
> 	at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:170)
> 	at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:175)
> 	at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:295)
> 	at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:161)
> 	at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:246)
> 	at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:86)
> 	at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:811)
> 	at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:220)
> 	at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:170)
> 	at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:175)
> 	at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:295)
> 	at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:161)
> 	at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:246)
> 	at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:86)
> 	at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:811)
> 	at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:220)
> 	at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:170)
> 	at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:175)
> 	at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:295)
> 	at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:161)
> 	at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:246)
> 	at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:86)
> 	at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:811)
> 	at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:220)
> 	at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:170)
> 	at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:175)
> 	at org.infinispan.factories.InternalCacheFactory.bootstrap(InternalCacheFactory.java:101)
> 	at org.infinispan.factories.InternalCacheFactory.createAndWire(InternalCacheFactory.java:80)
> 	at org.infinispan.factories.InternalCacheFactory.createCache(InternalCacheFactory.java:64)
> 	at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:681)
> 	at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:649)
> 	at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:545)
> 	at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:559)
> 	at org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager.getCache(DefaultEmbeddedCacheManager.java:109)
> 	at org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager.getCache(DefaultEmbeddedCacheManager.java:100)
> 	at org.hibernate.cache.infinispan.InfinispanRegionFactory.getCache(InfinispanRegionFactory.java:526)
> 	at org.hibernate.cache.infinispan.InfinispanRegionFactory.buildTimestampsRegion(InfinispanRegionFactory.java:260)
> 	at org.hibernate.cache.spi.UpdateTimestampsCache.<init>(UpdateTimestampsCache.java:62)
> 	at org.hibernate.internal.CacheImpl.<init>(CacheImpl.java:72)
> 	at org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:40)
> 	at org.hibernate.engine.spi.CacheInitiator.initiateService(CacheInitiator.java:35)
> 	at org.hibernate.service.internal.SessionFactoryServiceRegistryImpl.initiateService(SessionFactoryServiceRegistryImpl.java:91)
> 	at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:176)
> 	... 15 more
> {noformat}
> http://lightning.mw.lab.eng.bos.redhat.com/jenkins/job/as7-master-testsuite-ip6/7144/testReport/junit/org.jboss.as.test.integration.jpa.secondlevelcache/JPA2LCTestCase/org_jboss_as_test_integration_jpa_secondlevelcache_JPA2LCTestCase/
> (backup here)
> https://gist.github.com/rhusar/5040146

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list