哈德逊误差中 Rcov 的配置 Rmetrics
当我尝试保存运行代码覆盖率测试并配置为发布 rcov 报告的作业时,我收到下面列出的错误消息,并且我所做的更改未保存。这个问题在 Hudson 1.362 版本中出现,并且在 1.363 版本中也存在。如果我取消选中“发布覆盖率报告”复选框,则可以保存作业。
状态代码:500 例外: 堆栈跟踪:
java.lang.InstantiationError:hudson.plugins.rubyMetrics.rcov.model.MetricTarget 在 org.kohsuke.stapler.RequestImpl.bindParametersToList(RequestImpl.java:271) 在 hudson.plugins.rubyMetrics.rcov.RcovPublisher$DescriptorImpl.newInstance(RcovPublisher.java:143) 在 hudson.plugins.rubyMetrics.rcov.RcovPublisher$DescriptorImpl.newInstance(RcovPublisher.java:104) 在 hudson.util.DesribableList.rebuild(DesribableList.java:147) 在 hudson.model.Project.submit(Project.java:198) 在 hudson.model.FreeStyleProject.submit(FreeStyleProject.java:97) 在 hudson.model.Job.doConfigSubmit(Job.java:1050) 在 hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:555) 在 sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法) 在 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 在 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在 java.lang.reflect.Method.invoke(Method.java:597) 在 org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:235) 在 org.kohsuke.stapler.Function.bindAndInvoke(Function.java:116) 在 org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:57) 在 org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:75) 在 org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) 在 org.kohsuke.stapler.Stapler.invoke(Stapler.java:525) 在 org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:181) 在 org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) 在 org.kohsuke.stapler.Stapler.invoke(Stapler.java:525) 在 org.kohsuke.stapler.Stapler.invoke(Stapler.java:441) 在 org.kohsuke.stapler.Stapler.service(Stapler.java:123) 在 javax.servlet.http.HttpServlet.service(HttpServlet.java:45) 在 winstone.ServletConfiguration.execute(ServletConfiguration.java:249) 在 winstone.RequestDispatcher.forward(RequestDispatcher.java:335) 在 winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) 在 hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94) 在 hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86) 在 winstone.FilterConfiguration.execute(FilterConfiguration.java:195) 在 winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) 在 hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47) 在 winstone.FilterConfiguration.execute(FilterConfiguration.java:195) 在 winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) 在 hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) 在 hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76) 在 hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164) 在 winstone.FilterConfiguration.execute(FilterConfiguration.java:195) 在 winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) 在 winstone.RequestDispatcher.forward(RequestDispatcher.java:333) 在 winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) 在 winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) 在 java.lang.Thread.run(Thread.java:619)
有人有好的解决方案吗?谢谢。
When I attempt to save a job that runs code coverage tests and is configured to publish an rcov report I get the error message listed below and the changes I made aren't saved. This problem cropped up with Hudson version 1.362 and exists in 1.363. If I uncheck the "Publish coverage report" checkbox the job can be saved.
Status Code: 500
Exception:
Stacktrace:
java.lang.InstantiationError: hudson.plugins.rubyMetrics.rcov.model.MetricTarget
at org.kohsuke.stapler.RequestImpl.bindParametersToList(RequestImpl.java:271)
at hudson.plugins.rubyMetrics.rcov.RcovPublisher$DescriptorImpl.newInstance(RcovPublisher.java:143)
at hudson.plugins.rubyMetrics.rcov.RcovPublisher$DescriptorImpl.newInstance(RcovPublisher.java:104)
at hudson.util.DescribableList.rebuild(DescribableList.java:147)
at hudson.model.Project.submit(Project.java:198)
at hudson.model.FreeStyleProject.submit(FreeStyleProject.java:97)
at hudson.model.Job.doConfigSubmit(Job.java:1050)
at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:555)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:235)
at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:116)
at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:57)
at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:75)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:525)
at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:181)
at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:525)
at org.kohsuke.stapler.Stapler.invoke(Stapler.java:441)
at org.kohsuke.stapler.Stapler.service(Stapler.java:123)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
at winstone.ServletConfiguration.execute(ServletConfiguration.java:249)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:335)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
at winstone.FilterConfiguration.execute(FilterConfiguration.java:195)
at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368)
at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244)
at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150)
at java.lang.Thread.run(Thread.java:619)
Does anyone have a good solution? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅 Hudson Bugreport 6808
See Hudson Bugreport 6808