net.sf.json.JSONException: JSONObject["result"] is not a Boolean.

Jenkins JIRA | Zach McNeilly | 7 months ago
  1. 0

    When we use the saltstack-plugin to run "state.highstate" with "test=true" as the only KWArgument if there are any changes that would've been run we get the following output: {noformat} [EnvInject] - Loading node environment variables. Building remotely on <host> in workspace <workspace> Running jid: 20160502104957249184 Waiting for 4 minions 0 minions are done Will check status every 10 seconds... ERROR: Build step failed with exception net.sf.json.JSONException: JSONObject["result"] is not a Boolean. at net.sf.json.JSONObject.getBoolean(JSONObject.java:1929) at com.waytta.Utils.validateInnerJsonObject(Utils.java:208) at com.waytta.Utils.validateInnerJsonObject(Utils.java:215) at com.waytta.Utils.validateFunctionCall(Utils.java:178) at com.waytta.SaltAPIBuilder.perform(SaltAPIBuilder.java:377) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Build step 'Send a message to Salt API' marked build as failure Notifying upstream projects of job completion Finished: FAILURE {noformat} If there is an error with any state on any minion then this will return correctly. If there are no changes on any state on any minion it will also return correctly. It's only if there are changes that would be applied that we see this information.

    Jenkins JIRA | 7 months ago | Zach McNeilly
    net.sf.json.JSONException: JSONObject["result"] is not a Boolean.
  2. 0

    [JENKINS-34535] net.sf.json.JSONException: JSONObject["result"] is not a Boolean - Jenkins JIRA

    jenkins-ci.org | 4 months ago
    net.sf.json.JSONException: JSONObject["result"] is not a Boolean.
  3. 0

    When we use the saltstack-plugin to run "state.highstate" with "test=true" as the only KWArgument if there are any changes that would've been run we get the following output: {noformat} [EnvInject] - Loading node environment variables. Building remotely on <host> in workspace <workspace> Running jid: 20160502104957249184 Waiting for 4 minions 0 minions are done Will check status every 10 seconds... ERROR: Build step failed with exception net.sf.json.JSONException: JSONObject["result"] is not a Boolean. at net.sf.json.JSONObject.getBoolean(JSONObject.java:1929) at com.waytta.Utils.validateInnerJsonObject(Utils.java:208) at com.waytta.Utils.validateInnerJsonObject(Utils.java:215) at com.waytta.Utils.validateFunctionCall(Utils.java:178) at com.waytta.SaltAPIBuilder.perform(SaltAPIBuilder.java:377) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785) at hudson.model.Build$BuildExecution.build(Build.java:205) at hudson.model.Build$BuildExecution.doRun(Build.java:162) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Build step 'Send a message to Salt API' marked build as failure Notifying upstream projects of job completion Finished: FAILURE {noformat} If there is an error with any state on any minion then this will return correctly. If there are no changes on any state on any minion it will also return correctly. It's only if there are changes that would be applied that we see this information.

    Jenkins JIRA | 7 months ago | Zach McNeilly
    net.sf.json.JSONException: JSONObject["result"] is not a Boolean.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    test=True kwarg fails to return output to build console log

    GitHub | 8 months ago | tyhunt99
    net.sf.json.JSONException: JSONObject["result"] is not a Boolean.
  6. 0

    [JIRA] [saltstack-plugin] (JENKINS-34535) net.sf.json.JSONException: JSONObject["result"] is not a Boolean

    Google Groups | 7 months ago | zmcn...@rez1.com (JIRA)
    net.sf.json.JSONException: JSONObject[&quot;result&quot;] is not a Boolean.

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. net.sf.json.JSONException

      JSONObject["result"] is not a Boolean.

      at net.sf.json.JSONObject.getBoolean()
    2. json-lib
      JSONObject.getBoolean
      1. net.sf.json.JSONObject.getBoolean(JSONObject.java:1929)
      1 frame
    3. com.waytta
      SaltAPIBuilder.perform
      1. com.waytta.Utils.validateInnerJsonObject(Utils.java:208)
      2. com.waytta.Utils.validateInnerJsonObject(Utils.java:215)
      3. com.waytta.Utils.validateFunctionCall(Utils.java:178)
      4. com.waytta.SaltAPIBuilder.perform(SaltAPIBuilder.java:377)
      4 frames
    4. Hudson
      Executor.run
      1. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:785)
      3. hudson.model.Build$BuildExecution.build(Build.java:205)
      4. hudson.model.Build$BuildExecution.doRun(Build.java:162)
      5. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537)
      6. hudson.model.Run.execute(Run.java:1741)
      7. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      8. hudson.model.ResourceController.execute(ResourceController.java:98)
      9. hudson.model.Executor.run(Executor.java:410)
      9 frames