org.swift.common.cli.CliClient$ClientException: 0 notifications removed from plan. 1 not removed.

JIRA | Mark Wilkinson | 1 year 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

    When running the removeNotification action against a preconfigured plan I got the following error message :- Notification with id 94864086 not removed. Reason: Resource does not exist. Response code: 404. Use -v to see more details. Client error: 0 notifications removed from plan. 1 not removed. on running the command again with the -v option, it appears that the final request is missing the /chain part of the URL cli/bamboo.sh --action removeNotification --plan PLAN --id -1 -v Server address: https://bamboo.xxxxxxxxx Response code: 200, message: OK, url: https://bamboo.xxxxxxxxx/rest/org.swift.bamboo.cli/latest/validatelicense? URL requested: https://bamboo.xxxxxxxxx/rest/api/latest/plan/PLAN? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://bamboo.xxxxxxxxxrest/api/latest/plan/PLAN? URL requested: https://bamboo.xxxxxxxxx/rest/api/latest/plan/PLAN? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://bamboo.xxxxxxxxx/rest/api/latest/plan/PLAN? URL requested: https://bamboo.xxxxxxxxx/chain/admin/config/defaultChainNotification.action?&buildKey=PLAN Request type: GET Content type: text/html Response code: 200, message: OK, url: https://bamboo.xxxxxxxxx/chain/admin/config/defaultChainNotification.action?&buildKey=PLAN URL requested: https://bamboo.xxxxxxxxx/rest/api/latest/plan/PLAN? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://bamboo.xxxxxxxxx/rest/api/latest/plan/PLAN? URL requested: https://bamboo.xxxxxxxxx/rest/api/latest/plan/PLAN? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://bamboo.xxxxxxxxx/rest/api/latest/plan/PLAN? URL requested: https://bamboo.xxxxxxxxx/chain/admin/config/defaultChainNotification.action?&buildKey=PLAN Request type: GET Content type: text/html Response code: 200, message: OK, url: https://bamboo.xxxxxxxxx/chain/admin/config/defaultChainNotification.action?&buildKey=PLAN URL requested: https://bamboo.xxxxxxxxx/admin/config/deleteChainNotification.action?&buildKey=PLAN&notificationId=94864086 Request type: POST Content type: text/html Post data: Response code: 404, message: Not Found, url: https://bamboo.xxxxxxxxx/admin/config/deleteChainNotification.action?&buildKey=PLAN&notificationId=94864086 Problem determination - response: 404: Not Found Problem determination - response url: https://bamboo.xxxxxxxxx/admin/config/deleteChainNotification.action?&buildKey=PLAN&notificationId=94864086 Problem determination - request url: https://bamboo.xxxxxxxxx/admin/config/deleteChainNotification.action?&buildKey=PLAN&notificationId=94864086 Notification with id 94864086 not removed. Reason: Resource does not exist. Response code: 404. Use -v to see more details. Client error: 0 notifications removed from plan. 1 not removed. org.swift.common.cli.CliClient$ClientException: 0 notifications removed from plan. 1 not removed. at org.swift.bamboo.cli.helpers.NotificationHelper.removeNotification(NotificationHelper.java:323) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:728) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:441) at org.swift.common.cli.CliClient.doWork(CliClient.java:454) at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:253)

    JIRA | 1 year ago | Mark Wilkinson
    org.swift.common.cli.CliClient$ClientException: 0 notifications removed from plan. 1 not removed.
  2. 0

    When running the removeNotification action against a preconfigured plan I got the following error message :- Notification with id 94864086 not removed. Reason: Resource does not exist. Response code: 404. Use -v to see more details. Client error: 0 notifications removed from plan. 1 not removed. on running the command again with the -v option, it appears that the final request is missing the /chain part of the URL cli/bamboo.sh --action removeNotification --plan PLAN --id -1 -v Server address: https://bamboo.xxxxxxxxx Response code: 200, message: OK, url: https://bamboo.xxxxxxxxx/rest/org.swift.bamboo.cli/latest/validatelicense? URL requested: https://bamboo.xxxxxxxxx/rest/api/latest/plan/PLAN? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://bamboo.xxxxxxxxxrest/api/latest/plan/PLAN? URL requested: https://bamboo.xxxxxxxxx/rest/api/latest/plan/PLAN? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://bamboo.xxxxxxxxx/rest/api/latest/plan/PLAN? URL requested: https://bamboo.xxxxxxxxx/chain/admin/config/defaultChainNotification.action?&buildKey=PLAN Request type: GET Content type: text/html Response code: 200, message: OK, url: https://bamboo.xxxxxxxxx/chain/admin/config/defaultChainNotification.action?&buildKey=PLAN URL requested: https://bamboo.xxxxxxxxx/rest/api/latest/plan/PLAN? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://bamboo.xxxxxxxxx/rest/api/latest/plan/PLAN? URL requested: https://bamboo.xxxxxxxxx/rest/api/latest/plan/PLAN? Request type: GET Content type: application/json Response code: 200, message: OK, url: https://bamboo.xxxxxxxxx/rest/api/latest/plan/PLAN? URL requested: https://bamboo.xxxxxxxxx/chain/admin/config/defaultChainNotification.action?&buildKey=PLAN Request type: GET Content type: text/html Response code: 200, message: OK, url: https://bamboo.xxxxxxxxx/chain/admin/config/defaultChainNotification.action?&buildKey=PLAN URL requested: https://bamboo.xxxxxxxxx/admin/config/deleteChainNotification.action?&buildKey=PLAN&notificationId=94864086 Request type: POST Content type: text/html Post data: Response code: 404, message: Not Found, url: https://bamboo.xxxxxxxxx/admin/config/deleteChainNotification.action?&buildKey=PLAN&notificationId=94864086 Problem determination - response: 404: Not Found Problem determination - response url: https://bamboo.xxxxxxxxx/admin/config/deleteChainNotification.action?&buildKey=PLAN&notificationId=94864086 Problem determination - request url: https://bamboo.xxxxxxxxx/admin/config/deleteChainNotification.action?&buildKey=PLAN&notificationId=94864086 Notification with id 94864086 not removed. Reason: Resource does not exist. Response code: 404. Use -v to see more details. Client error: 0 notifications removed from plan. 1 not removed. org.swift.common.cli.CliClient$ClientException: 0 notifications removed from plan. 1 not removed. at org.swift.bamboo.cli.helpers.NotificationHelper.removeNotification(NotificationHelper.java:323) at org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:728) at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:441) at org.swift.common.cli.CliClient.doWork(CliClient.java:454) at org.swift.bamboo.cli.BambooClient.main(BambooClient.java:253)

    JIRA | 1 year ago | Mark Wilkinson
    org.swift.common.cli.CliClient$ClientException: 0 notifications removed from plan. 1 not removed.

    Root Cause Analysis

    1. org.swift.common.cli.CliClient$ClientException

      0 notifications removed from plan. 1 not removed.

      at org.swift.bamboo.cli.helpers.NotificationHelper.removeNotification()
    2. org.swift.bamboo
      BambooClient.handleRequest
      1. org.swift.bamboo.cli.helpers.NotificationHelper.removeNotification(NotificationHelper.java:323)
      2. org.swift.bamboo.cli.BambooClient.handleRequest(BambooClient.java:728)
      2 frames
    3. org.swift.common
      CliClient.doWork
      1. org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:441)
      2. org.swift.common.cli.CliClient.doWork(CliClient.java:454)
      2 frames
    4. org.swift.bamboo
      BambooClient.main
      1. org.swift.bamboo.cli.BambooClient.main(BambooClient.java:253)
      1 frame