自从升级到Hudson 3.2.0后,在按下“Schedule Maven Release”按钮时使用Hudson Maven Release Plugin(0.10.0-h-1)时出现以下错误页面:
javax.servlet.ServletException: java.lang.NoSuchMethodError: hudson.model.Hudson.getAuthentication()Lorg/springframework/security/Authentication;
org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:607)
org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)
org.kohsuke.stapler.MetaClass$12.dispatch(MetaClass.java:365)
org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)
org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)
org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:225)
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)
org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)
org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)
org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:225)
org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:45)
org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:565)
org.kohsuke.stapler.Stapler.invoke(Stapler.java:650)
org.kohsuke.stapler.Stapler.invoke(Stapler.java:481)
org.kohsuke.stapler.Stapler.service(Stapler.java:152)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:86)
org.hudsonci.servlets.internal.ServletRegistrationFilterAdapter.doFilter(ServletRegistrationFilterAdapter.java:162)
org.hudsonci.servlets.internal.ServletRegistrationFilterAdapter.doFilter(ServletRegistrationFilterAdapter.java:134)
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:89)
org.hudsonci.servlets.internal.ServletRegistrationFilterAdapter.doFilter(ServletRegistrationFilterAdapter.java:162)
org.hudsonci.servlets.internal.ServletRegistrationFilterAdapter.doFilter(ServletRegistrationFilterAdapter.java:134)
hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:89)
hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:78)
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:81)
hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:47)
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146)
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:73)
hudson.security.HudsonFilter.doFilter(HudsonFilter.java:156)
hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:70)
有解决办法吗?
答案 0 :(得分:0)
该错误似乎是通过Hudson 3.2.1和发布插件的新版本0.10.0-h-2修复的。