Uploaded image for project: 'Red Hat Data Grid'
  1. Red Hat Data Grid
  2. JDG-968

NullPointerException when reading data from cache stores from previous releases

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Won't Fix
    • JDG 7.1.0 GA, JDG 7.1.2 GA, JDG 7.2.2 CR1
    • None
    • None
    • None

    Description

      Steps to reproduce:

      • store data in cache stores by JDG 7.0.0 or older
      • read the data back with JDG 7.1.0
        The result is NullPointerException and the data cannot be read back.

      Partial stack trace:

      Caused by: java.lang.NullPointerException: null
      	at org.infinispan.marshall.core.GlobalMarshaller.readWithExternalizer(GlobalMarshaller.java:693)
      	at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:678)
      	at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:361)
      	at org.infinispan.marshall.core.GlobalMarshaller.objectFromObjectInput(GlobalMarshaller.java:199)
      	at org.infinispan.marshall.core.GlobalMarshaller.objectFromByteBuffer(GlobalMarshaller.java:228)
      	at org.infinispan.persistence.file.SingleFileStore.rebuildIndex(SingleFileStore.java:212)
      	at org.infinispan.persistence.file.SingleFileStore.start(SingleFileStore.java:126)
      

      Full stack trace attached.

      A dummy workaround would be to use GlobalConfigurationBuilder().serialization().marshaller() and set the previous version of the marshaller. But that would affect all marshalling, AFAIK.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-afield Alan Field
              mgencur Martin Gencur
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: