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

NullPointerException when reading data from cache stores from previous releases

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Affects Version/s: JDG 7.1.0 GA, JDG 7.1.2 GA, JDG 7.2.2 CR1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  ryanemerson Ryan Emerson
                  Reporter:
                  mgencur Martin Gencur
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated: