jenkinsci / jenkinsci/workflow-multibranch-plugin

[JENKINS-57966] Multibranch Pipeline Indexing fails with ClassCastException in svn

Open
#505 5 comments 0 reactions 0 assignees View on GitHub
component:workflow-multibranch-plugin imported-jira-issue pipeline priority:critical resolution:unresolved
Dominant language
Java
Stars
87
Forks
131
PR merge metrics
No merged PRs in 30d

Description

When I was indexing my jobs today I got an ClassCastException, the result of this mistake is hat my MultiBranch Pipeline job cannot find any branches and therefore the folder stays empty. This is a critical issue for me. I would appreciate any help. Here is my error message:

ERROR: [Tue Jun 11 18:16:54 CEST 2019] Could not fetch branches from source 78aad773-0322-49fb-99da-95df2966fe5b

java.lang.ClassCastException: [[J cannot be cast to org.mapdb.BTreeMap$BNode
at org.mapdb.BTreeMap.put2(BTreeMap.java:663)
at org.mapdb.BTreeMap.put(BTreeMap.java:643)
at org.mapdb.DB.catPut(DB.java:105)
at org.mapdb.DB.createHashMap(DB.java:443)
at org.mapdb.DB$HTreeMapMaker.make(DB.java:216)
at org.mapdb.DB.getHashMap(DB.java:356)
at org.mapdb.DB.getHashMap(DB.java:329)
at jenkins.scm.impl.subversion.SVNRepositoryView.(SVNRepositoryView.java:115)
at jenkins.scm.impl.subversion.SubversionSCMSource.openSession(SubversionSCMSource.java:336)
at jenkins.scm.impl.subversion.SubversionSCMSource.retrieve(SubversionSCMSource.java:240)
at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:373)
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:283)
at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:634)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:277)
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:164)
at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1025)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
[Tue Jun 11 18:16:54 CEST 2019] Finished branch indexing. Indexing took 74 ms
FATAL: Failed to recompute children of truemdmBuildReports » test
java.lang.ClassCastException: [[J cannot be cast to org.mapdb.BTreeMap$BNode
at org.mapdb.BTreeMap.put2(BTreeMap.java:663)
at org.mapdb.BTreeMap.put(BTreeMap.java:643)
at org.mapdb.DB.catPut(DB.java:105)
at org.mapdb.DB.createHashMap(DB.java:443)
at org.mapdb.DB$HTreeMapMaker.make(DB.java:216)
at org.mapdb.DB.getHashMap(DB.java:356)
at org.mapdb.DB.getHashMap(DB.java:329)
at jenkins.scm.impl.subversion.SVNRepositoryView.(SVNRepositoryView.java:115)
at jenkins.scm.impl.subversion.SubversionSCMSource.openSession(SubversionSCMSource.java:336)
at jenkins.scm.impl.subversion.SubversionSCMSource.retrieve(SubversionSCMSource.java:240)
at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:373)
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:283)
at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:634)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:277)
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:164)
at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1025)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE

---
Originally reported by daniel_the_builder, imported from: Multibranch Pipeline Indexing fails with ClassCastException in svn


  • assignee: rsandell
  • status: Open
  • priority: Critical
  • component(s): workflow-multibranch-plugin
  • label(s): branch, multibranch, pipeline
  • resolution: Unresolved
  • votes: 1
  • watchers: 4
  • imported: 20251212-090250

Raw content of original issue

When I was indexing my jobs today I got an ClassCastException, the result of this mistake is hat my MultiBranch Pipeline job cannot find any branches and therefore the folder stays empty. This is a critical issue for me. I would appreciate any help. Here is my error message:



ERROR: [Tue Jun 11 18:16:54 CEST 2019] Could not fetch branches from source 78aad773-0322-49fb-99da-95df2966fe5b

java.lang.ClassCastException: [[J cannot be cast to org.mapdb.BTreeMap$BNode
at org.mapdb.BTreeMap.put2(BTreeMap.java:663)
at org.mapdb.BTreeMap.put(BTreeMap.java:643)
at org.mapdb.DB.catPut(DB.java:105)
at org.mapdb.DB.createHashMap(DB.java:443)
at org.mapdb.DB$HTreeMapMaker.make(DB.java:216)
at org.mapdb.DB.getHashMap(DB.java:356)
at org.mapdb.DB.getHashMap(DB.java:329)
at jenkins.scm.impl.subversion.SVNRepositoryView.<init>(SVNRepositoryView.java:115)
at jenkins.scm.impl.subversion.SubversionSCMSource.openSession(SubversionSCMSource.java:336)
at jenkins.scm.impl.subversion.SubversionSCMSource.retrieve(SubversionSCMSource.java:240)
at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:373)
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:283)
at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:634)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:277)
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:164)
at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1025)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
[Tue Jun 11 18:16:54 CEST 2019] Finished branch indexing. Indexing took 74 ms
FATAL: Failed to recompute children of truemdmBuildReports » test
java.lang.ClassCastException: [[J cannot be cast to org.mapdb.BTreeMap$BNode
at org.mapdb.BTreeMap.put2(BTreeMap.java:663)
at org.mapdb.BTreeMap.put(BTreeMap.java:643)
at org.mapdb.DB.catPut(DB.java:105)
at org.mapdb.DB.createHashMap(DB.java:443)
at org.mapdb.DB$HTreeMapMaker.make(DB.java:216)
at org.mapdb.DB.getHashMap(DB.java:356)
at org.mapdb.DB.getHashMap(DB.java:329)
at jenkins.scm.impl.subversion.SVNRepositoryView.<init>(SVNRepositoryView.java:115)
at jenkins.scm.impl.subversion.SubversionSCMSource.openSession(SubversionSCMSource.java:336)
at jenkins.scm.impl.subversion.SubversionSCMSource.retrieve(SubversionSCMSource.java:240)
at jenkins.scm.api.SCMSource._retrieve(SCMSource.java:373)
at jenkins.scm.api.SCMSource.fetch(SCMSource.java:283)
at jenkins.branch.MultiBranchProject.computeChildren(MultiBranchProject.java:634)
at com.cloudbees.hudson.plugins.folder.computed.ComputedFolder.updateChildren(ComputedFolder.java:277)
at com.cloudbees.hudson.plugins.folder.computed.FolderComputation.run(FolderComputation.java:164)
at jenkins.branch.MultiBranchProject$BranchIndexing.run(MultiBranchProject.java:1025)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE

environment

```
Jenkins is running on a RHEL 7

Jenkins Version is 2.180
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.