[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6965) Avoid throwing an NPE when Infinispan 2LC custom commands are not found

Galder Zamarreno (JIRA) noreply at atlassian.com
Fri Jan 13 08:22:12 EST 2012


Avoid throwing an NPE when Infinispan 2LC custom commands are not found
-----------------------------------------------------------------------

                 Key: HHH-6965
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6965
             Project: Hibernate ORM
          Issue Type: Bug
          Components: caching (L2)
    Affects Versions: 4.0.1
            Reporter: Galder Zamarreno
            Assignee: Galder Zamarreno
             Fix For: 4.1.0


When custom commands for handling evictions are not find, an NPE is thrown from the Infinispan 2LC:

{code}19:35:13,886 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-5) MSC00001: Failed to start service jboss.persistenceunit."jpa_SecondLevelCacheTestCase.jar#ThirdPU": org.jboss.msc.service.StartException in service jboss.persistenceunit."jpa_SecondLevelCacheTestCase.jar#ThirdPU": Failed to start service
  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1780) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_29]
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_29]
  at java.lang.Thread.run(Thread.java:662) [:1.6.0_29]
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:157)
  at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:81)
  at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1824) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]
  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1759) [jboss-msc-1.0.1.GA.jar:1.0.1.GA]{code}

This JIRA is to clean this up.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list