Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-10876

NPE when using PutMap with listener

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 10.0.1.Final, 10.1.0.Final
    • 10.0.0.Final
    • Server
    • None

      This was observed in the Spark connector test suite, that internally relies on a listener with the KeyValueVersionConverter:

      18:19:30,559 ERROR [org.infinispan.interceptors.impl.InvocationContextInterceptor] (SINGLE_PORT-ServerIO-5-2) ISPN000136: Error executing command PutMapCommand on Cache 'default', writing keys [WrappedByteArray{bytes=03\L1082\UF1B317D005, hashCode=2062121617}, WrappedByteArray{bytes=03\L1082\UF1B214F000, hashCode=2062089930}, WrappedByteArray{bytes=03\L1082\UF1B214E000, hashCode=2062089434}, WrappedByteArray{bytes=03\L1082\UF1B4\T1001, hashCode=2062212009}, WrappedByteArray{bytes=03\L1082\UF1B3D69001, hashCode=2062057164}]: java.lang.NullPointerException
      	at org.infinispan.server.hotrod.KeyValueVersionConverter.convert(KeyValueVersionConverter.java:41)
      	at org.infinispan.server.hotrod.KeyValueVersionConverter.convert(KeyValueVersionConverter.java:16)
      	at org.infinispan.notifications.cachelistener.CacheNotifierImpl$BaseCacheEntryListenerInvocation.convertValue(CacheNotifierImpl.java:1977)
      	at org.infinispan.notifications.cachelistener.CacheNotifierImpl$BaseCacheEntryListenerInvocation.invokeNoChecks(CacheNotifierImpl.java:1834)
      	at org.infinispan.notifications.cachelistener.CacheNotifierImpl$BaseCacheEntryListenerInvocation.invoke(CacheNotifierImpl.java:1818)
      	at org.infinispan.notifications.cachelistener.CacheNotifierImpl.doNotifyModified(CacheNotifierImpl.java:450)
      	at org.infinispan.notifications.cachelistener.CacheNotifierImpl.notifyCacheEntryModified(CacheNotifierImpl.java:432)
      	at org.infinispan.notifications.cachelistener.NotifyHelper.entryCommitted(NotifyHelper.java:70)
      	at org.infinispan.interceptors.locking.ClusteringDependentLogic$DistributionLogic.lambda$commitSingleEntry$0(ClusteringDependentLogic.java:648)
      	at java.base/java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:1106)
      	at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2235)
      	at java.base/java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:143)
      	at org.infinispan.interceptors.locking.ClusteringDependentLogic$DistributionLogic.commitSingleEntry(ClusteringDependentLogic.java:648)
      	at org.infinispan.interceptors.locking.ClusteringDependentLogic$AbstractClusteringDependentLogic.commitEntry(ClusteringDependentLogic.java:230)
      	at org.infinispan.interceptors.impl.EntryWrappingInterceptor.commitContextEntry(EntryWrappingInterceptor.java:599)
      	at org.infinispan.interceptors.impl.EntryWrappingInterceptor.commitEntryIfNeeded(EntryWrappingInterceptor.java:842)
      
      

              gfernand@redhat.com Gustavo Fernandes (Inactive)
              gfernand@redhat.com Gustavo Fernandes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: