Details
Assignee
Ivan HraškoIvan HraškoReporter
Ivan HraškoIvan HraškoLabels
Components
Affects versions
Priority
Medium
Details
Details
Assignee
Ivan Hraško
Ivan HraškoReporter
Ivan Hraško
Ivan HraškoLabels
Components
Affects versions
Priority
Created February 11, 2025 at 11:30 AM
Updated February 11, 2025 at 2:42 PM
When using ODL testtool with correctly renamed (name@revision.yang) Cisco XE models (in attachments) we get following exception in karaf.log when trying to load OpenApi web UI for device (with depth=0 and width=0 parameters):
09:41:57.800 ERROR [qtp511849676-412] An I/O error has occurred while writing a response message entity to the container output stream. org.glassfish.jersey.server.internal.process.MappableException: java.lang.IllegalArgumentException: Data tree child (http://openconfig.net/yang/platform?revision=2018-11-21)components not present in module (http://openconfig.net/yang/platform?revision=2018-11-21)openconfig-platform at org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor.aroundWriteTo(MappableExceptionWrapperInterceptor.java:67) ~[?:?] at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:139) ~[?:?] at org.glassfish.jersey.message.internal.MessageBodyFactory.writeTo(MessageBodyFactory.java:1116) ~[?:?] at org.glassfish.jersey.server.ServerRuntime$Responder.writeResponse(ServerRuntime.java:649) ~[?:?] at org.glassfish.jersey.server.ServerRuntime$Responder.processResponse(ServerRuntime.java:380) ~[?:?] at org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:370) ~[?:?] at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:259) ~[?:?] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248) ~[?:?] at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244) ~[?:?] at org.glassfish.jersey.internal.Errors.process(Errors.java:292) ~[?:?] at org.glassfish.jersey.internal.Errors.process(Errors.java:274) ~[?:?] at org.glassfish.jersey.internal.Errors.process(Errors.java:244) ~[?:?] at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265) ~[?:?] at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:235) ~[?:?] at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:684) ~[?:?] at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:397) ~[?:?] at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:349) ~[?:?] at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:379) ~[?:?] at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:312) ~[?:?] at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:205) ~[?:?] at org.ops4j.pax.web.service.spi.servlet.OsgiInitializedServlet.service(OsgiInitializedServlet.java:102) ~[bundleFile:?] at org.eclipse.jetty.servlet.ServletHolder$NotAsync.service(ServletHolder.java:1459) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1656) ~[bundleFile:9.4.54.v20240208] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:61) ~[?:?] at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) ~[?:?] at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) ~[?:?] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:154) ~[?:?] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) ~[?:?] at org.apache.shiro.web.servlet.AdviceFilter.executeChain(AdviceFilter.java:108) ~[?:?] at org.apache.shiro.web.servlet.AdviceFilter.doFilterInternal(AdviceFilter.java:137) ~[?:?] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:154) ~[?:?] at org.apache.shiro.web.servlet.ProxiedFilterChain.doFilter(ProxiedFilterChain.java:66) ~[?:?] at org.apache.shiro.web.servlet.AbstractShiroFilter.executeChain(AbstractShiroFilter.java:458) ~[?:?] at org.apache.shiro.web.servlet.AbstractShiroFilter$1.call(AbstractShiroFilter.java:373) ~[?:?] at org.apache.shiro.subject.support.SubjectCallable.doCall(SubjectCallable.java:90) ~[?:?] at org.apache.shiro.subject.support.SubjectCallable.call(SubjectCallable.java:83) ~[?:?] at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:387) ~[?:?] at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:370) ~[?:?] at org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:154) ~[?:?] at org.ops4j.pax.web.service.spi.servlet.OsgiInitializedFilter.doFilter(OsgiInitializedFilter.java:176) ~[bundleFile:?] at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:201) ~[bundleFile:9.4.54.v20240208] at org.ops4j.pax.web.service.jetty.internal.PaxWebFilterHolder.doFilter(PaxWebFilterHolder.java:208) ~[bundleFile:?] at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1626) ~[bundleFile:9.4.54.v20240208] at org.ops4j.pax.web.service.spi.servlet.OsgiFilterChain.doFilter(OsgiFilterChain.java:113) ~[bundleFile:?] at org.ops4j.pax.web.service.jetty.internal.PaxWebServletHandler.doHandle(PaxWebServletHandler.java:334) ~[bundleFile:?] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:505) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:234) ~[bundleFile:9.4.54.v20240208] at org.ops4j.pax.web.service.jetty.internal.PrioritizedHandlerCollection.handle(PrioritizedHandlerCollection.java:96) ~[bundleFile:?] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.server.Server.handle(Server.java:516) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) ~[bundleFile:9.4.54.v20240208] at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) ~[bundleFile:9.4.54.v20240208] at java.lang.Thread.run(Thread.java:1583) [?:?] Caused by: java.lang.IllegalArgumentException: Data tree child (http://openconfig.net/yang/platform?revision=2018-11-21)components not present in module (http://openconfig.net/yang/platform?revision=2018-11-21)openconfig-platform at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.notPresent(SchemaInferenceStack.java:1062) ~[bundleFile:14.0.9] at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.lambda$pushData$6(SchemaInferenceStack.java:866) ~[bundleFile:14.0.9] at java.util.Optional.orElseThrow(Optional.java:403) ~[?:?] at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.pushData(SchemaInferenceStack.java:866) ~[bundleFile:14.0.9] at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.pushFirstData(SchemaInferenceStack.java:874) ~[bundleFile:14.0.9] at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.pushData(SchemaInferenceStack.java:852) ~[bundleFile:14.0.9] at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.enterDataTree(SchemaInferenceStack.java:534) ~[bundleFile:14.0.9] at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.enterChild(SchemaInferenceStack.java:748) ~[bundleFile:14.0.9] at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.resolveLocationPath(SchemaInferenceStack.java:724) ~[bundleFile:14.0.9] at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.resolvePathExpression(SchemaInferenceStack.java:662) ~[bundleFile:14.0.9] at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.resolveLeafref(SchemaInferenceStack.java:631) ~[bundleFile:14.0.9] at org.opendaylight.restconf.openapi.model.PropertyEntity.processTypeDef(PropertyEntity.java:455) ~[bundleFile:?] at org.opendaylight.restconf.openapi.model.PropertyEntity.processTypeDef(PropertyEntity.java:431) ~[bundleFile:?] at org.opendaylight.restconf.openapi.model.PropertyEntity.processLeafNode(PropertyEntity.java:387) ~[bundleFile:?] at org.opendaylight.restconf.openapi.model.PropertyEntity.processChildNode(PropertyEntity.java:195) ~[bundleFile:?] at org.opendaylight.restconf.openapi.model.PropertyEntity.generate(PropertyEntity.java:130) ~[bundleFile:?] at org.opendaylight.restconf.openapi.model.PropertyEntity.<init>(PropertyEntity.java:118) ~[bundleFile:?] at org.opendaylight.restconf.openapi.model.NodeSchemaEntity.generateProperties(NodeSchemaEntity.java:58) ~[bundleFile:?] at org.opendaylight.restconf.openapi.model.SchemaEntity.generateProperties(SchemaEntity.java:117) ~[bundleFile:?] at org.opendaylight.restconf.openapi.model.SchemaEntity.generate(SchemaEntity.java:65) ~[bundleFile:?] at org.opendaylight.restconf.openapi.model.SchemasEntity.generate(SchemasEntity.java:56) ~[bundleFile:?] at org.opendaylight.restconf.openapi.model.ComponentsEntity.generate(ComponentsEntity.java:35) ~[bundleFile:?] at org.opendaylight.restconf.openapi.model.DocumentEntity.generate(DocumentEntity.java:47) ~[bundleFile:?] at org.opendaylight.restconf.openapi.jaxrs.OpenApiBodyWriter.writeTo(OpenApiBodyWriter.java:47) ~[bundleFile:?] at org.opendaylight.restconf.openapi.jaxrs.OpenApiBodyWriter.writeTo(OpenApiBodyWriter.java:27) ~[bundleFile:?] at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.invokeWriteTo(WriterInterceptorExecutor.java:242) ~[?:?] at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo(WriterInterceptorExecutor.java:227) ~[?:?] at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:139) ~[?:?] at org.glassfish.jersey.server.internal.JsonWithPaddingInterceptor.aroundWriteTo(JsonWithPaddingInterceptor.java:85) ~[?:?] at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:139) ~[?:?] at org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor.aroundWriteTo(MappableExceptionWrapperInterceptor.java:61) ~[?:?] ... 77 more