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

MessageBodyWriter not found for OperationOutputBody

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: High High
    • 7.0.5
    • None
    • restconf-nb

      After https://git.opendaylight.org/gerrit/c/netconf/+/111339 changes, requesting for subscribe notification

      curl 'http://localhost:8181/rests/operations/odl-device-notification:subscribe-device-notification' \
      --header 'Accept: application/json' \
      --header 'Content-Type: application/json' \
      --header 'Authorization: Basic YWRtaW46YWRtaW4=' \
      --data '{
        "input": {
           "path":"/network-topology:network-topology/topology[topology-id='\''topology-netconf'\'']/node[node-id='\''netopeer'\'']"
        }
      }'
      

      fails with

      {
          "servlet": "org.glassfish.jersey.servlet.ServletContainer",
          "message": "Internal Server Error",
          "url": "/rests/operations/odl-device-notification:subscribe-device-notification",
          "status": "500"
      }
      

      and logs:

       09:38:23.823 ERROR [CommitFutures-1] MessageBodyWriter not found for media type=application/json, type=class org.opendaylight.restconf.server.spi.OperationOutputBody, genericType=class org.opendaylight.restconf.server.spi.OperationOutputBody.
      

            rovarga Robert Varga
            yaroslav.lastivka Yaroslav Lastivka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: