0

我在 Ubuntu 12.04 中安装了 Jenkins,我将端口更改为 8888。

root@kandabap-ThinkCentre-M91p:/etc/default# dpkg -l | grep jenkins
ii  jenkins                                1.518                                   Continuous integration system written in Java

root@kandabap-ThinkCentre-M91p:/etc/default# java -version
java version "1.5.0"
gij (GNU libgcj) version 4.6.3

当我启动 Jenkins 时,它会保持活动状态一段时间然后死掉。

日志显示,

 18/06/2013 4:08:39 p.m. winstone.Logger logInternal  
    SEVERE: Error during context startup for webapp webapp
    java.lang.ExceptionInInitializerError
    at java.lang.Class.initializeClass(libgcj.so.12)
   at hudson.WebAppMain.installLogger(WebAppMain.java:253)
   at hudson.WebAppMain.contextInitialized(WebAppMain.java:104)
   at winstone.WebAppConfiguration.<init>(WebAppConfiguration.java:876)
   at winstone.HostConfiguration.initWebApp(HostConfiguration.java:129)
   at winstone.HostConfiguration.<init>(HostConfiguration.java:71)
   at winstone.HostGroup.initHost(HostGroup.java:87)
   at winstone.HostGroup.<init>(HostGroup.java:47)
   at winstone.Launcher.<init>(Launcher.java:177)
   at winstone.Launcher.main(Launcher.java:384)
   at java.lang.reflect.Method.invoke(libgcj.so.12)
   at Main._main(Main.java:288)
   at Main.main(Main.java:98) 
   Caused by: java.lang.NullPointerException
   at com.thoughtworks.xstream.core.JVM.isOpenJDK(JVM.java:128)
   at com.thoughtworks.xstream.core.JVM.canUseSun14ReflectionProvider(JVM.java:279)
   at com.thoughtworks.xstream.core.JVM.bestReflectionProvider(JVM.java:254)
   at com.thoughtworks.xstream.XStream.<init>(XStream.java:438)
   at com.thoughtworks.xstream.XStream.<init>(XStream.java:381)
   at com.thoughtworks.xstream.XStream.<init>(XStream.java:336)

期待专家帮助让詹金斯在我的机器上启动并运行。谢谢你。

4

1 回答 1

1

SEVERE 相同:无法初始化 JenkinsSEVERE 相同:我认为

“根据最初的反应,这是使用'gcj'引起的。解决方案是使用OpenJDK或Oracle JDK。”

于 2013-06-18T06:57:15.643 回答