SnapCenter Plug-in for VMware backup fails with NULL pointer exception
Applies to
- SnapCenter Plug-in for VMware vSphere (SCV)
- NetApp Data Broker (NDB)
Issue
- Java related exception when attempting to list the Datastore in the Resource group:
DEBUG VSC com.netapp.aegis.discovery.StorageDiscoveryManager [JobId:<JOB>] Retrieving Datastore by moref: Datastore:datastore-<NUM> DEBUG VSC com.netapp.aegis.discovery.StorageDiscoveryManager [JobId:<JOB>] Did not find the Datastore by Moref: Datastore:datastore-<NUM>, returning null
- SCV could not find it via a MOB reference query:
DEBUG VSC com.netapp.aegis.model.DatastoreStorageDetailsCache JobId + <JOB> count reduced to 0, removing from cache ERROR VSC com.netapp.aegis.sms.provider.DiscoverResourcesManager [JobId:<JOB>] Storage discovery failed, received error during operation: java.lang.NullPointerException.
- Error message visible in VMware vCenter UI
Run Resource Group operation failed for Resource Group AllAFFDatastores. (Error: Unable to discover resources on SCV: Storage discovery failed, received error during operation: java.lang.NullPointerException. Please refer to operation logs for more details.)
- Please refer to operation logs for more details.
java.lang.NullPointerException at com.netapp.aegis.discovery.StorageDiscoveryManager.setStorageResourcesonSmObject(StorageDiscoveryManager.java:454) at com.netapp.aegis.discovery.StorageDiscoveryManager.discoverVirtualEntities(StorageDiscoveryManager.java:283) at com.netapp.aegis.sms.provider.DiscoverResourcesManager.discoverResources(DiscoverResourcesManager.java:220) at sun.reflect.GeneratedMethodAccessor71.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:133) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:97) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:827) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:738) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) ... at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:698) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:804) at java.lang.Thread.run(Thread.java:748) DEBUG VSC com.netapp.aegis.sms.provider.DiscoverResourcesManager "/><!-- <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <SmDiscoverResourcesResponse> <Result> <_message>Storage discovery failed, received error during operation: java.lang.NullPointerException. Please refer to operation logs for more details.</_message> <_errorCode>-1</_errorCode> </Result> <TotalCount>0</TotalCount> <DisplayCount>0</DisplayCount>