Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-69874

Jenkins unable to clear cache due to class cast exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • jenkins-leiningen
    • None

      Jenkins is failing to clear cache and throwing below exception:

      2022-10-17 09:38:57.877+0000 [id=5035]  WARNING o.j.p.w.cps.CpsFlowExecution#cleanUpHeap: failed to clean up memory from Owner[msbob.keycloak.crd.gerrit/1021:msbob.keycloak.crd.gerrit #1021]
      java.lang.ClassCastException: class java.io.ObjectStreamClass$Caches$1 cannot be cast to class java.util.concurrent.ConcurrentMap (java.io.ObjectStreamClass$Caches$1 and java.util.concurrent.ConcurrentMap are in module java.base of loader 'bootstrap')
              at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.cleanUpObjectStreamClassCaches(CpsFlowExecution.java:1426)
              at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.cleanUpLoader(CpsFlowExecution.java:1321)
              at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.cleanUpLoader(CpsFlowExecution.java:1300)
              at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.cleanUpLoader(CpsFlowExecution.java:1310)
              at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.cleanUpHeap(CpsFlowExecution.java:1287)
              at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:446)
              at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:96)
              at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:314)
              at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:278)
              at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67)
              at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
              at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
              at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:30)
              at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:70)
              at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
              at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
              at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
              at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
              at java.base/java.lang.Thread.run(Thread.java:829) 

            Unassigned Unassigned
            shivatp Shiva Prasad Thagadur Prakash
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: