NPE while undeploying and deploying pu using v2 on Elasticgrid

Description

2020-07-26 18:28:06,309 REST SEVERE [com.gigaspaces.newwebui.websockets.handlers.WebSocketSessionHandler] - Failed to retrieve space instances due to java.lang.NullPointerException; Caused by: java.lang.NullPointerException
at com.gigaspaces.manager.rest.service.DeploymentsService.calculateMemoryUsageFormatted(DeploymentsService.scala:369)
at com.gigaspaces.manager.rest.service.DeploymentsService.gigaInstance2Instance(DeploymentsService.scala:173)
at com.gigaspaces.manager.rest.service.DeploymentsService$$anonfun$getDeploymentsSpacesInstances$1$$anonfun$apply$11.apply(DeploymentsService.scala:846)
at com.gigaspaces.manager.rest.service.DeploymentsService$$anonfun$getDeploymentsSpacesInstances$1$$anonfun$apply$11.apply(DeploymentsService.scala:846)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
at scala.collection.IndexedSeqOptimized$class.foreach(IndexedSeqOptimized.scala:33)
at scala.collection.mutable.ArrayOps$ofRef.foreach(ArrayOps.scala:186)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:245)
at scala.collection.mutable.ArrayOps$ofRef.map(ArrayOps.scala:186)
at com.gigaspaces.manager.rest.service.DeploymentsService$$anonfun$getDeploymentsSpacesInstances$1.apply(DeploymentsService.scala:846)
at com.gigaspaces.manager.rest.service.DeploymentsService$$anonfun$getDeploymentsSpacesInstances$1.apply(DeploymentsService.scala:846)
at scala.Option.map(Option.scala:146)
at com.gigaspaces.manager.rest.service.DeploymentsService.getDeploymentsSpacesInstances(DeploymentsService.scala:846)
at com.gigaspaces.manager.rest.util.RestApiProvider.getSpaceInstancesUtilizationFromRest(RestApiProvider.scala:58)
at com.gigaspaces.newwebui.websockets.handlers.WebSocketSessionHandler.retrieveSpaceInstancesAndSendEvents(WebSocketSessionHandler.java:1706)
at com.gigaspaces.newwebui.websockets.handlers.WebSocketSessionHandler.lambda$retrieveSpacesMetricsAndSendEventPeriodically$4(WebSocketSessionHandler.java:1418)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

Workaround

None

Acceptance Test

manual

Assignee

Evgeny Fisher

Reporter

Evgeny Fisher

Labels

Priority

Medium

SalesForce Case ID

None

Fix versions

Commitment Version/s

None

Due date

None

Product

XAP

Edition

Premium

Platform

All
Configure