[infinispan-issues] [JBoss JIRA] (ISPN-1969) Nullpointer Exception when NON_TRANSACTIONAL caching
Roland Csupor (JIRA)
jira-events at lists.jboss.org
Wed Apr 18 06:15:19 EDT 2012
[ https://issues.jboss.org/browse/ISPN-1969?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12685194#comment-12685194 ]
Roland Csupor commented on ISPN-1969:
-------------------------------------
I modified the unit test and add an interface to the used CachedMock class. Now there is no CGLIB. Stack trace:
{noformat}
java.lang.NullPointerException
at org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:72)
at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:95)
at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:60)
at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:345)
at org.infinispan.CacheImpl.get(CacheImpl.java:272)
at org.infinispan.CacheImpl.get(CacheImpl.java:264)
at org.infinispan.spring.provider.SpringCache.get(SpringCache.java:74)
at org.springframework.cache.interceptor.CacheAspectSupport.inspectCacheables(CacheAspectSupport.java:310)
at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:198)
at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:66)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy10.get(Unknown Source)
at com.statlogics.credilogic.component.common.impl.InfinispanSpringCacheTest.testCalls(InfinispanSpringCacheTest.java:35)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:83)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:231)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:71)
at org.junit.runners.ParentRunner.run(ParentRunner.java:300)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:174)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
{noformat}
> Nullpointer Exception when NON_TRANSACTIONAL caching
> ----------------------------------------------------
>
> Key: ISPN-1969
> URL: https://issues.jboss.org/browse/ISPN-1969
> Project: Infinispan
> Issue Type: Bug
> Components: Cache Server, Configuration, Spring integration
> Affects Versions: 5.1.3.FINAL
> Reporter: Roland Csupor
> Assignee: Galder Zamarreño
> Priority: Critical
> Labels: NON_TRANSACTIONAL, nullpointerexception, spring
> Fix For: 5.2.0.ALPHA1, 5.2.0.FINAL
>
> Attachments: infinispanSpringCacheTest-config-infinispan.xml, infinispanSpringCacheTest-config.xml, InfinispanSpringCacheTest.java, pom.xml
>
>
> I am using infinispan mixed. Non transactional spring cache and transactional L1 cache.
> Spring cache region config looks like this:
> {noformat}
> <namedCache name="springCache">
> <transaction transactionMode="NON_TRANSACTIONAL"/>
> <eviction maxEntries="100" strategy="NONE" />
> <expiration lifespan="3600000" wakeUpInterval="600000" />
> <invocationBatching enabled="false" />
> <storeAsBinary enabled="true" storeKeysAsBinary="true" storeValuesAsBinary="true"/>
> </namedCache>
> {noformat}
> My global configuration is:
> {noformat}
> <global>
> <evictionScheduledExecutor
> factory="org.infinispan.executors.DefaultScheduledExecutorFactory">
> <properties>
> <property name="threadNamePrefix" value="EvictionThread" />
> </properties>
> </evictionScheduledExecutor>
>
> <globalJmxStatistics allowDuplicateDomains="true"
> enabled="true" jmxDomain="org.infinispan" cacheManagerName="SampleCacheManager" />
> </global>
> {noformat}
> And default is:
> {noformat}
> <default>
> <locking isolationLevel="READ_COMMITTED"
> lockAcquisitionTimeout="20000" writeSkewCheck="false"
> concurrencyLevel="5000" useLockStriping="false" />
> <transaction
> transactionManagerLookupClass="org.infinispan.transaction.lookup.GenericTransactionManagerLookup"
> syncRollbackPhase="false" syncCommitPhase="false" useEagerLocking="false"
> eagerLockSingleNode="false" lockingMode="OPTIMISTIC" autoCommit="false" transactionMode="TRANSACTIONAL" />
> <jmxStatistics enabled="true" />
> <invocationBatching enabled="true" />
> </default>
> {noformat}
> Actually I get NullPointerException:
> {noformat}
> java.lang.NullPointerException: null
> at org.infinispan.interceptors.BatchingInterceptor.handleDefault(BatchingInterceptor.java:72) ~[infinispan-core-5.1.3.FINAL.jar:5.1.3.FINAL]
> at org.infinispan.commands.AbstractVisitor.visitGetKeyValueCommand(AbstractVisitor.java:95) ~[infinispan-core-5.1.3.FINAL.jar:5.1.3.FINAL]
> at org.infinispan.commands.read.GetKeyValueCommand.acceptVisitor(GetKeyValueCommand.java:60) ~[infinispan-core-5.1.3.FINAL.jar:5.1.3.FINAL]
> at org.infinispan.interceptors.InterceptorChain.invoke(InterceptorChain.java:345) ~[infinispan-core-5.1.3.FINAL.jar:5.1.3.FINAL]
> at org.infinispan.CacheImpl.get(CacheImpl.java:272) ~[infinispan-core-5.1.3.FINAL.jar:5.1.3.FINAL]
> at org.infinispan.CacheImpl.get(CacheImpl.java:264) ~[infinispan-core-5.1.3.FINAL.jar:5.1.3.FINAL]
> at org.infinispan.spring.provider.SpringCache.get(SpringCache.java:74) ~[infinispan-spring-5.1.3.FINAL.jar:5.1.3.FINAL]
> at org.springframework.cache.interceptor.CacheAspectSupport.inspectCacheables(CacheAspectSupport.java:310) ~[spring-context-3.1.1.RELEASE.jar:3.1.1.RELEASE]
> at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:198) ~[spring-context-3.1.1.RELEASE.jar:3.1.1.RELEASE]
> at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:66) ~[spring-context-3.1.1.RELEASE.jar:3.1.1.RELEASE]
> at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) ~[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
> at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) ~[spring-aop-3.1.1.RELEASE.jar:3.1.1.RELEASE]
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list