[CONTROLLER-669] Null pointer exception when using mounted resources tab to see the operations on mount point Created: 07/Aug/14  Updated: 25/Jul/23  Resolved: 22/Jul/15

Status: Resolved
Project: controller
Component/s: restconf
Affects Version/s: None
Fix Version/s: None

Type: Bug
Reporter: Ankit agarwal Assignee: Jan Hajnar
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


Attachments: HTML File apidocerrorPage    
External issue ID: 1500

 Description   

This URL (http://localhost:8080/apidoc/explorer/#)directs me to the page where i am able to see the monted resources tab on main page.

Inside the mounted resources tab when click on the mount point link to see the operations it gives the error as
500 : undefined http://localhost:8080/apidoc/apis/mounts/1

exception at ODL side:
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)

have attached the full logs for the error



 Comments   
Comment by Ankit agarwal [ 07/Aug/14 ]

Attachment apidocerrorPage has been added with description: error logs

Comment by Jan Hajnar [ 07/Jul/15 ]

patch:
https://git.opendaylight.org/gerrit/#/c/23807/

Generated at Wed Feb 07 19:53:35 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.