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

Getting error pulling RESTCONF URL

    XMLWordPrintable

Details

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

    • 1586

    Description

      When I pull a RESTCONF URL that refers to a top level container in a specific sub-module I'm getting an error:

      The URL is:

      http://localhost:8080/restconf/operational/opendaylight-inventory:nodes/node/ncs/yang-ext:mount/tailf-ncs:devices/

      The error is:

      HTTP Status 500 - java.lang.NoSuchMethodError: javax.ws.rs.WebApplicationException: method <init>(Ljava/lang/String;Ljava/lang/Throwable;)V not found

      type Exception report

      message java.lang.NoSuchMethodError: javax.ws.rs.WebApplicationException: method <init>(Ljava/lang/String;Ljava/lang/Throwable;)V not found

      description The server encountered an internal error that prevented it from fulfilling this request.

      exception

      javax.servlet.ServletException: java.lang.NoSuchMethodError: javax.ws.rs.WebApplicationException: method <init>(Ljava/lang/String;Ljava/lang/Throwable;)V not found
      com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:420)
      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)

      root cause

      java.lang.NoSuchMethodError: javax.ws.rs.WebApplicationException: method <init>(Ljava/lang/String;Ljava/lang/Throwable;)V not found
      org.opendaylight.controller.sal.restconf.impl.RestconfDocumentedException.<init>(RestconfDocumentedException.java:90)
      org.opendaylight.controller.sal.restconf.impl.RestconfDocumentedException.<init>(RestconfDocumentedException.java:105)
      org.opendaylight.controller.sal.restconf.impl.BrokerFacade.readDataViaTransaction(BrokerFacade.java:186)
      org.opendaylight.controller.sal.restconf.impl.BrokerFacade.readOperationalData(BrokerFacade.java:95)
      org.opendaylight.controller.sal.restconf.impl.RestconfImpl.readOperationalData(RestconfImpl.java:690)
      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)

      note The full stack trace of the root cause is available in the Apache Tomcat/7.0.32 logs.

      Attachments

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

        Activity

          People

            tony.tkacik@gmail.com Tony Tkacik
            giheron@cisco.com Giles Heron
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: