今天试图升级詹金斯。它不再开始了。
即使我尝试删除其目录,它也会干净地重新创建它,但随后会跟随日志崩溃。
[#|2013-04-24T07:24:49.849+0200|INFO|glassfish3.1.2|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=106;_ThreadName=Thread-2;|jenkins was successfully deployed in 3,800 milliseconds.|#]
[#|2013-04-24T07:24:50.100+0200|INFO|glassfish3.1.2|jenkins.InitReactorRunner|_ThreadID=152;_ThreadName=Thread-2;|Listed all plugins|#]
[#|2013-04-24T07:24:50.100+0200|SEVERE|glassfish3.1.2|jenkins.InitReactorRunner|_ThreadID=152;_ThreadName=Thread-2;|Failed Loading plugins
java.lang.NullPointerException
at hudson.PluginManager$2$1.run(PluginManager.java:324)
at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
at jenkins.model.Jenkins$7.runTask(Jenkins.java:888)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
|#]
[#|2013-04-24T07:24:50.102+0200|SEVERE|glassfish3.1.2|hudson.WebAppMain|_ThreadID=143;_ThreadName=Thread-2;|Failed to initialize Jenkins
org.jvnet.hudson.reactor.ReactorException: java.lang.NullPointerException
at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)
at jenkins.InitReactorRunner.run(InitReactorRunner.java:43)
at jenkins.model.Jenkins.executeReactor(Jenkins.java:899)
at jenkins.model.Jenkins.<init>(Jenkins.java:801)
at hudson.model.Hudson.<init>(Hudson.java:81)
at hudson.model.Hudson.<init>(Hudson.java:77)
at hudson.WebAppMain$2.run(WebAppMain.java:214)
Caused by: java.lang.NullPointerException
at hudson.PluginManager$2$1.run(PluginManager.java:324)
at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
at jenkins.model.Jenkins$7.runTask(Jenkins.java:888)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
|#]
Glassfish 3.1.2.2上的Jenkins 1.512
编辑:版本1.421有效。版本1.422失败。即使在擦除jenkins目录之后,这也是一致的。
答案 0 :(得分:2)
找到了这个,我有2个虚拟服务器:
https://gist.github.com/andrewg4153/3693577
如果您有一个包含多个虚拟服务器的Glassfish域,您将会这样做 在部署Jenkins CI Web时,请尝试全部选择它们 应用。作为Jenkins核心代码,这是一件坏事 包含单例类: http://sorcerer.jenkins-ci.org/source-view.html?jenkins/model/Jenkins.js#678 执行此操作时,您将在日志中获得以下内容: java.lang.IllegalStateException:第二个实例at jenkins.model.Jenkins。(Jenkins.java:744)at hudson.model.Hudson。(Hudson.java:81)at hudson.model.Hudson。(Hudson.java:77)at hudson.WebAppMain $ 2.run(WebAppMain.java:217)刚刚部署到其中一个 虚拟服务器,一切都会好的。
我部署了其中一个,现在可以使用了!
嗯,我想这是修复的错误......
答案 1 :(得分:1)
根据您提供的堆栈跟踪:可能有一些缺少的插件Task Scanner Plugin或其依赖项正在破坏您的Jenkins实例?
Caused by: java.lang.NullPointerException
at hudson.PluginManager$2$1.run(PluginManager.java:324)
at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
答案 2 :(得分:0)
Jenkins版本1.422有启动问题。 1.423应该修复它。我的建议是清理安装1.423,看看是否能解决问题。如果是,请尝试从那里升级。