Uploaded image for project: 'netconf'
  1. netconf
  2. NETCONF-1295

sal-remote create-notification-stream is not working

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • None
    • None
    • None

      Trying to use the create-notification-stream RPC results causes a runtime exception resulting in 500 internal server error response. Here is the log output (note the "stream-name not present in schema parent" error but the output leaf of create-notification-stream is called notification-stream-identifier, not stream-name):
       
      {{2024-04-12T18:42:58,122 | ERROR | CommitFutures-7 | AbstractFuture | 46 - com.google.guava - 32.1.3.jre | RuntimeException while executing runnable CallbackListener{org.opendaylight.restconf.nb.jaxrs.JaxRsRestconf$9@1d547620} with executor MoreExecutors.directExecutor()java.lang.IllegalArgumentException: Data tree child (urn:opendaylight:params:xml:ns:yang:controller:md:sal:remote?revision=2014-01-14)stream-name not present in schema parent (urn:opendaylight:params:xml:ns:yang:controller:md:sal:remote?revision=2014-01-14)outputat org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.notPresent(SchemaInferenceStack.java:1070) ~[bundleFile:?]at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.lambda$pushData$6(SchemaInferenceStack.java:874) ~[bundleFile:?]at java.util.Optional.orElseThrow(Optional.java:403) ~[?:?]at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.pushData(SchemaInferenceStack.java:874) ~[bundleFile:?]at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.pushData(SchemaInferenceStack.java:866) ~[bundleFile:?]at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.pushData(SchemaInferenceStack.java:860) ~[bundleFile:?]at org.opendaylight.yangtools.yang.model.util.SchemaInferenceStack.enterDataTree(SchemaInferenceStack.java:536) ~[bundleFile:?]at org.opendaylight.yangtools.yang.data.util.NormalizedNodeStreamWriterStack.enterDataTree(NormalizedNodeStreamWriterStack.java:180) ~[bundleFile:?]at org.opendaylight.yangtools.yang.data.util.NormalizedNodeStreamWriterStack.enterDataTree(NormalizedNodeStreamWriterStack.java:193) ~[bundleFile:?]at org.opendaylight.yangtools.yang.data.util.NormalizedNodeStreamWriterStack.startLeafNode(NormalizedNodeStreamWriterStack.java:216) ~[bundleFile:?]at org.opendaylight.yangtools.yang.data.codec.gson.JSONNormalizedNodeStreamWriter.startLeafNode(JSONNormalizedNodeStreamWriter.java:313) ~[bundleFile:?]at org.opendaylight.restconf.nb.rfc8040.jersey.providers.ParameterAwareNormalizedNodeWriter.wasProcessAsSimpleNode(ParameterAwareNormalizedNodeWriter.java:145) ~[bundleFile:?]at org.opendaylight.restconf.nb.rfc8040.jersey.providers.ParameterAwareNormalizedNodeWriter.write(ParameterAwareNormalizedNodeWriter.java:118) ~[bundleFile:?]at org.opendaylight.restconf.nb.rfc8040.jersey.providers.ParameterAwareNormalizedNodeWriter$OrderedParameterAwareNormalizedNodeWriter.write(ParameterAwareNormalizedNodeWriter.java:296) ~[bundleFile:?]at org.opendaylight.restconf.nb.rfc8040.jersey.providers.JsonNormalizedNodeBodyWriter.writeChildren(JsonNormalizedNodeBodyWriter.java:87) ~[bundleFile:?]at org.opendaylight.restconf.nb.rfc8040.jersey.providers.JsonNormalizedNodeBodyWriter.writeOperationOutput(JsonNormalizedNodeBodyWriter.java:51) ~[bundleFile:?]at org.opendaylight.restconf.nb.rfc8040.jersey.providers.AbstractNormalizedNodeBodyWriter.writeTo(AbstractNormalizedNodeBodyWriter.java:47) ~[bundleFile:?]at org.opendaylight.restconf.nb.rfc8040.jersey.providers.AbstractNormalizedNodeBodyWriter.writeTo(AbstractNormalizedNodeBodyWriter.java:28) ~[bundleFile:?]at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.invokeWriteTo(WriterInterceptorExecutor.java:242) ~[bundleFile:?]at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo(WriterInterceptorExecutor.java:227) ~[bundleFile:?]at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:139) ~[bundleFile:?]at org.glassfish.jersey.server.internal.JsonWithPaddingInterceptor.aroundWriteTo(JsonWithPaddingInterceptor.java:85) ~[bundleFile:?]at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:139) ~[bundleFile:?]at org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor.aroundWriteTo(MappableExceptionWrapperInterceptor.java:61) ~[bundleFile:?]at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:139) ~[bundleFile:?]at org.glassfish.jersey.message.internal.MessageBodyFactory.writeTo(MessageBodyFactory.java:1116) ~[bundleFile:?]at org.glassfish.jersey.server.ServerRuntime$Responder.writeResponse(ServerRuntime.java:649) ~[bundleFile:?]at org.glassfish.jersey.server.ServerRuntime$Responder.processResponse(ServerRuntime.java:380) ~[bundleFile:?]at org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:370) ~[bundleFile:?]at org.glassfish.jersey.server.ServerRuntime$AsyncResponder$3.run(ServerRuntime.java:871) ~[bundleFile:?]at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248) ~[bundleFile:?]at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244) ~[bundleFile:?]at org.glassfish.jersey.internal.Errors.process(Errors.java:292) ~[bundleFile:?]at org.glassfish.jersey.internal.Errors.process(Errors.java:274) ~[bundleFile:?]at org.glassfish.jersey.internal.Errors.process(Errors.java:244) ~[bundleFile:?]at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265) ~[bundleFile:?]at org.glassfish.jersey.server.ServerRuntime$AsyncResponder.resume(ServerRuntime.java:903) ~[bundleFile:?]at org.glassfish.jersey.server.ServerRuntime$AsyncResponder.resume(ServerRuntime.java:859) ~[bundleFile:?]at org.opendaylight.restconf.nb.jaxrs.JaxRsRestconfCallback.onSuccess(JaxRsRestconfCallback.java:38) ~[bundleFile:?]at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1133) ~[bundleFile:?]at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:31) ~[bundleFile:?]at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1286) [bundleFile:?]at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:1055) [bundleFile:?]at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:782) [bundleFile:?]at org.opendaylight.restconf.common.errors.RestconfFuture.access$000(RestconfFuture.java:27) [bundleFile:?]at org.opendaylight.restconf.common.errors.RestconfFuture$1.onSuccess(RestconfFuture.java:75) [bundleFile:?]at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1133) [bundleFile:?]at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:31) [bundleFile:?]at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1286) [bundleFile:?]at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:1055) [bundleFile:?]at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:782) [bundleFile:?]at org.opendaylight.restconf.common.errors.SettableRestconfFuture.set(SettableRestconfFuture.java:21) [bundleFile:?]at org.opendaylight.restconf.server.spi.AbstractRestconfStreamRegistry$1.onSuccess(AbstractRestconfStreamRegistry.java:84) [bundleFile:?]at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1133) [bundleFile:?]at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:31) [bundleFile:?]at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1286) [bundleFile:?]at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:1055) [bundleFile:?]at com.google.common.util.concurrent.AbstractFuture.access$500(AbstractFuture.java:75) [bundleFile:?]at com.google.common.util.concurrent.AbstractFuture$SetFuture.run(AbstractFuture.java:358) [bundleFile:?]at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]at java.lang.Thread.run(Thread.java:840) [?:?]Suppressed: java.io.IOException: Incomplete documentat com.google.gson.stream.JsonWriter.close(JsonWriter.java:610) ~[bundleFile:?]at org.opendaylight.restconf.nb.rfc8040.jersey.providers.JsonNormalizedNodeBodyWriter.writeOperationOutput(JsonNormalizedNodeBodyWriter.java:45) ~[bundleFile:?]at org.opendaylight.restconf.nb.rfc8040.jersey.providers.AbstractNormalizedNodeBodyWriter.writeTo(AbstractNormalizedNodeBodyWriter.java:47) ~[bundleFile:?]at org.opendaylight.restconf.nb.rfc8040.jersey.providers.AbstractNormalizedNodeBodyWriter.writeTo(AbstractNormalizedNodeBodyWriter.java:28) ~[bundleFile:?]at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.invokeWriteTo(WriterInterceptorExecutor.java:242) ~[bundleFile:?]at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo(WriterInterceptorExecutor.java:227) ~[bundleFile:?]at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:139) ~[bundleFile:?]at org.glassfish.jersey.server.internal.JsonWithPaddingInterceptor.aroundWriteTo(JsonWithPaddingInterceptor.java:85) ~[bundleFile:?]at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:139) ~[bundleFile:?]at org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor.aroundWriteTo(MappableExceptionWrapperInterceptor.java:61) ~[bundleFile:?]at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:139) ~[bundleFile:?]at org.glassfish.jersey.message.internal.MessageBodyFactory.writeTo(MessageBodyFactory.java:1116) ~[bundleFile:?]at org.glassfish.jersey.server.ServerRuntime$Responder.writeResponse(ServerRuntime.java:649) ~[bundleFile:?]at org.glassfish.jersey.server.ServerRuntime$Responder.processResponse(ServerRuntime.java:380) ~[bundleFile:?]at org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:370) ~[bundleFile:?]at org.glassfish.jersey.server.ServerRuntime$AsyncResponder$3.run(ServerRuntime.java:871) ~[bundleFile:?]at org.glassfish.jersey.internal.Errors$1.call(Errors.java:248) ~[bundleFile:?]at org.glassfish.jersey.internal.Errors$1.call(Errors.java:244) ~[bundleFile:?]at org.glassfish.jersey.internal.Errors.process(Errors.java:292) ~[bundleFile:?]at org.glassfish.jersey.internal.Errors.process(Errors.java:274) ~[bundleFile:?]at org.glassfish.jersey.internal.Errors.process(Errors.java:244) ~[bundleFile:?]at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:265) ~[bundleFile:?]at org.glassfish.jersey.server.ServerRuntime$AsyncResponder.resume(ServerRuntime.java:903) ~[bundleFile:?]at org.glassfish.jersey.server.ServerRuntime$AsyncResponder.resume(ServerRuntime.java:859) ~[bundleFile:?]at org.opendaylight.restconf.nb.jaxrs.JaxRsRestconfCallback.onSuccess(JaxRsRestconfCallback.java:38) ~[bundleFile:?]at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1133) ~[bundleFile:?]at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:31) ~[bundleFile:?]at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1286) [bundleFile:?]at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:1055) [bundleFile:?]at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:782) [bundleFile:?]at org.opendaylight.restconf.common.errors.RestconfFuture.access$000(RestconfFuture.java:27) [bundleFile:?]at org.opendaylight.restconf.common.errors.RestconfFuture$1.onSuccess(RestconfFuture.java:75) [bundleFile:?]at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1133) [bundleFile:?]at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:31) [bundleFile:?]at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1286) [bundleFile:?]at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:1055) [bundleFile:?]at com.google.common.util.concurrent.AbstractFuture.set(AbstractFuture.java:782) [bundleFile:?]at org.opendaylight.restconf.common.errors.SettableRestconfFuture.set(SettableRestconfFuture.java:21) [bundleFile:?]at org.opendaylight.restconf.server.spi.AbstractRestconfStreamRegistry$1.onSuccess(AbstractRestconfStreamRegistry.java:84) [bundleFile:?]at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1133) [bundleFile:?]at com.google.common.util.concurrent.DirectExecutor.execute(DirectExecutor.java:31) [bundleFile:?]at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:1286) [bundleFile:?]at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:1055) [bundleFile:?]at com.google.common.util.concurrent.AbstractFuture.access$500(AbstractFuture.java:75) [bundleFile:?]at com.google.common.util.concurrent.AbstractFuture$SetFuture.run(AbstractFuture.java:358) [bundleFile:?]at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]at java.lang.Thread.run(Thread.java:840) [?:?]}}

            Unassigned Unassigned
            ojnas Jonas Mårtensson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: