捕获异常评估:h.advertiseHeaders(响应)

时间:2015-08-19 17:05:03

标签: java jenkins

我在Jenkins中收到以下错误:

Aug 18, 2015 3:34:06 PM hudson.ExpressionFactory2$JexlExpression evaluate
WARNING: Caught exception evaluating: h.advertiseHeaders(response) in /adjuncts/2804cc2f/lib/layout/breadcrumbs.js. Reason: java.lang.NullPointerException
java.lang.NullPointerException
        at hudson.Functions.advertiseHeaders(Functions.java:1848)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.commons.jexl.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:258)
        at org.apache.commons.jexl.parser.ASTMethod.execute(ASTMethod.java:104)
        at org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:83)
        at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:57)
        at org.apache.commons.jexl.parser.ASTReferenceExpression.value(ASTReferenceExpression.java:51)
        at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:80)
        at hudson.ExpressionFactory2$JexlExpression.evaluate(ExpressionFactory2.java:74)
        at org.apache.commons.jelly.parser.EscapingExpression.evaluate(EscapingExpression.java:24)
        at org.apache.commons.jelly.impl.ExpressionScript.run(ExpressionScript.java:66)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.tags.core.CoreTagLibrary$1.run(CoreTagLibrary.java:98)
        at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95)
        at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
        at org.kohsuke.stapler.jelly.CallTagLibScript.run(CallTagLibScript.java:119)
        at org.apache.commons.jelly.tags.core.CoreTagLibrary$2.run(CoreTagLibrary.java:105)
        at org.kohsuke.stapler.jelly.JellyViewScript.run(JellyViewScript.java:81)
        at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:63)
        at org.kohsuke.stapler.jelly.DefaultScriptInvoker.invokeScript(DefaultScriptInvoker.java:53)
        at org.kohsuke.stapler.jelly.JellyRequestDispatcher.forward(JellyRequestDispatcher.java:55)
        at hudson.util.ErrorObject.doDynamic(ErrorObject.java:41)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:297)
        at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:160)
        at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:95)
        at org.kohsuke.stapler.MetaClass$11.dispatch(MetaClass.java:361)
        at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:685)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:799)
        at org.kohsuke.stapler.Stapler.invoke(Stapler.java:587)
        at org.kohsuke.stapler.Stapler.service(Stapler.java:218)

Jenkins在RHEL,Java 7,版本1.598上。我很困惑,因为我正在尝试将在生产环境中工作的配置移植到另一台基本上是相同配置的服务器上。

更新#1

加载Jenkins时的另一个错误。我的配置将usesSecurity设置为false,使用LDAP,managerPassword不为null或为空。

org.jvnet.hudson.reactor.ReactorException: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'initialDirContextFactory': Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateException; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.MethodInvocationException: Property 'managerPassword' threw exception; nested exception is java.lang.IllegalArgumentException: Manager password must not be empty or null.
    at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)
    at jenkins.InitReactorRunner.run(InitReactorRunner.java:43)
    at jenkins.model.Jenkins.executeReactor(Jenkins.java:906)
    at jenkins.model.Jenkins.<init>(Jenkins.java:806)
    at hudson.model.Hudson.<init>(Hudson.java:81)
    at hudson.model.Hudson.<init>(Hudson.java:77)
    at hudson.WebAppMain$3.run(WebAppMain.java:221)

更新#2

Jenkins版本实际上是1.529。

1 个答案:

答案 0 :(得分:0)

1.529 上安装 1.598 并重新启动。