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.
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)