net.sf.json.JSONException: A JSONObject text must end with '}' at character 352 of {"list": [{"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.zip", "name": "1.7.1", "id": "1.7.1"}, {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.0-bin.zip", "name": "1.7.0", "id": "1.7.0"}, {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip", "name": "1.6.5", "id": "1.6.5"}, {

Jenkins JIRA | pingus | 7 years 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

    After updating to Hudson 1.334 I got an JSONException running an Ant task on a Windows Server 2003 slave. (Hudson is installed as a service). Console output is: FATAL: A JSONObject text must end with '}' at character 352 of {"list": [{"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.zip", "name": "1.7.1", "id": "1.7.1"}, {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.0-bin.zip", "name": "1.7.0", "id": "1.7.0"}, {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip", "name": "1.6.5", "id": "1.6.5"}, { net.sf.json.JSONException: A JSONObject text must end with '}' at character 352 of {"list": [{"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.zip", "name": "1.7.1", "id": "1.7.1"}, {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.0-bin.zip", "name": "1.7.0", "id": "1.7.0"}, {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip", "name": "1.6.5", "id": "1.6.5"}, { at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:512) at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:828) at net.sf.json.JSONObject.fromObject(JSONObject.java:170) at net.sf.json.util.JSONTokener.nextValue(JSONTokener.java:355) at net.sf.json.JSONArray._fromJSONTokener(JSONArray.java:917) at net.sf.json.JSONArray.fromObject(JSONArray.java:139) at net.sf.json.util.JSONTokener.nextValue(JSONTokener.java:358) at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:850) at net.sf.json.JSONObject._fromString(JSONObject.java:1039) at net.sf.json.JSONObject.fromObject(JSONObject.java:176) at net.sf.json.JSONObject.fromObject(JSONObject.java:147) at hudson.model.DownloadService$Downloadable.getData(DownloadService.java:194) at hudson.tools.DownloadFromUrlInstaller$DescriptorImpl.getInstallables(DownloadFromUrlInstaller.java:149) at hudson.tools.DownloadFromUrlInstaller.getInstallable(DownloadFromUrlInstaller.java:54) at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:63) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:99) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:155) at hudson.tasks.Ant$AntInstallation.forNode(Ant.java:385) at hudson.tasks.Ant.perform(Ant.java:138) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:516) at hudson.model.Build$RunnerImpl.build(Build.java:194) at hudson.model.Build$RunnerImpl.doRun(Build.java:133) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:383) at hudson.model.Run.run(Run.java:1176) at hudson.matrix.MatrixRun.run(MatrixRun.java:130) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123) Any idea how to solve this? Thanks Pingus

    Jenkins JIRA | 7 years ago | pingus
    net.sf.json.JSONException: A JSONObject text must end with '}' at character 352 of {"list": [{"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.zip", "name": "1.7.1", "id": "1.7.1"}, {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.0-bin.zip", "name": "1.7.0", "id": "1.7.0"}, {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip", "name": "1.6.5", "id": "1.6.5"}, {
  2. 0

    After updating to Hudson 1.334 I got an JSONException running an Ant task on a Windows Server 2003 slave. (Hudson is installed as a service). Console output is: FATAL: A JSONObject text must end with '}' at character 352 of {"list": [{"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.zip", "name": "1.7.1", "id": "1.7.1"}, {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.0-bin.zip", "name": "1.7.0", "id": "1.7.0"}, {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip", "name": "1.6.5", "id": "1.6.5"}, { net.sf.json.JSONException: A JSONObject text must end with '}' at character 352 of {"list": [{"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.zip", "name": "1.7.1", "id": "1.7.1"}, {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.0-bin.zip", "name": "1.7.0", "id": "1.7.0"}, {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip", "name": "1.6.5", "id": "1.6.5"}, { at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:512) at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:828) at net.sf.json.JSONObject.fromObject(JSONObject.java:170) at net.sf.json.util.JSONTokener.nextValue(JSONTokener.java:355) at net.sf.json.JSONArray._fromJSONTokener(JSONArray.java:917) at net.sf.json.JSONArray.fromObject(JSONArray.java:139) at net.sf.json.util.JSONTokener.nextValue(JSONTokener.java:358) at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:850) at net.sf.json.JSONObject._fromString(JSONObject.java:1039) at net.sf.json.JSONObject.fromObject(JSONObject.java:176) at net.sf.json.JSONObject.fromObject(JSONObject.java:147) at hudson.model.DownloadService$Downloadable.getData(DownloadService.java:194) at hudson.tools.DownloadFromUrlInstaller$DescriptorImpl.getInstallables(DownloadFromUrlInstaller.java:149) at hudson.tools.DownloadFromUrlInstaller.getInstallable(DownloadFromUrlInstaller.java:54) at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:63) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:99) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:155) at hudson.tasks.Ant$AntInstallation.forNode(Ant.java:385) at hudson.tasks.Ant.perform(Ant.java:138) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:516) at hudson.model.Build$RunnerImpl.build(Build.java:194) at hudson.model.Build$RunnerImpl.doRun(Build.java:133) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:383) at hudson.model.Run.run(Run.java:1176) at hudson.matrix.MatrixRun.run(MatrixRun.java:130) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:123) Any idea how to solve this? Thanks Pingus

    Jenkins JIRA | 7 years ago | pingus
    net.sf.json.JSONException: A JSONObject text must end with '}' at character 352 of {"list": [{"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.zip", "name": "1.7.1", "id": "1.7.1"}, {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.0-bin.zip", "name": "1.7.0", "id": "1.7.0"}, {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip", "name": "1.6.5", "id": "1.6.5"}, {
  3. 0

    Hudson builds suddenly fail, “due to a bug in the code” « trying to solve IT problems

    progs.be | 1 year ago
    net.sf.json.JSONException: A JSONObject text must begin with '{' at character 0 of
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Find root cause of "net.sf.json.JSONException: JSON does not allow non-finite numbers"

    Stack Overflow | 5 years ago | user1083319
    net.sf.json.JSONException: JSON does not allow non-finite numbers
  6. 0

    Escape for net.sf.json.JSONObject

    Stack Overflow | 4 years ago | Michel Miola
    net.sf.json.JSONException: Expected a ',' or '}' at character net.sf.json.JSONException: Expected a ',' or '}' at character 31 of {gA:[ {c:{f:'C#',o:'=',v1:' ('true' = 'true' ) ' }}]}

    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

      A JSONObject text must end with '}' at character 352 of {"list": [{"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.1-bin.zip", "name": "1.7.1", "id": "1.7.1"}, {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.0-bin.zip", "name": "1.7.0", "id": "1.7.0"}, {"url": "http://archive.apache.org/dist/ant/binaries/apache-ant-1.6.5-bin.zip", "name": "1.6.5", "id": "1.6.5"}, {

      at net.sf.json.util.JSONTokener.syntaxError()
    2. json-lib
      JSONObject.fromObject
      1. net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:512)
      2. net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:828)
      3. net.sf.json.JSONObject.fromObject(JSONObject.java:170)
      4. net.sf.json.util.JSONTokener.nextValue(JSONTokener.java:355)
      5. net.sf.json.JSONArray._fromJSONTokener(JSONArray.java:917)
      6. net.sf.json.JSONArray.fromObject(JSONArray.java:139)
      7. net.sf.json.util.JSONTokener.nextValue(JSONTokener.java:358)
      8. net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:850)
      9. net.sf.json.JSONObject._fromString(JSONObject.java:1039)
      10. net.sf.json.JSONObject.fromObject(JSONObject.java:176)
      11. net.sf.json.JSONObject.fromObject(JSONObject.java:147)
      11 frames
    3. Hudson
      DownloadService$Downloadable.getData
      1. hudson.model.DownloadService$Downloadable.getData(DownloadService.java:194)
      1 frame