上传项目图片:“Jenkins Artifactory Plug-in”
  1. Jenkins Artifactory插件
  2. hap - 1236

rtcollectissue抛出NotSerializableException

    XML 可打印的

    细节

    • 类型: 错误
    • 状态: Resolved
      A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">解决
    • 解决方法: 完成
    • 影响版本/ s: 3.4.0
    • 修复版本/ s: 3.4.1
    • 组件/ s: 没有一个
    • 标签:
      没有一个

      描述

      通过Jenkins Artifactory插件在我的Jenkins管道脚本中添加rtcollectissue会抛出NotSerializableException。stacktrace如下:

      java.io.NotSerializableException: org.jfrog.hudson.pipeline.common.executors.CollectIssuesExecutor
      java.io.ObjectOutputStream.writeObject0 (ObjectOutputStream.java: 1184)
      java.io.ObjectOutputStream.defaultWriteFields (ObjectOutputStream.java: 1548)
      java.io.ObjectOutputStream.writeSerialData (ObjectOutputStream.java: 1509)
      java.io.ObjectOutputStream.writeOrdinaryObject (ObjectOutputStream.java: 1432)
      java.io.ObjectOutputStream.writeObject0 (ObjectOutputStream.java: 1178)
      java.io.ObjectOutputStream.defaultWriteFields (ObjectOutputStream.java: 1548)
      java.io.ObjectOutputStream.writeSerialData (ObjectOutputStream.java: 1509)
      java.io.ObjectOutputStream.writeOrdinaryObject (ObjectOutputStream.java: 1432)
      java.io.ObjectOutputStream.writeObject0 (ObjectOutputStream.java: 1178)
      java.io.ObjectOutputStream.writeObject (ObjectOutputStream.java: 348)
      hudson.remoting.UserRequest._serialize (UserRequest.java: 263)
      hudson.remoting.UserRequest.serialize (UserRequest.java: 272)
      在hudson.remoting.UserRequest。< init > (UserRequest.java: 101)
      hudson.remoting.Channel.call (Channel.java: 953)
      hudson.FilePath.act (FilePath.java: 1071)
      hudson.FilePath.act (FilePath.java: 1060)
      在org.jfrog.hudson.pipeline.common.executors.CollectIssuesExecutor.execute (CollectIssuesExecutor.java: 47)
      org.jfrog.hudson.pipeline.declarative.steps.CollectIssuesStep Execution.run美元(CollectIssuesStep.java: 90)
      org.jfrog.hudson.pipeline.declarative.steps.CollectIssuesStep Execution.run美元(CollectIssuesStep.java: 57)
      在org.jenkinsci.plugins.workflow.steps.AbstractSynchronousStepExecution.start (AbstractSynchronousStepExecution.java: 42)
      org.jenkinsci.plugins.workflow.cps.DSL.invokeStep (DSL.java: 286)
      org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod (DSL.java: 179)
      org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod (CpsScript.java: 122)
      在sun.reflect.GeneratedMethodAccessor1761。调用(未知源)
      sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java: 43)
      java.lang.reflect.Method.invoke (Method.java: 498)
      org.codehaus.groovy.reflection.CachedMethod.invoke (CachedMethod.java: 93)
      groovy.lang.MetaMethod.doMethodInvoke (MetaMethod.java: 325)
      groovy.lang.MetaClassImpl.invokeMethod (MetaClassImpl.java: 1213)
      groovy.lang.MetaClassImpl.invokeMethod (MetaClassImpl.java: 1022)
      在org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call (PogoMetaClassSite.java: 42)
      在org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall (CallSiteArray.java: 48)
      org.codehaus.groovy.runtime.callsite.AbstractCallSite.call (AbstractCallSite.java: 113)
      在org.kohsuke.groovy.sandbox.impl.Checker 1.美元调用(Checker.java: 160)
      在org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall (GroovyInterceptor.java: 23)
      org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall (SandboxInterceptor.java: 157)
      在org.kohsuke.groovy.sandbox.impl.Checker 1.美元调用(Checker.java: 158)
      org.kohsuke.groovy.sandbox.impl.Checker.checkedCall (Checker.java: 162)
      org.kohsuke.groovy.sandbox.impl.Checker.checkedCall (Checker.java: 132)
      在com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall (SandboxInvoker.java: 17)
      原因:java.io.IOException:无法序列化org.jfrog.hudson.pipeline.common.executors.CollectIssuesExecutor$1@4c468747
      hudson.remoting.UserRequest.serialize (UserRequest.java: 274)
      在hudson.remoting.UserRequest。< init > (UserRequest.java: 101)
      hudson.remoting.Channel.call (Channel.java: 953)
      hudson.FilePath.act (FilePath.java: 1071)
      hudson.FilePath.act (FilePath.java: 1060)
      在org.jfrog.hudson.pipeline.common.executors.CollectIssuesExecutor.execute (CollectIssuesExecutor.java: 47)
      org.jfrog.hudson.pipeline.declarative.steps.CollectIssuesStep Execution.run美元(CollectIssuesStep.java: 90)
      org.jfrog.hudson.pipeline.declarative.steps.CollectIssuesStep Execution.run美元(CollectIssuesStep.java: 57)
      在org.jenkinsci.plugins.workflow.steps.AbstractSynchronousStepExecution.start (AbstractSynchronousStepExecution.java: 42)
      org.jenkinsci.plugins.workflow.cps.DSL.invokeStep (DSL.java: 286)
      org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod (DSL.java: 179)
      org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod (CpsScript.java: 122)
      在sun.reflect.GeneratedMethodAccessor1761。调用(未知源)
      sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java: 43)
      java.lang.reflect.Method.invoke (Method.java: 498)
      org.codehaus.groovy.reflection.CachedMethod.invoke (CachedMethod.java: 93)
      groovy.lang.MetaMethod.doMethodInvoke (MetaMethod.java: 325)
      groovy.lang.MetaClassImpl.invokeMethod (MetaClassImpl.java: 1213)
      groovy.lang.MetaClassImpl.invokeMethod (MetaClassImpl.java: 1022)
      在org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call (PogoMetaClassSite.java: 42)
      在org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall (CallSiteArray.java: 48)
      org.codehaus.groovy.runtime.callsite.AbstractCallSite.call (AbstractCallSite.java: 113)
      在org.kohsuke.groovy.sandbox.impl.Checker 1.美元调用(Checker.java: 160)
      在org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall (GroovyInterceptor.java: 23)
      org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall (SandboxInterceptor.java: 157)
      在org.kohsuke.groovy.sandbox.impl.Checker 1.美元调用(Checker.java: 158)
      org.kohsuke.groovy.sandbox.impl.Checker.checkedCall (Checker.java: 162)
      org.kohsuke.groovy.sandbox.impl.Checker.checkedCall (Checker.java: 132)
      在com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall (SandboxInvoker.java: 17)
      WorkflowScript.run (WorkflowScript: 63)
      org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.delegateAndExecute (ModelInterpreter.groovy: 138)
      org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.executeSingleStage (ModelInterpreter.groovy: 684)
      org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.catchRequiredContextForNode (ModelInterpreter.groovy: 418)
      org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.catchRequiredContextForNode (ModelInterpreter.groovy: 416)
      org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.executeSingleStage (ModelInterpreter.groovy: 682)
      org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.evaluateStage (ModelInterpreter.groovy: 281)
      org.jenkinsci.plugins.pipeline.modeldefinition.ModelInterpreter.toolsBlock (ModelInterpreter.groovy: 562)
      在__cps.transform__(本地方法)
      com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall (ContinuationGroup.java: 84)
      com.cloudbees.groovy.cps.impl.FunctionCallBlock ContinuationImpl.dispatchOrArg美元(FunctionCallBlock.java: 113)
      com.cloudbees.groovy.cps.impl.FunctionCallBlock ContinuationImpl.fixArg美元(FunctionCallBlock.java: 83)
      在sun.reflect.GeneratedMethodAccessor428。调用(未知源)
      sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java: 43)
      java.lang.reflect.Method.invoke (Method.java: 498)
      com.cloudbees.groovy.cps.impl.ContinuationPtr ContinuationImpl.receive美元(ContinuationPtr.java: 72)
      在com.cloudbees.groovy.cps.impl.CollectionLiteralBlock ContinuationImpl.dispatch美元(CollectionLiteralBlock.java: 55)
      com.cloudbees.groovy.cps.impl.CollectionLiteralBlock ContinuationImpl.item美元(CollectionLiteralBlock.java: 45)
      在sun.reflect.GeneratedMethodAccessor429。调用(未知源)
      sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java: 43)
      java.lang.reflect.Method.invoke (Method.java: 498)
      com.cloudbees.groovy.cps.impl.ContinuationPtr ContinuationImpl.receive美元(ContinuationPtr.java: 72)
      com.cloudbees.groovy.cps.impl.LocalVariableBlock LocalVariable.get美元(LocalVariableBlock.java: 39)
      com.cloudbees.groovy.cps.LValueBlock GetAdapter.receive美元(LValueBlock.java: 30)
      在com.cloudbees.groovy.cps.impl.LocalVariableBlock.evalLValue (LocalVariableBlock.java: 28)
      在com.cloudbees.groovy.cps.LValueBlock BlockImpl.eval美元(LValueBlock.java: 55)
      在com.cloudbees.groovy.cps.LValueBlock.eval (LValueBlock.java: 16)
      com.cloudbees.groovy.cps.Next.step (Next.java: 83)
      在com.cloudbees.groovy.cps.Continuable 1.美元调用(Continuable.java: 174)
      在com.cloudbees.groovy.cps.Continuable 1.美元调用(Continuable.java: 163)
      org.codehaus.groovy.runtime.GroovyCategorySupport ThreadCategoryInfo.use美元(GroovyCategorySupport.java: 129)
      org.codehaus.groovy.runtime.GroovyCategorySupport.use (GroovyCategorySupport.java: 268)
      com.cloudbees.groovy.cps.Continuable.run0 (Continuable.java: 163)
      org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access 001美元(SandboxContinuable.java: 18)
      在org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0 (SandboxContinuable.java: 51)
      org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk (CpsThread.java: 186)
      org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run (CpsThreadGroup.java: 370)
      org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access 200美元(CpsThreadGroup.java: 93)
      在org.jenkinsci.plugins.workflow.cps.CpsThreadGroup 2.美元调用(CpsThreadGroup.java: 282)
      在org.jenkinsci.plugins.workflow.cps.CpsThreadGroup 2.美元调用(CpsThreadGroup.java: 270)
      在org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService 2.美元调用(CpsVmExecutorService.java: 66)
      java.util.concurrent.FutureTask.run (FutureTask.java: 266)
      在hudson.remoting.SingleLaneExecutorService 1.美元运行(SingleLaneExecutorService.java: 131)
      在1.美元jenkins.util.ContextResettingExecutorService运行(ContextResettingExecutorService.java: 28)
      在jenkins.security.ImpersonatingExecutorService 1.美元运行(ImpersonatingExecutorService.java: 59)
      java.util.concurrent.Executors RunnableAdapter.call美元(Executors.java: 511)
      java.util.concurrent.FutureTask.run (FutureTask.java: 266)
      java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java: 1149)
      java.util.concurrent.ThreadPoolExecutor Worker.run美元(ThreadPoolExecutor.java: 624)
      java.lang.Thread.run (Thread.java: 748)
      完成:失败

        附件

          活动

            受让人:
            罗宾Robi Nino [X](非活动)
            记者:
            pradyunmanojPradyun Manoj(不活跃)
            投票:
            0 为这个问题投票
            观察人士:
            3. 开始关注这个问题

              日期

              创建:
              更新:
              解决: