Details
-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
Sprint 9.3.0.Alpha1
Description
In standalone, a NPE is thrown when you invoke any counter operation.
ERROR [org.infinispan.server.hotrod.HotRodEncoder] (HotRod-ServerWorker-5-6) ISPN005023: Exception encoding message EmptyResponse{version=27, messageId=5, cacheName='org.infinispan.COUNTER', clientIntel=3, operation=COUNTER_CREATE, status=OperationNotExecuted, topologyId=-1}: java.lang.NullPointerException at org.infinispan.server.hotrod.Encoder2x.writeHeader(Encoder2x.java:62) at org.infinispan.server.hotrod.HotRodEncoder.encode(HotRodEncoder.java:70)
In that line, we are trying to get the CacheManager via addressCache, however, the addressCache isn't needed in standalone mode and it is null.
We should get the CacheManager from the HotRodServer instance.