Cannot construct net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a no-args co

最近在linux上安装了CruiseControl后,启动结果一直报如下错误: 

2012-04-13 23:29:36.893::WARN:  /dashboard/buildloop/listener 
com.thoughtworks.xstream.converters.ConversionException: Cannot construct net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a no-args constructor 
---- Debugging information ---- 
message             : Cannot construct net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a no-args constructor 
cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException 
cause-message       : Cannot construct net.sourceforge.cruisecontrol.BuildLoopInformation as it does not have a no-args constructor 
class               : net.sourceforge.cruisecontrol.BuildLoopInformation 
required-type       : net.sourceforge.cruisecontrol.BuildLoopInformation 
path                : /buildloop 
line number         : 1 
------------------------------- 
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:63) 
        at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:45)
        at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:46) 
        at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:117) 
        at com.thoughtworks.xstream.core.ReferenceByXPathMarshallingStrategy.unmarshal(ReferenceByXPathMarshallingStrategy.java:29)
        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:846) 
        at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:833) 
        at com.thoughtworks.xstream.XStream.fromXML(XStream.java:781) 
        at com.thoughtworks.xstream.XStream.fromXML(XStream.java:773) 

求助google也没找到好的解决方案,同样版本的CuriseControl在windows下运行正常,在linux下却一直报错。比对windows和linux下的环境,发现linux装的jdk7,而windows装的是jdk6,为此在windows下装了jdk7,此时启动CruiseControl,发现会报上面一样的错误,惊喜,马上把linux下的jdk7换成jdk6,启动CruiseControl,运行正常。 

上述错误可以通过加上参数-postenabled false来解决如: 
cruisecontrol -postenabled false 
-postenabled [true|false]  指定是否要build loop发布builds information到dashboard。默认为true。
 
--------------------------------------------------
以上类似问题与系统无关,直接原因就是jdk版本导致,jdk7都会导致以上问题的发生。


参与评论 您还未登录,请先 登录 后发表或查看评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
©️2022 CSDN 皮肤主题:大白 设计师:CSDN官方博客 返回首页
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值