]
Galder Zamarreño updated ISPN-5100:
-----------------------------------
Status: Pull Request Sent (was: Coding In Progress)
Git Pull Request:
Failover without @ClientCacheFailover fails with NPE in Hot Rod
client
----------------------------------------------------------------------
Key: ISPN-5100
URL:
https://issues.jboss.org/browse/ISPN-5100
Project: Infinispan
Issue Type: Bug
Components: Remote Protocols
Affects Versions: 7.0.2.Final, 7.1.0.Alpha1
Reporter: Galder Zamarreño
Assignee: Galder Zamarreño
Fix For: 7.1.0.Beta1, 7.1.0.Final
Hot Rod client raises a NullPointerException if a failover happens but the client
listener has no @ClientCacheFailover callbacks defined.
{code}
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)
{code}