java.lang.ClassCastException: org.opendaylight.yang.gen.v1.urn.opendaylight.ping.rev130911.SendEchoOutput$EchoResult cannot be cast to java.lang.String

opendaylight.org | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Ping - OpenDaylight Project

    opendaylight.org | 8 months ago
    java.lang.ClassCastException: org.opendaylight.yang.gen.v1.urn.opendaylight.ping.rev130911.SendEchoOutput$EchoResult cannot be cast to java.lang.String

    Root Cause Analysis

    1. java.lang.ClassCastException

      org.opendaylight.yang.gen.v1.urn.opendaylight.ping.rev130911.SendEchoOutput$EchoResult cannot be cast to java.lang.String

      at org.opendaylight.yangtools.yang.data.impl.codec.TypeDefinitionAwareCodec$EnumCodecStringImpl.serialize()
    2. org.opendaylight.yangtools
      TypeDefinitionAwareCodec$EnumCodecStringImpl.serialize
      1. org.opendaylight.yangtools.yang.data.impl.codec.TypeDefinitionAwareCodec$EnumCodecStringImpl.serialize(TypeDefinitionAwareCodec.java:512)[bundlefile:na]
      1 frame
    3. org.opendaylight.controller
      StructuredDataToJsonProvider.writeTo
      1. org.opendaylight.controller.sal.restconf.impl.RestCodec$ObjectCodec.serialize(RestCodec.java:141)[bundlefile:na]
      2. org.opendaylight.controller.sal.rest.impl.JsonMapper.writeValueOfNodeByType(JsonMapper.java:240)[bundlefile:na]
      3. org.opendaylight.controller.sal.rest.impl.JsonMapper.writeLeaf(JsonMapper.java:193)[bundlefile:na]
      4. org.opendaylight.controller.sal.rest.impl.JsonMapper.writeChildrenOfParent(JsonMapper.java:118)[bundlefile:na]
      5. org.opendaylight.controller.sal.rest.impl.JsonMapper.writeContainer(JsonMapper.java:154)[bundlefile:na]
      6. org.opendaylight.controller.sal.rest.impl.JsonMapper.write(JsonMapper.java:70)[bundlefile:na]
      7. org.opendaylight.controller.sal.rest.impl.StructuredDataToJsonProvider.writeTo(StructuredDataToJsonProvider.java:61)[bundlefile:na]
      8. org.opendaylight.controller.sal.rest.impl.StructuredDataToJsonProvider.writeTo(StructuredDataToJsonProvider.java:33)[bundlefile:na]
      8 frames
    4. Jersey
      WebApplicationImpl.handleRequest
      1. com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)[jersey-server-1.17.jar:1.17]
      2. com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1479)[jersey-server-1.17.jar:1.17]
      3. com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)[jersey-server-1.17.jar:1.17]
      3 frames