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

Restconf not finding the yang models.

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • mdsal
    • None
    • Operating System: Windows
      Platform: PC

    • 322
    • Highest

    Description

      I think the MD-SAL service is not coming getting initialized and we are restconf is not accessing able to resolve the yang models.

      The error persists after 5-10 minutes after we start ODL.

      > [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/restc
      > onf].[JAXRSRestconf]] SEVERE org.apache.catalina.core.StandardW
      > rapperValve invoke Servlet.service() for servlet [JAXRSRestconf] in
      > context with path [/restconf] threw exception java.lang.IllegalArgumentException
      > at com.google.common.base.Preconditions.checkArgument(Preconditions.java:76)
      > at org.opendaylight.controller.sal.restconf.impl.ControllerContext.getLatestModule(ControllerContext.java:174)
      > at org.opendaylight.controller.sal.restconf.impl.ControllerContext.findModule(ControllerContext.java:169)
      > at org.opendaylight.controller.sal.restconf.impl.ControllerContext.toInstanceIdentifier(ControllerContext.java:155)
      > at org.opendaylight.controller.sal.restconf.impl.RestconfImpl.resolveInstanceIdentifier(RestconfImpl.java:254)
      > at org.opendaylight.controller.sal.restconf.impl.RestconfImpl.readData(RestconfImpl.java:108)
      > at sun.reflect.GeneratedMethodAccessor163.invoke(Unknown Source)
      > 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.AbstractResourceMetho
      > dDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispa
      > tchPro
      > vider.java:185)
      > at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
      > at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
      > at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      > at com.sun.jersey.server.impl.uri.rules.ResourceObjectRule.accept(ResourceObjectRule.java:100)
      > at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      > at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
      > at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1511)
      > at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1442)
      > at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
      > at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
      > at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
      > at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
      > at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
      > at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
      > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      > at org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:440)
      > at org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:179)
      > at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      > at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      > at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      > at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      > at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:581)
      > at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
      > at
      > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
      > va:99)
      >

      Attachments

        Issue Links

          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
              prasanna.huddar@ericsson.com Prasanna Huddar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: