Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-669

Null pointer exception when using mounted resources tab to see the operations on mount point

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • restconf
    • None
    • Operating System: Linux
      Platform: PC

    • 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

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jhajnar@cisco.com Jan Hajnar
            ankit21.a@tcs.com Ankit agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: