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

Error 500 on GET/OPTIONS

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Cannot Reproduce
    • None
    • None
    • restconf
    • None
    • Operating System: Mac OS
      Platform: PC

    • 573
    • Normal

    Description

      On doing a GET
      http://<device>:8080/restconf/config/opendaylight-inventory:nodes/nod
      e/<device>/yang-ext:mount/Cisco-IOS-XR-ipv4-io-oper:ipv4-network

      ODL receive sends an 500 HTTP error, with the following output. Possibly a netconf problem...

      <html><head><title>Apache Tomcat/7.0.32 - Error report</title><style><!--H1

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}

      H2

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}

      H3

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}

      BODY

      {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;}

      B

      {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}

      P

      {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}

      A

      {color : black;}

      A.name

      {color : black;}

      HR

      {color : #525D76;}

      --></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Exception report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error that prevented it from fulfilling this request.</u></p><p><b>exception</b> <pre>java.lang.NullPointerException
      org.opendaylight.yangtools.yang.data.impl.codec.xml.XmlDocumentUtils.toDomNodes(XmlDocumentUtils.java:430)
      org.opendaylight.controller.sal.connect.netconf.NetconfMapping.toRpcResult(NetconfMapping.java:377)
      org.opendaylight.controller.sal.connect.netconf.NetconfDevice.invokeRpc(NetconfDevice.java:463)
      org.opendaylight.controller.sal.connect.netconf.NetconfDevice.readConfigurationData(NetconfDevice.java:414)
      org.opendaylight.controller.sal.connect.netconf.NetconfDevice.readConfigurationData(NetconfDevice.java:79)
      org.opendaylight.controller.md.sal.common.impl.routing.AbstractDataReadRouter$1.apply(AbstractDataReadRouter.java:71)
      org.opendaylight.controller.md.sal.common.impl.routing.AbstractDataReadRouter$1.apply(AbstractDataReadRouter.java:68)
      com.google.common.collect.Iterators$8.transform(Iterators.java:860)
      com.google.common.collect.TransformedIterator.next(TransformedIterator.java:48)
      org.opendaylight.controller.sal.dom.broker.impl.DataReaderRouter.merge(DataReaderRouter.java:75)
      org.opendaylight.controller.sal.dom.broker.impl.DataReaderRouter.merge(DataReaderRouter.java:38)
      org.opendaylight.controller.md.sal.common.impl.routing.AbstractDataReadRouter.readConfigurationData(AbstractDataReadRouter.java:40)
      org.opendaylight.controller.md.sal.common.impl.service.AbstractDataBroker.readConfigurationData(AbstractDataBroker.java:191)
      org.opendaylight.controller.sal.dom.broker.MountPointImpl.readConfigurationData(MountPointImpl.java:83)
      org.opendaylight.controller.sal.restconf.impl.BrokerFacade.readConfigurationDataBehindMountPoint(BrokerFacade.java:106)
      org.opendaylight.controller.sal.restconf.impl.RestconfImpl.readConfigurationData(RestconfImpl.java:203)
      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      java.lang.reflect.Method.invoke(Method.java:606)
      com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
      com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
      com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
      com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
      com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      com.sun.jersey.server.impl.uri.rules.ResourceObjectRule.accept(ResourceObjectRule.java:100)
      com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
      com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)
      com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)
      com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
      com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
      com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
      com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
      com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
      org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:440)
      org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:179)
      </pre></p><p><b>note</b> <u>The full stack trace of the root cause is available in the Apache Tomcat/7.0.32 logs.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.32</h3></body></html>

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            wojdec Wojciech Dec
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: