Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-67

Getting flow config data in json format causes exception

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: Linux
      Platform: Other

    • 258

    Description

      ... and no data is displayed. The exception is as follows

      type Exception report

      message

      description The server encountered an internal error that prevented it from fulfilling this request.

      exception

      java.lang.NullPointerException
      com.google.common.base.Joiner.join(Joiner.java:230)
      org.opendaylight.yangtools.yang.data.impl.codec.TypeDefinitionAwareCodec$BitsCodecStringImpl.serialize(TypeDefinitionAwareCodec.java:368)
      org.opendaylight.yangtools.yang.data.impl.codec.TypeDefinitionAwareCodec$BitsCodecStringImpl.serialize(TypeDefinitionAwareCodec.java:358)
      org.opendaylight.controller.sal.restconf.impl.RestCodec$ObjectCodec.serialize(RestCodec.java:75)
      org.opendaylight.controller.sal.rest.impl.JsonMapper.writeValueOfNodeByType(JsonMapper.java:207)
      org.opendaylight.controller.sal.rest.impl.JsonMapper.writeLeaf(JsonMapper.java:179)
      org.opendaylight.controller.sal.rest.impl.JsonMapper.writeChildrenOfParent(JsonMapper.java:104)
      org.opendaylight.controller.sal.rest.impl.JsonMapper.writeList(JsonMapper.java:153)
      org.opendaylight.controller.sal.rest.impl.JsonMapper.writeChildrenOfParent(JsonMapper.java:92)
      org.opendaylight.controller.sal.rest.impl.JsonMapper.writeList(JsonMapper.java:158)
      org.opendaylight.controller.sal.rest.impl.JsonMapper.write(JsonMapper.java:58)
      org.opendaylight.controller.sal.rest.impl.StructuredDataToJsonProvider.writeTo(StructuredDataToJsonProvider.java:55)
      org.opendaylight.controller.sal.rest.impl.StructuredDataToJsonProvider.writeTo(StructuredDataToJsonProvider.java:27)
      com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:306)
      com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1479)
      com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1391)
      com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1381)
      com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
      com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538)
      com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
      org.apache.catalina.filters.CorsFilter.handleNonCORS(CorsFilter.java:440)
      org.apache.catalina.filters.CorsFilter.doFilter(CorsFilter.java:179)
      note The full stack trace of the root cause is available in the Apache Tomcat/7.0.32 logs.

      This is for a previously configured flow. the URL to get the flow is, for example:
      http://192.168.4.192:8080/restconf/config/opendaylight-inventory:nodes/node/openflow:1/table/0/

      Accept header is 'application/json'

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            jmedved@cisco.com Jan Medved
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: