Skip to main content
NetApp Knowledge Base

SnapCenter Plug-in for VMware backup fails with NULL pointer exception

Views:
2,182
Visibility:
Public
Votes:
2
Category:
snapcenter
Specialty:
snapx
Last Updated:

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>

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.