net.sf.json.JSONException: A JSONObject text must begin with '{' at character 0 of

Jenkins JIRA | AngledLuffa | 6 years ago
  1. 0

    If something goes wrong in the middle of an update, Hudson gets stuck and never recovers without manual intervention. After a failed build / update last night, the following exception was thrown on every subsequent build. The fix was to delete the files in /var/tomcat0/.hudson/updates/* Ideally, Hudson would be able to recover from this on its own. FATAL: A JSONObject text must begin with '{' at character 0 of net.sf.json.JSONException: A JSONObject text must begin with '{' at character 0 of at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:512) at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:839) at net.sf.json.JSONObject._fromString(JSONObject.java:1060) 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:197) 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:149) at hudson.tasks.Ant$AntInstallation.forNode(Ant.java:376) at hudson.tasks.Ant.perform(Ant.java:140) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.Build$RunnerImpl.build(Build.java:174) at hudson.model.Build$RunnerImpl.doRun(Build.java:138) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1257) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:129) I have no idea which component this is actually because of.

    Jenkins JIRA | 6 years ago | AngledLuffa
    net.sf.json.JSONException: A JSONObject text must begin with '{' at character 0 of
  2. 0

    If something goes wrong in the middle of an update, Hudson gets stuck and never recovers without manual intervention. After a failed build / update last night, the following exception was thrown on every subsequent build. The fix was to delete the files in /var/tomcat0/.hudson/updates/* Ideally, Hudson would be able to recover from this on its own. FATAL: A JSONObject text must begin with '{' at character 0 of net.sf.json.JSONException: A JSONObject text must begin with '{' at character 0 of at net.sf.json.util.JSONTokener.syntaxError(JSONTokener.java:512) at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:839) at net.sf.json.JSONObject._fromString(JSONObject.java:1060) 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:197) 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:149) at hudson.tasks.Ant$AntInstallation.forNode(Ant.java:376) at hudson.tasks.Ant.perform(Ant.java:140) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601) at hudson.model.Build$RunnerImpl.build(Build.java:174) at hudson.model.Build$RunnerImpl.doRun(Build.java:138) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1257) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:129) I have no idea which component this is actually because of.

    Jenkins JIRA | 6 years ago | AngledLuffa
    net.sf.json.JSONException: A JSONObject text must begin with '{' at character 0 of
  3. 0

    Ant build step fails with JSONException on Windows slave

    Eclipse Bugzilla | 5 years ago | tobias.oberlies
    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

    [JENKINS-6350] net.sf.json.JSONException: A JSONObject text must begin with '{' at character 0 - Jenkins JIRA

    jenkins-ci.org | 6 months ago
    net.sf.json.JSONException: A JSONObject text must begin with '{' at character 0 of
  6. 0

    [JENKINS-8533] java.net net.sf.json.JSONException: - Jenkins JIRA

    jenkins-ci.org | 1 year ago
    net.sf.json.JSONException: A JSONObject text must begin with '{' at character 0 of

    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 begin with '{' at character 0 of

      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:839)
      3. net.sf.json.JSONObject._fromString(JSONObject.java:1060)
      4. net.sf.json.JSONObject.fromObject(JSONObject.java:176)
      5. net.sf.json.JSONObject.fromObject(JSONObject.java:147)
      5 frames
    3. Hudson
      Executor.run
      1. hudson.model.DownloadService$Downloadable.getData(DownloadService.java:197)
      2. hudson.tools.DownloadFromUrlInstaller$DescriptorImpl.getInstallables(DownloadFromUrlInstaller.java:149)
      3. hudson.tools.DownloadFromUrlInstaller.getInstallable(DownloadFromUrlInstaller.java:54)
      4. hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:63)
      5. hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:61)
      6. hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:99)
      7. hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:149)
      8. hudson.tasks.Ant$AntInstallation.forNode(Ant.java:376)
      9. hudson.tasks.Ant.perform(Ant.java:140)
      10. hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
      11. hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:601)
      12. hudson.model.Build$RunnerImpl.build(Build.java:174)
      13. hudson.model.Build$RunnerImpl.doRun(Build.java:138)
      14. hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
      15. hudson.model.Run.run(Run.java:1257)
      16. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
      17. hudson.model.ResourceController.execute(ResourceController.java:88)
      18. hudson.model.Executor.run(Executor.java:129)
      18 frames