[jboss-jira] [JBoss JIRA] Created: (JBAS-4692) NPE starting EJB2 entity container with cache invalidation

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Sat Sep 8 14:36:11 EDT 2007


NPE starting EJB2 entity container with cache invalidation
----------------------------------------------------------

                 Key: JBAS-4692
                 URL: http://jira.jboss.com/jira/browse/JBAS-4692
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: EJB2
    Affects Versions: JBossAS-5.0.0.Beta2
            Reporter: Brian Stansberry
         Assigned To: Brian Stansberry
             Fix For:  JBossAS-5.0.0.Beta3


InvalidableEntityInstanceCache.start() throws an NPE on line 123:

String groupName = emd.getDistributedCacheInvalidationConfig().getInvalidationGroupName();

Problem is EntityMetaData.getDistributedCacheInvalidationConfig() will return null in the usual situation where there is no "cache-invalidation-config" element. In 4.x this doesn't occur because EntityMetaData.importFromJBossXml() ensures that a default CacheInvalidationConfigMetaData is created.

Solution is to lazy initialize the default CacheInvalidationConfigMetaData in EntityMetaData.getDistributedCacheInvalidationConfig().

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list