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

PutMapCommand throws a NullPointerException in Distributed Mode

    XMLWordPrintable

Details

    Description

      I've spotted a bug in PutMapCommand. When the keys in the Command touches in multiple nodes, the remote nodes (nodes that didn't created
      the command) can throw the exception [1] when executing the perform() method. I'm using a transactional cache.

      The test case in [2] reproduces the bug.

      [1] Exception:

      Caused by: java.lang.NullPointerException
           at org.infinispan.commands.write.PutMapCommand.perform(PutMapCommand.java:79)
           at org.infinispan.interceptors.CallInterceptor.handleDefault(CallInterceptor.java:83)
           at org.infinispan.commands.AbstractVisitor.visitPutMapCommand(AbstractVisitor.java:82)
           at org.infinispan.commands.write.PutMapCommand.acceptVisitor(PutMapCommand.java:67)
      

      [2]
      branch: https://github.com/pruivo/infinispan/tree/issue_2
      test case: https://github.com/pruivo/infinispan/blob/issue_2/core/src/test/java/org/infinispan/commands/PutMapCommandTest.java

      Attachments

        Activity

          People

            manik_jira Manik Surtani (Inactive)
            pruivo@redhat.com Pedro Ruivo
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: