issue apidoc explorer

asked 2014-08-06 22:33:02 -0800

ankit21a gravatar image

updated 2014-08-24 10:05:13 -0800

This URL ( http://localhost:8080/apidoc/explorer/ ) points me to page apidoc page.
But when i click on the mounted resources it shows me two mount points with node-id
e.g.:      /opendaylight-inventory:nodes/node/controller-config/

**when i click on this url i am getting null exception in ODL** 
 2014-08-07 17:15:09 IST [com.sun.jersey.spi.container.ContainerResponse] SEVERE com.sun.jersey.spi.container.ContainerResponse mapMappableContainerException The RuntimeException could not be mapped to a response, re-throwing to the HTTP container
java.lang.NullPointerException
    at org.opendaylight.controller.sal.rest.doc.impl.BaseYangSwaggerGenerator$1.compare(BaseYangSwaggerGenerator.java:352)
    at org.opendaylight.controller.sal.rest.doc.impl.BaseYangSwaggerGenerator$1.compare(BaseYangSwaggerGenerator.java:347)
    at java.util.TreeMap.compare(TreeMap.java:1188)
    at java.util.TreeMap.put(TreeMap.java:531)
    at java.util.TreeSet.add(TreeSet.java:255)
    at org.opendaylight.controller.sal.rest.doc.impl.BaseYangSwaggerGenerator.getSortedModules(BaseYangSwaggerGenerator.java:362)
    at org.opendaylight.controller.sal.rest.doc.impl.BaseYangSwaggerGenerator.getResourceListing(BaseYangSwaggerGenerator.java:82)
    at org.opendaylight.controller.sal.rest.doc.mountpoints.MountPointSwagger.getResourceList(MountPointSwagger.java:136)
    at org.opendaylight.controller.sal.rest.doc.impl.ApiDocServiceImpl.getMountRootDoc(ApiDocServiceImpl.java:111)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
    at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)



**and on UI it shows error**
500 : undefined http://localhost:8080/apidoc/apis/mounts/1


Please guide me here what can be done to resolve this issue.
edit retag flag offensive close merge delete

Comments

Raised a Bug 1500 for the same...

ankit21a ( 2014-08-24 10:04:26 -0800 )edit