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

RestGetOperationTest.getStreamsTest error

    XMLWordPrintable

Details

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

    • 1001

    Description

      Build failed at with following error

      Stacktrace

      java.lang.AssertionError:
      at org.junit.Assert.fail(Assert.java:91)
      at org.junit.Assert.assertTrue(Assert.java:43)
      at org.junit.Assert.assertTrue(Assert.java:54)
      at org.opendaylight.controller.sal.restconf.impl.test.RestGetOperationTest.getStreamsTest(RestGetOperationTest.java:237)

      Standard Output

      18:43:05.953 [Grizzly-worker(2)] ERROR o.o.y.y.d.i.c.xml.XmlDocumentUtils - Provided node value did not have type type empty (urn:ietf:params:xml:ns:yang:1)empty required by mapping. Using stream instead.
      java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Void
      at org.opendaylight.yangtools.yang.data.impl.codec.TypeDefinitionAwareCodec$EmptyCodecStringImpl.serialize(TypeDefinitionAwareCodec.java:451) ~[yang-data-impl-0.6.2-SNAPSHOT.jar:na]
      at org.opendaylight.yangtools.yang.data.impl.codec.xml.XmlDocumentUtils.writeValueByType(XmlDocumentUtils.java:257) [yang-data-impl-0.6.2-SNAPSHOT.jar:na]
      at org.opendaylight.yangtools.yang.data.impl.codec.xml.XmlDocumentUtils.writeValueByType(XmlDocumentUtils.java:218) [yang-data-impl-0.6.2-SNAPSHOT.jar:na]
      at org.opendaylight.yangtools.yang.data.impl.codec.xml.XmlDocumentUtils.createXmlRootElement(XmlDocumentUtils.java:168) [yang-data-impl-0.6.2-SNAPSHOT.jar:na]
      at org.opendaylight.yangtools.yang.data.impl.codec.xml.XmlDocumentUtils.createXmlRootElement(XmlDocumentUtils.java:189) [yang-data-impl-0.6.2-SNAPSHOT.jar:na]
      at org.opendaylight.yangtools.yang.data.impl.codec.xml.XmlDocumentUtils.createXmlRootElement(XmlDocumentUtils.java:189) [yang-data-impl-0.6.2-SNAPSHOT.jar:na]
      at org.opendaylight.yangtools.yang.data.impl.codec.xml.XmlDocumentUtils.toDocument(XmlDocumentUtils.java:112) [yang-data-impl-0.6.2-SNAPSHOT.jar:na]
      at org.opendaylight.controller.sal.rest.impl.XmlMapper.write(XmlMapper.java:65) [classes/:na]
      at org.opendaylight.controller.sal.rest.impl.StructuredDataToXmlProvider.writeTo(StructuredDataToXmlProvider.java:67) [classes/:na]
      at org.opendaylight.controller.sal.rest.impl.StructuredDataToXmlProvider.writeTo(StructuredDataToXmlProvider.java:39) [classes/:na]
      at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.invokeWriteTo(WriterInterceptorExecutor.java:243) [jersey-common-2.4.jar:na]
      at org.glassfish.jersey.message.internal.WriterInterceptorExecutor$TerminalWriterInterceptor.aroundWriteTo(WriterInterceptorExecutor.java:230) [jersey-common-2.4.jar:na]
      at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:149) [jersey-common-2.4.jar:na]
      at org.glassfish.jersey.server.internal.JsonWithPaddingInterceptor.aroundWriteTo(JsonWithPaddingInterceptor.java:103) [jersey-server-2.4.jar:na]
      at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:149) [jersey-common-2.4.jar:na]
      at org.glassfish.jersey.server.internal.MappableExceptionWrapperInterceptor.aroundWriteTo(MappableExceptionWrapperInterceptor.java:88) [jersey-server-2.4.jar:na]
      at org.glassfish.jersey.message.internal.WriterInterceptorExecutor.proceed(WriterInterceptorExecutor.java:149) [jersey-common-2.4.jar:na]
      at org.glassfish.jersey.message.internal.MessageBodyFactory.writeTo(MessageBodyFactory.java:1139) [jersey-common-2.4.jar:na]
      at org.glassfish.jersey.server.ServerRuntime$Responder.writeResponse(ServerRuntime.java:557) [jersey-server-2.4.jar:na]
      at org.glassfish.jersey.server.ServerRuntime$Responder.processResponse(ServerRuntime.java:381) [jersey-server-2.4.jar:na]
      at org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:371) [jersey-server-2.4.jar:na]
      at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:262) [jersey-server-2.4.jar:na]
      at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) [jersey-common-2.4.jar:na]
      at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) [jersey-common-2.4.jar:na]
      at org.glassfish.jersey.internal.Errors.process(Errors.java:315) [jersey-common-2.4.jar:na]
      at org.glassfish.jersey.internal.Errors.process(Errors.java:297) [jersey-common-2.4.jar:na]
      at org.glassfish.jersey.internal.Errors.process(Errors.java:267) [jersey-common-2.4.jar:na]
      at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:318) [jersey-common-2.4.jar:na]
      at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:236) [jersey-server-2.4.jar:na]
      at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:983) [jersey-server-2.4.jar:na]
      at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:334) [jersey-container-grizzly2-http-2.4.jar:na]
      at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:209) [grizzly-http-server-2.3.3.jar:2.3.3]
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565) [grizzly-framework-2.3.3.jar:2.3.3]
      at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545) [grizzly-framework-2.3.3.jar:2.3.3]
      at java.lang.Thread.run(Thread.java:744) [na:1.7.0_51]

      Attachments

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

        Activity

          People

            jgloncak Jozef Gloncak
            jgloncak Jozef Gloncak
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: