Hi Team,
I try to get the disk statistics using the following
*Url: *
* /ovirt-engine/api/disks?follow=statistics*
and I get the following error in oVirt,
2018-08-17 15:34:24,663+08 ERROR [io.undertow.request] (default task-815)
UT005023: Exception handling request to /ovirt-engine/api/v4/disks:
java.lang.RuntimeException: org.jboss.resteasy.spi.UnhandledException:
java.lang.IllegalStateException: Problem following 'statistics' link in
Disks entity.
at io.undertow.servlet.spec.RequestDispatcherImpl.forwardImpl(
RequestDispatcherImpl.java:245) [undertow-servlet-2.0.9.Final.
jar:2.0.9.Final]
at io.undertow.servlet.spec.RequestDispatcherImpl.forwardImplSetup(
RequestDispatcherImpl.java:147) [undertow-servlet-2.0.9.Final.
jar:2.0.9.Final]
at io.undertow.servlet.spec.RequestDispatcherImpl.forward(
RequestDispatcherImpl.java:111) [undertow-servlet-2.0.9.Final.
jar:2.0.9.Final]
at org.ovirt.engine.api.restapi.invocation.VersionFilter.
doFilter(VersionFilter.java:180) [restapi-jaxrs.jar:]
at org.ovirt.engine.api.restapi.invocation.VersionFilter.
doFilter(VersionFilter.java:98) [restapi-jaxrs.jar:]
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
[undertow-servlet-2.0.9.Final.jar:2.0.9.Final]
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.
doFilter(FilterHandler.java:131) [undertow-servlet-2.0.9.Final.
jar:2.0.9.Final]
at org.ovirt.engine.api.restapi.invocation.CurrentFilter.
doFilter(CurrentFilter.java:117) [restapi-jaxrs.jar:]
at org.ovirt.engine.api.restapi.invocation.CurrentFilter.
doFilter(CurrentFilter.java:72) [restapi-jaxrs.jar:]
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
[undertow-servlet-2.0.9.Final.jar:2.0.9.Final]
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.
doFilter(FilterHandler.java:131) [undertow-servlet-2.0.9.Final.
jar:2.0.9.Final]
at org.ovirt.engine.core.aaa.filters.RestApiSessionMgmtFilter.
doFilter(RestApiSessionMgmtFilter.java:78) [aaa.jar:]
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
[undertow-servlet-2.0.9.Final.jar:2.0.9.Final]
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.
doFilter(FilterHandler.java:131) [undertow-servlet-2.0.9.Final.
jar:2.0.9.Final]
at org.ovirt.engine.core.aaa.filters.EnforceAuthFilter.
doFilter(EnforceAuthFilter.java:42) [aaa.jar:]
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
[undertow-servlet-2.0.9.Final.jar:2.0.9.Final]
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.
doFilter(FilterHandler.java:131) [undertow-servlet-2.0.9.Final.
jar:2.0.9.Final]
at org.ovirt.engine.core.aaa.filters.SsoRestApiNegotiationFilter.
doFilter(SsoRestApiNegotiationFilter.java:84) [aaa.jar:]
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
[undertow-servlet-2.0.9.Final.jar:2.0.9.Final]
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.
doFilter(FilterHandler.java:131) [undertow-servlet-2.0.9.Final.
jar:2.0.9.Final]
at org.ovirt.engine.core.aaa.filters.SsoRestApiAuthFilter.
doFilter(SsoRestApiAuthFilter.java:47) [aaa.jar:]
at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:61)
[undertow-servlet-2.0.9.Final.jar:2.0.9.Final]
at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.
doFilter(FilterHandler.java:131) [undertow-servlet-2.0.9.Final.
jar:2.0.9.Final]
at org.ovirt.engine.core.aaa.filters.SessionValidationFilter.
doFilter(SessionValidationFilter.java:59) [aaa.jar:]
Caused by: java.lang.IllegalStateException: Problem following 'statistics'
link in Disks entity.
at org.ovirt.engine.api.restapi.resource.utils.LinkFollower.
fetchData(LinkFollower.java:185) [restapi-jaxrs.jar:]
at org.ovirt.engine.api.restapi.resource.utils.LinkFollower.
followLink(LinkFollower.java:144) [restapi-jaxrs.jar:]
at org.ovirt.engine.api.restapi.resource.utils.LinkFollower.
followLinks(LinkFollower.java:132) [restapi-jaxrs.jar:]
at org.ovirt.engine.api.restapi.resource.utils.LinkFollower.
followLinks(LinkFollower.java:53) [restapi-jaxrs.jar:]
at org.ovirt.engine.api.restapi.resource.BaseBackendResource.
follow(BaseBackendResource.java:412) [restapi-jaxrs.jar:]
at org.ovirt.engine.api.resource.DisksResource.doList(DisksResource.java:222)
[restapi-definition.jar:]
at sun.reflect.GeneratedMethodAccessor407.invoke(Unknown Source)
[:1.8.0_181]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_181]
at java.lang.reflect.Method.invoke(Method.java:498)
[rt.jar:1.8.0_181]
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
[resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final]
at org.jboss.resteasy.core.ResourceMethodInvoker.
internalInvokeOnTarget(ResourceMethodInvoker.java:510)
[resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final]
at org.jboss.resteasy.core.ResourceMethodInvoker.
invokeOnTargetAfterFilter(ResourceMethodInvoker.java:401)
[resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final]
at org.jboss.resteasy.core.ResourceMethodInvoker.lambda$
invokeOnTarget$0(ResourceMethodInvoker.java:365) [resteasy-jaxrs-20-3.5.1.
Final.jar:3.5.1.Final]
at org.jboss.resteasy.core.interception.
PreMatchContainerRequestContext.filter(PreMatchContainerRequestContext.java:361)
[resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final]
at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(
ResourceMethodInvoker.java:367) [resteasy-jaxrs-20-3.5.1.
Final.jar:3.5.1.Final]
at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(
ResourceMethodInvoker.java:339) [resteasy-jaxrs-20-3.5.1.
Final.jar:3.5.1.Final]
at org.jboss.resteasy.core.ResourceLocatorInvoker.
invokeOnTargetObject(ResourceLocatorInvoker.java:137)
[resteasy-jaxrs-20-3.5.1.Final.jar:3.5.1.Final]
at org.jboss.resteasy.core.ResourceLocatorInvoker.invoke(
ResourceLocatorInvoker.java:100) [resteasy-jaxrs-20-3.5.1.
Final.jar:3.5.1.Final]
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(
SynchronousDispatcher.java:441) [resteasy-jaxrs-20-3.5.1.
Final.jar:3.5.1.Final]
... 96 more
Caused by: java.lang.IllegalStateException: Problem fetching 'statistics'
from Disk
at org.ovirt.engine.api.restapi.resource.utils.LinkFollower.
fetchData(LinkFollower.java:219) [restapi-jaxrs.jar:]
at org.ovirt.engine.api.restapi.resource.utils.LinkFollower.
fetchData(LinkFollower.java:182) [restapi-jaxrs.jar:]
... 114 more
Caused by: java.lang.NullPointerException
Any thoughts on this?
Thanks,
Hari
--
DISCLAIMER - *MSysTechnologies LLC*
This email message, contents and
its attachments may contain confidential, proprietary or legally privileged
information and is intended solely for the use of the individual or entity
to whom it is actually intended. If you have erroneously received this
message, please permanently delete it immediately and notify the sender. If
you are not the intended recipient of the email message,you are notified
strictly not to disseminate,distribute or copy this e-mail.E-mail
transmission cannot be guaranteed to be secure or error-free as Information
could be intercepted, corrupted, lost, destroyed, incomplete or contain
viruses and MSysTechnologies LLC accepts no liability for the contents and
integrity of this mail or for any damage caused by the limitations of the
e-mail transmission.