Hubson异常net.sf.json.JSONException解决
2013-09-12 16:13
316 查看
查看异常堆栈貌似跟项目配置和代码没有任何关系,google搜貌似是hudson的bug。找了半天没找到官方解决办法。
于是采用比较旁门左道的解决方案:
http://blog.progs.be/133/hudson-builds-suddenly-fail-due-to-a-bug-in-the-code
"For some reason this is caused by the $HUDSON_HOME/updates/hudson.tasks.Maven.MavenInstaller
file which was empty.
Putting “{}” (an empty JSON object) in there allowed builds to work again."
找HUDSON_HOME找了半天,后来全盘搜才找到,原来hudson启动是会自动建立 ".hudson"文件夹
tomcat中会有提示信息
INFO: Home directory: /root/.hudson
在里面能找到一个文件hudson.tasks.Maven.MavenInstaller
vi 编辑,添加{}
重新运行hudson,问题暂时解决了。
于是采用比较旁门左道的解决方案:
http://blog.progs.be/133/hudson-builds-suddenly-fail-due-to-a-bug-in-the-code
"For some reason this is caused by the $HUDSON_HOME/updates/hudson.tasks.Maven.MavenInstaller
file which was empty.
Putting “{}” (an empty JSON object) in there allowed builds to work again."
找HUDSON_HOME找了半天,后来全盘搜才找到,原来hudson启动是会自动建立 ".hudson"文件夹
tomcat中会有提示信息
INFO: Home directory: /root/.hudson
在里面能找到一个文件hudson.tasks.Maven.MavenInstaller
vi 编辑,添加{}
重新运行hudson,问题暂时解决了。
ERROR: Processing failed due to a bug in the code. Please report this to dev@hudson.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:499) at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:972) at net.sf.json.JSONObject._fromString(JSONObject.java:1201) at net.sf.json.JSONObject.fromObject(JSONObject.java:165) at net.sf.json.JSONObject.fromObject(JSONObject.java:134) at hudson.model.DownloadService$Downloadable.getData(DownloadService.java:195) at hudson.tools.DownloadFromUrlInstaller$DescriptorImpl.getInstallables(DownloadFromUrlInstaller.java:177) at hudson.tools.DownloadFromUrlInstaller.getInstallable(DownloadFromUrlInstaller.java:76) at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:87) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:54) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:99) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:137) at hudson.tasks.Maven$MavenInstallation.forNode(Maven.java:510) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:503) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:434) at hudson.model.Run.run(Run.java:1390) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:414) at hudson.model.ResourceController.execute(ResourceController.java:82) at hudson.model.Executor.run(Executor.java:137) project=MavenModuleSet[xxx] project.getModules()=[] project.getRootModule()=null 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:499) at net.sf.json.JSONObject._fromJSONTokener(JSONObject.java:972) at net.sf.json.JSONObject._fromString(JSONObject.java:1201) at net.sf.json.JSONObject.fromObject(JSONObject.java:165) at net.sf.json.JSONObject.fromObject(JSONObject.java:134) at hudson.model.DownloadService$Downloadable.getData(DownloadService.java:195) at hudson.tools.DownloadFromUrlInstaller$DescriptorImpl.getInstallables(DownloadFromUrlInstaller.java:177) at hudson.tools.DownloadFromUrlInstaller.getInstallable(DownloadFromUrlInstaller.java:76) at hudson.tools.DownloadFromUrlInstaller.performInstallation(DownloadFromUrlInstaller.java:87) at hudson.tools.InstallerTranslator.getToolHome(InstallerTranslator.java:54) at hudson.tools.ToolLocationNodeProperty.getToolHome(ToolLocationNodeProperty.java:99) at hudson.tools.ToolInstallation.translateFor(ToolInstallation.java:137) at hudson.tasks.Maven$MavenInstallation.forNode(Maven.java:510) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:503) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:434) at hudson.model.Run.run(Run.java:1390) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:414) at hudson.model.ResourceController.execute(ResourceController.java:82) at hudson.model.Executor.run(Executor.java:137)
相关文章推荐
- XP下网络连接提示受限制的解决方法
- (转载)使用 TRY/CATCH 语句解决 SQL Server 2005 死锁
- E770装不上RSD的解决方法!
- 问题:无法打开文件"LIBC.lib" 解决
- 用联想惠盾工具盘成功解决忘记联想惠盾硬盘保护系统的密码的问题
- ArcSDE安装问题解决方法
- hsqldb入门(有解决hsqldb缓存问题方案)
- fedora10 和 winxp双系统的时间不一致的解决
- 编译Mysql时configure: error: No curses/termcap library found 的错误解决方法
- 解决vs2008生成的程序安装文件需要安装.net framework 3.5的问题
- 解决跨平台系统的工程文件方案(MPC)
- 编译错误__sync_bool_compare_and_swap_4的解决
- wamp下安装pear(wamp go-pear.bat 出错解决方法)
- ASP.Net服务器应用程序不可用的解决方法
- The constructor BASE64Encoder() is not accessible due to restriction on required library的解决方法,经过测试正确
- VS2005向导工具脚本错误解决方法
- sql server 2008建域时提示admin密码不符合要求解决方法
- xmind打不开解决方法
- 用Perl解决一道高中数学题
- sql server 2000无法安装终极解决办法