我添加了一些新任务,然后在运行作业时遇到错误或更改作业配置并保存。
状态代码:500 异常:java.lang.RuntimeException:无法序列化hudson.model.AbstractProject#blockBuildWhenDownstreamBuilding为 class hudson.model.FreeStyleProject 堆栈跟踪:
javax.servlet.ServletException:java.lang.RuntimeException:无法序列化 hudson.model.AbstractProject#blockBuildWhenDownstreamBuilding for class hudson.model.FreeStyleProject 在org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:719) 在org.kohsuke.stapler.Stapler.invoke(Stapler.java:770) 在org.kohsuke.stapler.MetaClass $ 6.doDispatch(MetaClass.java:241) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) 在org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677) 在org.kohsuke.stapler.Stapler.invoke(Stapler.java:770) 在org.kohsuke.stapler.Stapler.invoke(Stapler.java:583) 在org.kohsuke.stapler.Stapler.service(Stapler.java:214) 在javax.servlet.http.HttpServlet.service(HttpServlet.java:45) 在winstone.ServletConfiguration.execute(ServletConfiguration.java:248) 在winstone.RequestDispatcher.forward(RequestDispatcher.java:333) 在winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376) 在hudson.util.PluginServletFilter $ 1.doFilter(PluginServletFilter.java:95) 在hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87) 在winstone.FilterConfiguration.execute(FilterConfiguration.java:194) 在winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) 在hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48) 在winstone.FilterConfiguration.execute(FilterConfiguration.java:194) 在winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) 在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:194) 在winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) 在org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:50) 在winstone.FilterConfiguration.execute(FilterConfiguration.java:194) 在winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) 在hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81) 在winstone.FilterConfiguration.execute(FilterConfiguration.java:194) 在winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366) 在winstone.RequestDispatcher.forward(RequestDispatcher.java:331) 在winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:227) 在winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask $ Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) 在winstone.BoundedExecutorService $ 1.run(BoundedExecutorService.java:77) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:603) 在java.lang.Thread.run(Thread.java:722) 引起:java.lang.RuntimeException:无法序列化hudson.model.AbstractProject#blockBuildWhenDownstreamBuilding为 class hudson.model.FreeStyleProject 在hudson.util.RobustReflectionConverter $ 2.writeField(RobustReflectionConverter.java:208) 在hudson.util.RobustReflectionConverter $ 2.visit(RobustReflectionConverter.java:176) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:135) 在hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:161) 在hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:102) 在com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) 在com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) 在com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) 在com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82) 在com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37) 在com.thoughtworks.xstream.XStream.marshal(XStream.java:898) 在com.thoughtworks.xstream.XStream.marshal(XStream.java:887) 在com.thoughtworks.xstream.XStream.toXML(XStream.java:860) 在hudson.XmlFile.write(XmlFile.java:183) 在hudson.model.AbstractItem.save(AbstractItem.java:473) 在hudson.model.Job.save(Job.java:154) 在hudson.model.AbstractProject.save(AbstractProject.java:273) 在hudson.model.AbstractProject.makeDisabled(AbstractProject.java:679) 在hudson.model.AbstractProject.doDisable(AbstractProject.java:2038) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 在java.lang.reflect.Method.invoke(Method.java:601) at org.kohsuke.stapler.Function $ InstanceFunction.invoke(Function.java:288) at org.kohsuke.stapler.interceptor.RequirePOST $ Processor.invoke(RequirePOST.java:29) 在org.kohsuke.stapler.Function $ InterceptedFunction.invoke(Function.java:389) 在org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151) 在org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90) 在org.kohsuke.stapler.MetaClass $ 1.doDispatch(MetaClass.java:111) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53) 在org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:677) ......还有39个 引起:com.thoughtworks.xstream.io.StreamException ::设备上没有剩余空间 在com.thoughtworks.xstream.core.util.QuickWriter.flush(QuickWriter.java:77) 在com.thoughtworks.xstream.core.util.QuickWriter.write(QuickWriter.java:37) 在com.thoughtworks.xstream.io.xml.PrettyPrintWriter.endNode(PrettyPrintWriter.java:313) 在com.thoughtworks.xstream.io.WriterWrapper.endNode(WriterWrapper.java:37) 在com.thoughtworks.xstream.io.path.PathTrackingWriter.endNode(PathTrackingWriter.java:48) 在hudson.util.RobustReflectionConverter $ 2.writeField(RobustReflectionConverter.java:205) ......还有69个 引起:java.io.IOException:设备上没有剩余空间 at java.io.FileOutputStream.writeBytes(Native Method) 在java.io.FileOutputStream.write(FileOutputStream.java:318) at sun.nio.cs.StreamEncoder.writeBytes(StreamEncoder.java:221) at sun.nio.cs.StreamEncoder.implFlushBuffer(StreamEncoder.java:291) at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:295) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141) 在java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) 在java.io.BufferedWriter.flush(BufferedWriter.java:254) 在hudson.util.AtomicFileWriter.flush(AtomicFileWriter.java:90) 在com.thoughtworks.xstream.core.util.QuickWriter.flush(QuickWriter.java:75) ... 74更多
答案 0 :(得分:6)
原因:磁盘已满,
解决方案:删除了一些不需要的文件夹,不仅来自.jenkins文件夹,父文件夹中的任何位置或文件系统中的任何位置。