Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-8533

java.net net.sf.json.JSONException:

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Cannot Reproduce
    • Component/s: maven-plugin
    • Labels:
      None
    • Environment:
      Ubuntu 10.10
      Git
      Maven 2
      Glassfish

      Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
      Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode)

      Description

      A Maven2 build failed because it couldn't parse a JSON object. I have no clue what's causing this bug. In order to get more information and full logs visit the link included.

      Update:
      The problem is caused by an empty file in HUDSON_HOME/updates.

      Possible workaround:
      Inspect HUDSON_HOME/updates and look for empty files. If you find any delete them. After this everything should be working again.

        Activity

        Hide
        evernat evernat added a comment -

        The server is currently Hudson 1.396 and the console output shows:

        ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net
        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:196)
        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.Maven$MavenInstallation.forNode(Maven.java:503)
        at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:380)
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416)
        at hudson.model.Run.run(Run.java:1280)
        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:293)
        at hudson.model.ResourceController.execute(ResourceController.java:88)
        at hudson.model.Executor.run(Executor.java:139)

        Show
        evernat evernat added a comment - The server is currently Hudson 1.396 and the console output shows: ERROR: Processing failed due to a bug in the code. Please report this to users@hudson.dev.java.net 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:196) 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.Maven$MavenInstallation.forNode(Maven.java:503) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:380) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:416) at hudson.model.Run.run(Run.java:1280) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:293) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:139)
        Hide
        evernat evernat added a comment -

        I suggest that this was caused by the need to download a version of Maven
        and by some temporary issues with the Hudson servers,
        for example when the community paid servers were migrated to Jenkins.

        Show
        evernat evernat added a comment - I suggest that this was caused by the need to download a version of Maven and by some temporary issues with the Hudson servers, for example when the community paid servers were migrated to Jenkins.
        Hide
        kutzi kutzi added a comment -

        Please reopen, if it happens again

        Show
        kutzi kutzi added a comment - Please reopen, if it happens again

          People

          • Assignee:
            Unassigned
            Reporter:
            jimmyax JimmyAx
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: