net.sf.json.JSONException

'object' is an array. Use JSONArray instead

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web79

Stack trace

  • net.sf.json.JSONException: 'object' is an array. Use JSONArray instead at net.sf.json.JSONObject.fromObject(JSONObject.java:167) at net.sf.json.JSONObject.fromObject(JSONObject.java:132) at com.waytta.Utils.validateFunctionCall(Utils.java:151) at com.waytta.SaltAPIBuilder.perform(SaltAPIBuilder.java:378) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) 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:534) at hudson.model.Run.execute(Run.java:1720) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:404)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Unknown visitor
Unknown visitorOnce,