Uploaded image for project: 'Configuration Persistence Service'
  1. Configuration Persistence Service
  2. CPS-927

Create cm handle from NCMP Inventory returns Server Error caused by LogFormatUtils error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Medium Medium
    • Jakarta Release
    • Jakarta Release
    • NCMP
    • None
    • Personal local environment running cps from latest master `b5a9ec3`

      Steps to reproduce:

      1. Start CPS and NCP application
      2. Send a request to create cm handles:
      curl -X POST 'http://localhost:8080/ncmpInventory/v1/ch' \
      -H 'Authorization: Basic Y3BzdXNlcjpjcHNyMGNrcyE=' \
      -H 'Content-Type: application/json' \
      -H 'Cookie: JSESSIONID=node01g3jijb3xorh9a4gb5rgxnocr0.node0' \
      --data-raw '{
          "dmiPlugin": "http://localhost:8080",
          "createdCmHandles": [
              {
                  "cmHandle": "cmHandleId1"
              },
              {
                  "cmHandle": "cmHandleId2"
              },
              {
                  "cmHandle": "cmHandleId3"
              }
          ]
      }'
      

       

      Current behaviour:

      HTTP request response code is `500 Internal Server Error` with body:

      {
          "status": "500 INTERNAL_SERVER_ERROR",
          "message": "Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: org.springframework.core.log.LogFormatUtils.formatValue(Ljava/lang/Object;IZ)Ljava/lang/String;",
          "details": "Check logs for details."
      }
      

      and server logs: error.log

      Additional note:

      3 cm handles are created and committed in fragment table before the error occurs.

       

      Expected behaviour:

      HTTP response code is 2xx success

            sourabh_sourabh Sourabh Sourabh
            brusak brusak
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: