[JBoss JIRA] (ISPN-12148) Hibernate-cache NullPointerException in CacheMgmtInterceptor
by Dan Berindei (Jira)
Dan Berindei created ISPN-12148:
-----------------------------------
Summary: Hibernate-cache NullPointerException in CacheMgmtInterceptor
Key: ISPN-12148
URL: https://issues.redhat.com/browse/ISPN-12148
Project: Infinispan
Issue Type: Bug
Components: Hibernate Cache
Affects Versions: 11.0.1.Final
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 12.0.0.Dev01
There is a mismatch between the {{command.hasAnyFlag(FlagBitSets.SKIP_STATISTICS)}} check in {{CacheMgmtInterceptor}} and the {{Param.StatisticsMode.isSkip(command.getParams())}} check in {{CallInterceptor}}, causing the return value to be {{null}} when {{CacheMgmtInterceptor}} expects a {{StatisticsEnvelope}} instance.
{noformat}
17:02:05,601 ERROR (Executor-2:[]) [InvocationContextInterceptor] ISPN000136: Error executing command ReadWriteKeyCommand on Cache 'org.infinispan.test.hibernate.cache.commons.functional.entities.Item', writing keys [7]
java.lang.NullPointerException: null
at org.infinispan.interceptors.impl.CacheMgmtInterceptor.lambda$updateStatisticsReadWrite$10(CacheMgmtInterceptor.java:372) ~[classes/:?]
at org.infinispan.interceptors.BaseAsyncInterceptor.invokeNextThenApply(BaseAsyncInterceptor.java:86) ~[classes/:?]
at org.infinispan.interceptors.impl.CacheMgmtInterceptor.updateStatisticsReadWrite(CacheMgmtInterceptor.java:368) ~[classes/:?]
at org.infinispan.interceptors.impl.CacheMgmtInterceptor.visitReadWriteKeyCommand(CacheMgmtInterceptor.java:396) ~[classes/:?]
at org.infinispan.commands.functional.ReadWriteKeyCommand.acceptVisitor(ReadWriteKeyCommand.java:91) ~[classes/:?]
at org.infinispan.interceptors.BaseAsyncInterceptor.invokeNext(BaseAsyncInterceptor.java:59) ~[classes/:?]
at org.infinispan.interceptors.DDAsyncInterceptor.handleDefault(DDAsyncInterceptor.java:53) ~[classes/:?]
at org.infinispan.interceptors.DDAsyncInterceptor.visitReadWriteKeyCommand(DDAsyncInterceptor.java:200) ~[classes/:?]
at org.infinispan.commands.functional.ReadWriteKeyCommand.acceptVisitor(ReadWriteKeyCommand.java:91) ~[classes/:?]
at org.infinispan.interceptors.BaseAsyncInterceptor.invokeNextAndExceptionally(BaseAsyncInterceptor.java:128) ~[classes/:?]
at org.infinispan.interceptors.impl.InvocationContextInterceptor.visitCommand(InvocationContextInterceptor.java:90) ~[classes/:?]
at org.infinispan.interceptors.BaseAsyncInterceptor.invokeNext(BaseAsyncInterceptor.java:61) ~[classes/:?]
at org.infinispan.interceptors.DDAsyncInterceptor.handleDefault(DDAsyncInterceptor.java:53) ~[classes/:?]
at org.infinispan.interceptors.DDAsyncInterceptor.visitReadWriteKeyCommand(DDAsyncInterceptor.java:200) ~[classes/:?]
at org.infinispan.commands.functional.ReadWriteKeyCommand.acceptVisitor(ReadWriteKeyCommand.java:91) ~[classes/:?]
at org.infinispan.interceptors.DDAsyncInterceptor.visitCommand(DDAsyncInterceptor.java:49) ~[classes/:?]
at org.infinispan.interceptors.impl.AsyncInterceptorChainImpl.invokeAsync(AsyncInterceptorChainImpl.java:226) ~[classes/:?]
at org.infinispan.functional.impl.AbstractFunctionalMap.invokeAsync(AbstractFunctionalMap.java:131) ~[classes/:?]
at org.infinispan.functional.impl.ReadWriteMapImpl.eval(ReadWriteMapImpl.java:56) ~[classes/:?]
at org.infinispan.hibernate.cache.commons.access.NonStrictAccessDelegate.putFromLoad(NonStrictAccessDelegate.java:118) ~[classes/:?]
at org.infinispan.hibernate.cache.v53.impl.ReadOnlyEntityDataAccess.putFromLoad(ReadOnlyEntityDataAccess.java:30) ~[classes/:?]
at org.hibernate.engine.internal.TwoPhaseLoad.doInitializeEntity(TwoPhaseLoad.java:254) ~[hibernate-core-5.3.17.Final.jar:5.3.17.Final]
at org.hibernate.engine.internal.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:160) ~[hibernate-core-5.3.17.Final.jar:5.3.17.Final]
at org.hibernate.loader.plan.exec.process.internal.AbstractRowReader.performTwoPhaseLoad(AbstractRowReader.java:252) ~[hibernate-core-5.3.17.Final.jar:5.3.17.Final]
at org.hibernate.loader.plan.exec.process.internal.AbstractRowReader.finishUp(AbstractRowReader.java:215) ~[hibernate-core-5.3.17.Final.jar:5.3.17.Final]
at org.hibernate.loader.plan.exec.process.internal.ResultSetProcessorImpl.extractResults(ResultSetProcessorImpl.java:133) ~[hibernate-core-5.3.17.Final.jar:5.3.17.Final]
at org.hibernate.loader.plan.exec.internal.AbstractLoadPlanBasedLoader.executeLoad(AbstractLoadPlanBasedLoader.java:107) ~[hibernate-core-5.3.17.Final.jar:5.3.17.Final]
at org.hibernate.loader.entity.plan.AbstractLoadPlanBasedEntityLoader.load(AbstractLoadPlanBasedEntityLoader.java:188) ~[hibernate-core-5.3.17.Final.jar:5.3.17.Final]
at org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:4289) ~[hibernate-core-5.3.17.Final.jar:5.3.17.Final]
at org.hibernate.event.internal.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:597) ~[hibernate-core-5.3.17.Final.jar:5.3.17.Final]
at org.hibernate.event.internal.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:565) ~[hibernate-core-5.3.17.Final.jar:5.3.17.Final]
at org.hibernate.event.internal.DefaultLoadEventListener.load(DefaultLoadEventListener.java:226) ~[hibernate-core-5.3.17.Final.jar:5.3.17.Final]
at org.hibernate.event.internal.DefaultLoadEventListener.doOnLoad(DefaultLoadEventListener.java:122) ~[hibernate-core-5.3.17.Final.jar:5.3.17.Final]
at org.hibernate.event.internal.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:93) ~[hibernate-core-5.3.17.Final.jar:5.3.17.Final]
at org.hibernate.internal.SessionImpl.fireLoadNoChecks(SessionImpl.java:1277) ~[hibernate-core-5.3.17.Final.jar:5.3.17.Final]
at org.hibernate.internal.SessionImpl.immediateLoad(SessionImpl.java:1119) ~[hibernate-core-5.3.17.Final.jar:5.3.17.Final]
at org.hibernate.proxy.AbstractLazyInitializer.initialize(AbstractLazyInitializer.java:178) ~[hibernate-core-5.3.17.Final.jar:5.3.17.Final]
at org.hibernate.proxy.AbstractLazyInitializer.getImplementation(AbstractLazyInitializer.java:309) ~[hibernate-core-5.3.17.Final.jar:5.3.17.Final]
at org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor.intercept(ByteBuddyInterceptor.java:45) ~[hibernate-core-5.3.17.Final.jar:5.3.17.Final]
at org.hibernate.proxy.ProxyConfiguration$InterceptorDispatcher.intercept(ProxyConfiguration.java:95) ~[hibernate-core-5.3.17.Final.jar:5.3.17.Final]
at org.infinispan.test.hibernate.cache.commons.functional.entities.Item$HibernateProxy$vC8GnuyS.getName(Unknown Source) ~[test-classes/:?]
at org.infinispan.test.hibernate.cache.commons.functional.AbstractNonInvalidationTest.lambda$removeFlushWait$2(AbstractNonInvalidationTest.java:127) ~[test-classes/:?]
at org.infinispan.test.hibernate.cache.commons.util.TxUtil.withResourceLocalTx(TxUtil.java:105) ~[test-classes/:?]
at org.infinispan.test.hibernate.cache.commons.util.TxUtil.lambda$withTxSessionApply$5(TxUtil.java:56) ~[test-classes/:?]
at org.infinispan.test.hibernate.cache.commons.util.TxUtil.withSessionApply(TxUtil.java:72) ~[test-classes/:?]
at org.infinispan.test.hibernate.cache.commons.util.TxUtil.withTxSessionApply(TxUtil.java:56) ~[test-classes/:?]
at org.infinispan.test.hibernate.cache.commons.functional.SingleNodeTest.withTxSessionApply(SingleNodeTest.java:43) ~[test-classes/:?]
at org.infinispan.test.hibernate.cache.commons.functional.AbstractNonInvalidationTest.lambda$removeFlushWait$3(AbstractNonInvalidationTest.java:124) ~[test-classes/:?]
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 8 months
[JBoss JIRA] (ISPN-12147) NonStrictAccessDelegate ignores cache exceptions
by Dan Berindei (Jira)
Dan Berindei created ISPN-12147:
-----------------------------------
Summary: NonStrictAccessDelegate ignores cache exceptions
Key: ISPN-12147
URL: https://issues.redhat.com/browse/ISPN-12147
Project: Infinispan
Issue Type: Bug
Components: Hibernate Cache
Affects Versions: 11.0.1.Final
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 12.0.0.Dev01
{{NonStrictAccessDelegate#putFromLoad()}} invokes {{FunctionalMap.eval()}} and checks that the returned future is completed with {{isDone()}}. It does not check if there was any exception, so any exception is ignored.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 8 months
[JBoss JIRA] (ISPN-7164) infinispan exception during wildfly app server startup
by Dan Berindei (Jira)
[ https://issues.redhat.com/browse/ISPN-7164?page=com.atlassian.jira.plugin... ]
Dan Berindei closed ISPN-7164.
------------------------------
Resolution: Out of Date
> infinispan exception during wildfly app server startup
> ------------------------------------------------------
>
> Key: ISPN-7164
> URL: https://issues.redhat.com/browse/ISPN-7164
> Project: Infinispan
> Issue Type: Bug
> Environment: RHEL 7, VMWare ESX 5.5,
> Wildfly 8.2.1 cluster with 6 nodes
> Reporter: Purush Reddy
> Priority: Major
>
> We are seeing the following exception in the cluster node startup. Please note that this issue is sporadic.
> This seems like race condition. the application on one node is calling evictAll() before the other node (throwing the exception) fully starts up and initializes the region.
> 2016-10-26 17:57:56,606 ERROR [OOB-18,shared=udp]-[org.infinispan.remoting.InboundInvocationHandlerImpl] ISPN000260: Exception executing command: java.lang.NullPointerException
> at org.hibernate.cache.infinispan.util.EvictAllCommand.perform(EvictAllCommand.java:64)
> at org.infinispan.remoting.InboundInvocationHandlerImpl.handleInternal(InboundInvocationHandlerImpl.java:95)
> at org.infinispan.remoting.InboundInvocationHandlerImpl.handleWithWaitForBlocks(InboundInvocationHandlerImpl.java:186)
> at org.infinispan.remoting.InboundInvocationHandlerImpl.handle(InboundInvocationHandlerImpl.java:84)
> at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.executeCommandFromLocalCluster(CommandAwareRpcDispatcher.java:259)
> at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.handle(CommandAwareRpcDispatcher.java:211)
> at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:460)
> at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:377)
> at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:247)
> at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:667)
> at org.jgroups.blocks.mux.MuxUpHandler.up(MuxUpHandler.java:130)
> at org.jgroups.JChannel.up(JChannel.java:708)
> at org.jgroups.stack.ProtocolStack.up(ProtocolStack.java:1015)
> at org.jgroups.protocols.RSVP.up(RSVP.java:187)
> at org.jgroups.protocols.FRAG2.up(FRAG2.java:165)
> at org.jgroups.protocols.pbcast.GMS.up(GMS.java:1010)
> at org.jgroups.protocols.pbcast.STABLE.up(STABLE.java:234)
> at org.jgroups.protocols.UNICAST3.up(UNICAST3.java:391)
> at org.jgroups.protocols.pbcast.NAKACK2.handleMessage(NAKACK2.java:774)
> at org.jgroups.protocols.pbcast.NAKACK2.up(NAKACK2.java:570)
> at org.jgroups.protocols.VERIFY_SUSPECT.up(VERIFY_SUSPECT.java:147)
> at org.jgroups.protocols.FD_ALL.up(FD_ALL.java:185)
> at org.jgroups.protocols.FD_SOCK.up(FD_SOCK.java:301)
> at org.jgroups.protocols.MERGE3.up(MERGE3.java:303)
> at org.jgroups.protocols.Discovery.up(Discovery.java:379)
> at org.jgroups.protocols.TP$ProtocolAdapter.up(TP.java:2641)
> at org.jgroups.protocols.TP.passMessageUp(TP.java:1429)
> at org.jgroups.protocols.TP$MyHandler.run(TP.java:1615)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 8 months
[JBoss JIRA] (ISPN-10562) NPE from EvictionManagerImpl.updateEvictionStatistics when JMX statistics are enabled
by Dan Berindei (Jira)
[ https://issues.redhat.com/browse/ISPN-10562?page=com.atlassian.jira.plugi... ]
Dan Berindei closed ISPN-10562.
-------------------------------
Resolution: Duplicate Issue
Duplicate of ISPN-10006
> NPE from EvictionManagerImpl.updateEvictionStatistics when JMX statistics are enabled
> -------------------------------------------------------------------------------------
>
> Key: ISPN-10562
> URL: https://issues.redhat.com/browse/ISPN-10562
> Project: Infinispan
> Issue Type: Bug
> Components: Eviction
> Affects Versions: 9.4.15.Final
> Reporter: Tuomas Kiviaho
> Assignee: Will Burns
> Priority: Major
>
> For some reason I started to get NPEs from EvictionManagerImpl. It seems that AsyncInterceptorChain running is returning null. The state says STARTED, but the instance inside the ComponentWrapped is null.
> java.lang.NullPointerException
> at org.infinispan.eviction.impl.EvictionManagerImpl.updateEvictionStatistics(EvictionManagerImpl.java:45)
> at org.infinispan.eviction.impl.EvictionManagerImpl.onEntryEviction(EvictionManagerImpl.java:39)
> at org.infinispan.container.impl.AbstractInternalDataContainer$DefaultEvictionListener.onEntryEviction(AbstractInternalDataContainer.java:516)
> at org.infinispan.container.impl.AbstractInternalDataContainer.lambda$applyListener$5(AbstractInternalDataContainer.java:479)
> at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$notifyRemoval$1(BoundedLocalCache.java:286)
> at org.infinispan.util.concurrent.WithinThreadExecutor.execute(WithinThreadExecutor.java:20)
> at com.github.benmanes.caffeine.cache.BoundedLocalCache.notifyRemoval(BoundedLocalCache.java:292)
> at com.github.benmanes.caffeine.cache.BoundedLocalCache.evictEntry(BoundedLocalCache.java:821)
> at com.github.benmanes.caffeine.cache.BoundedLocalCache.evictFromMain(BoundedLocalCache.java:633)
> at com.github.benmanes.caffeine.cache.BoundedLocalCache.evictEntries(BoundedLocalCache.java:504)
> at com.github.benmanes.caffeine.cache.BoundedLocalCache.maintenance(BoundedLocalCache.java:1137)
> at com.github.benmanes.caffeine.cache.BoundedLocalCache.performCleanUp(BoundedLocalCache.java:1108)
> at com.github.benmanes.caffeine.cache.BoundedLocalCache$PerformCleanupTask.run(BoundedLocalCache.java:2979)
> at org.infinispan.util.concurrent.WithinThreadExecutor.execute(WithinThreadExecutor.java:20)
> at com.github.benmanes.caffeine.cache.BoundedLocalCache.scheduleDrainBuffers(BoundedLocalCache.java:1080)
> at com.github.benmanes.caffeine.cache.BoundedLocalCache.scheduleAfterWrite(BoundedLocalCache.java:1047)
> at com.github.benmanes.caffeine.cache.BoundedLocalCache.afterWrite(BoundedLocalCache.java:1017)
> at com.github.benmanes.caffeine.cache.BoundedLocalCache.remap(BoundedLocalCache.java:2272)
> at com.github.benmanes.caffeine.cache.BoundedLocalCache.compute(BoundedLocalCache.java:2146)
> at com.github.benmanes.caffeine.cache.LocalCache.compute(LocalCache.java:100)
> at org.infinispan.container.impl.AbstractInternalDataContainer.compute(AbstractInternalDataContainer.java:229)
> at org.infinispan.container.impl.AbstractInternalDataContainer.compute(AbstractInternalDataContainer.java:248)
> at org.infinispan.cache.impl.SimpleCacheImpl.putForExternalReadInternal(SimpleCacheImpl.java:207)
> at org.infinispan.cache.impl.StatsCollectingCache.putForExternalReadInternal(StatsCollectingCache.java:200)
> at org.infinispan.cache.impl.SimpleCacheImpl.putForExternalRead(SimpleCacheImpl.java:180)
> at org.infinispan.cache.impl.AbstractDelegatingCache.putForExternalRead(AbstractDelegatingCache.java:49)
> at org.infinispan.cache.impl.EncoderCache.putForExternalRead(EncoderCache.java:175)
> at org.infinispan.hibernate.cache.commons.access.PutFromLoadValidator$PendingPutMap.pferValueIfNeeded(PutFromLoadValidator.java:913)
> at org.infinispan.hibernate.cache.commons.access.PutFromLoadValidator$PendingPutMap.removeInvalidator(PutFromLoadValidator.java:896)
> at org.infinispan.hibernate.cache.commons.access.PutFromLoadValidator.endInvalidatingKey(PutFromLoadValidator.java:634)
> at org.infinispan.hibernate.cache.v53.impl.LocalInvalidationInvocation.invoke(LocalInvalidationInvocation.java:39)
> at org.infinispan.hibernate.cache.v53.impl.Sync.transactionCompleted(Sync.java:106)
> at org.hibernate.internal.AbstractSharedSessionContract.afterTransactionCompletion(AbstractSharedSessionContract.java:450)
> at org.hibernate.internal.SessionImpl.afterTransactionCompletion(SessionImpl.java:2568)
> at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.afterTransactionCompletion(JdbcCoordinatorImpl.java:479)
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 8 months
[JBoss JIRA] (ISPN-12146) CLI - Stats is not working
by Tristan Tarrant (Jira)
[ https://issues.redhat.com/browse/ISPN-12146?page=com.atlassian.jira.plugi... ]
Tristan Tarrant updated ISPN-12146:
-----------------------------------
Security: (was: Red Hat Internal)
> CLI - Stats is not working
> --------------------------
>
> Key: ISPN-12146
> URL: https://issues.redhat.com/browse/ISPN-12146
> Project: Infinispan
> Issue Type: Bug
> Components: CLI
> Affects Versions: 11.0.1.Final
> Reporter: Gustavo Lira Silva
> Assignee: Tristan Tarrant
> Priority: Major
>
> Connecting to the server using CLI and running *{{stats}}* is not working, a null message is appearing
> The cache was created with
> {code:java}
> builder.statistics().enable().remoteCache("my-cache")
> .templateName(DefaultTemplate.DIST_SYNC);
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 8 months
[JBoss JIRA] (ISPN-12146) CLI - Stats is not working
by Tristan Tarrant (Jira)
[ https://issues.redhat.com/browse/ISPN-12146?page=com.atlassian.jira.plugi... ]
Tristan Tarrant updated ISPN-12146:
-----------------------------------
Status: Open (was: New)
> CLI - Stats is not working
> --------------------------
>
> Key: ISPN-12146
> URL: https://issues.redhat.com/browse/ISPN-12146
> Project: Infinispan
> Issue Type: Bug
> Components: CLI
> Affects Versions: 11.0.1.Final
> Reporter: Gustavo Lira Silva
> Assignee: Tristan Tarrant
> Priority: Major
>
> Connecting to the server using CLI and running *{{stats}}* is not working, a null message is appearing
> The cache was created with
> {code:java}
> builder.statistics().enable().remoteCache("my-cache")
> .templateName(DefaultTemplate.DIST_SYNC);
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 8 months