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

Failover without @ClientCacheFailover fails with NPE in Hot Rod client

    XMLWordPrintable

    Details

      Description

      Hot Rod client raises a NullPointerException if a failover happens but the client listener has no @ClientCacheFailover callbacks defined.

      java.lang.NullPointerException
      	at org.infinispan.client.hotrod.event.ClientListenerNotifier.invokeFailoverEvent(ClientListenerNotifier.java:108)
      	at org.infinispan.client.hotrod.event.ClientListenerNotifier.failoverClientListeners(ClientListenerNotifier.java:94)
      	at org.infinispan.client.hotrod.impl.transport.tcp.TcpTransportFactory.updateServers(TcpTransportFactory.java:330)
      	at org.infinispan.client.hotrod.impl.protocol.Codec20.readNewTopologyAndHash(Codec20.java:390)
      	at org.infinispan.client.hotrod.impl.protocol.Codec20.readNewTopologyIfPresent(Codec20.java:357)
      	at org.infinispan.client.hotrod.impl.protocol.Codec20.readPartialHeader(Codec20.java:104)
      	at org.infinispan.client.hotrod.impl.protocol.Codec20.readHeader(Codec20.java:97)
      

        Attachments

          Activity

            People

            Assignee:
            galder.zamarreno Galder ZamarreƱo
            Reporter:
            galder.zamarreno Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: