[hibernate-dev] After upgrading AS7 to use Hibernate 4.0.1, the second level cache is NPEing in org.hibernate.cache.infinispan.InfinispanRegionFactory.getCache (AS7-3290)

Scott Marlow smarlow at redhat.com
Thu Jan 12 13:43:07 EST 2012


org.infinispan.commands.module.ModuleCommandExtensions contains an entry 
"org.hibernate.cache.infinispan.util.CacheCommandExtensions"

I'll look at how we are loading that jar in AS7.

On 01/12/2012 01:37 PM, Scott Marlow wrote:
> Thanks, I'll look for the ModuleCommandExtensions...
>
> On 01/12/2012 01:32 PM, Galder Zamarreño wrote:
>> The NPE is noisy but what it means is that the custom commands that are now used for handling evict() calls are not being found.
>>
>> These are looked up via service loader approach. These implementations are located within the Infinispan 2LC Hibernate jar file.
>>
>> Within the jar, there should be a:
>>
>> META-INF/services/org.infinispan.commands.module.ModuleCommandExtensions file containing:
>>
>> org.hibernate.cache.infinispan.util.CacheCommandExtensions
>>
>> Basically, the NPE comes from this not being loaded by the Infinispan internals. Let's chat online (IRC) if you need more details.
>>
>> On Jan 12, 2012, at 7:16 PM, Scott Marlow wrote:
>>
>>> I assume this is not expected to happen.  http://pastie.org/3173509 is the exception call stack and steps to recreate on as7 (with my https://github.com/scottmarlow/jboss-as/tree/AS7-3279 branch) are:
>>>
>>> cd as7/testsuite/integration/basic
>>> mvn clean install -Dtest=org.jboss.as.test.integration.jpa.hibernate.SecondLevelCacheTestCase
>>>
>>> Suggestions to fix?
>>>
>>> Scott
>>
>> --
>> Galder Zamarreño
>> Sr. Software Engineer
>> Infinispan, JBoss Cache
>>
>
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev




More information about the hibernate-dev mailing list