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

java.lang.ClassCastException: hudson.plugins.git.browser.GitLab.version expects class java.lang.String but received class java.lang.Double

    XMLWordPrintable

Details

    • git client plugin 3.0.0

    Description

      After upgrading jira-plugin from 2.5.0 to 2.5.1, I'm seeing the error messages below in jenkins.log. After downgrading jira-plugin to 2.5.0 again, no such exceptions are logged to jenkins.log. No other plugins were upgraded simultaneously.

      Exception seems to be related to gitlab plugin, but since it started to occur after upgrading jira-plugin (and not doing any other upgrades/config changes), I'm creating this issue with component "jira-plugin" .

      [...]
      
       java.lang.ClassCastException: hudson.plugins.git.browser.GitLab.version expects class java.lang.String but received class java.lang.Double
              at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:264)
              at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate2(DescribableModel.java:550)
              at org.jenkinsci.plugins.workflow.actions.ArgumentsAction.resolve(ArgumentsAction.java:304)
              at org.jenkinsci.plugins.workflow.actions.ArgumentsAction.getResolvedArguments(ArgumentsAction.java:291)
              at org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode.getDelegateType(StepAtomNode.java:134)
              at org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode.effectiveDisplayName(StepAtomNode.java:90)
              at org.jenkinsci.plugins.workflow.cps.nodes.StepAtomNode.getTypeDisplayName(StepAtomNode.java:102)
              at org.jenkinsci.plugins.workflow.graph.FlowNode.getDisplayName(FlowNode.java:254)
              at com.cloudbees.workflow.rest.external.FlowNodeExt.addBasicNodeData(FlowNodeExt.java:194)
              at com.cloudbees.workflow.rest.external.AtomFlowNodeExt.create(AtomFlowNodeExt.java:70)
              at com.cloudbees.workflow.rest.external.ChunkVisitor.makeAtomNode(ChunkVisitor.java:68)
              at com.cloudbees.workflow.rest.external.ChunkVisitor.atomNode(ChunkVisitor.java:154)
              at org.jenkinsci.plugins.workflow.graphanalysis.ForkScanner.fireVisitChunkCallbacks(ForkScanner.java:751)
              at org.jenkinsci.plugins.workflow.graphanalysis.ForkScanner.visitSimpleChunks(ForkScanner.java:769)
              at org.jenkinsci.plugins.workflow.graphanalysis.ForkScanner.visitSimpleChunks(ForkScanner.java:633)
              at com.cloudbees.workflow.rest.external.RunExt.createNew(RunExt.java:321)
              at com.cloudbees.workflow.rest.external.RunExt.create(RunExt.java:309)
              at com.cloudbees.workflow.rest.external.JobExt.create(JobExt.java:131)
              at com.cloudbees.workflow.rest.endpoints.JobAPI.doRuns(JobAPI.java:69)
              at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
              at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343)
              at com.cloudbees.workflow.util.ServeJson$Processor.invoke(ServeJson.java:30)
              at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26)
              at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184)
              at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117)
              at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:129)
              at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
              at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
              at org.kohsuke.stapler.MetaClass$10.dispatch(MetaClass.java:374)
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
              at org.kohsuke.stapler.Stapler.invoke(Stapler.java:845)
              at org.kohsuke.stapler.MetaClass$5.doDispatch(MetaClass.java:248)
              at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
              at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:715)
      
      [...]
      
         at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
              at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
              at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
              at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
              at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
              at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
              at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67)
              at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
              at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90)
              at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
              at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
              at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
              at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)
              at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)
              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
              at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:524)
              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)
              at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)
              at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)
              at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)
              at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)
              at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)
              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
              at org.eclipse.jetty.server.Server.handle(Server.java:564)
              at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:317)
              at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
              at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)
              at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)
              at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)
              at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128)
              at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)
              at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)
              at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:199)
              at winstone.BoundedExecutorService$1.run(BoundedExecutorService.java:77)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.IllegalArgumentException: Could not instantiate {issueSelector=$DefaultIssueSelector(), labels=[], scm=$GitSCM(branches=[(name=master)],browser=$GitLab(repoUrl=https://git.
      mycompany.com/gitlabgroup/gitproject/,version=8.15),doGenerateSubmoduleConfigurations=false,extensions=[GitSCMSourceDefaults{includeTags=false}, $BuildChooserSetting(buildChooser=jenkins.plugins.git.Abstract
      GitSCMSource$SpecificRevisionBuildChooser@34ad35ea)],submoduleCfg=[],userRemoteConfigs=[(credentialsId=d4f2cdce-AND-MORE-ASCII-CHARS-f8c227245022,name=origin,refspec=+refs/heads/*:refs/remotes/origin
      /*,url=git@git.mycompany.com:gitlabgroup/gitproject.git)])} for JiraIssueUpdater(issueSelector: AbstractIssueSelector{DefaultIssueSelector() | ExplicitIssueSelector(issueKeys: String) | JqlIssueSelector(jql:
       String) | P4JobIssueSelector() | PerforceJobIssueSelector()}, scm: SCM{GitSCM(userRemoteConfigs: UserRemoteConfig(url: String, name: String, refspec: String, credentialsId: String)[], branches
      : BranchSpec(name: String)[], doGenerateSubmoduleConfigurations: boolean, submoduleCfg: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of
       class hudson.plugins.git.SubmoduleConfig[], browser: GitRepositoryBrowser{AssemblaWeb(repoUrl: String) | BitbucketWeb(repoUrl: String) | CGit(repoUrl: String) | FisheyeGitRepositoryBrowser(rep
      oUrl: String) | GitBlitRepositoryBrowser(repoUrl: String, projectName: String) | GitLab(repoUrl: String, version: String) | GitList(repoUrl: String) | GitWeb(repoUrl: String) | GithubWeb(repoUr
      l: String) | Gitiles(repoUrl: String) | GitoriousWeb(repoUrl: String) | GogsGit(repoUrl: String) | KilnGit(repoUrl: String) | Phabricator(repoUrl: String, repo: String) | RedmineWeb(repoUrl: St
      ring) | RhodeCode(repoUrl: String) | Stash(repoUrl: String) | TFS2013GitRepositoryBrowser(repoUrl: String) | ViewGitWeb(repoUrl: String, projectName: String)}, gitTool: String, extensions: GitS
      CMExtension{AuthorInChangelog() | BuildChooserSetting(buildChooser: BuildChooser{AncestryBuildChooser(maximumAgeInDays: int, ancestorCommitSha1: String) | DefaultBuildChooser() | InverseBuildCh
      ooser()}) | ChangelogToBranch(options: ChangelogToBranchOptions(compareRemote: String, compareTarget: String)) | CheckoutOption(timeout: int) | CleanBeforeCheckout() | CleanCheckout() | CloneOp
      tion(shallow: boolean, noTags: boolean, reference: String, timeout: int, depth?: int, honorRefspec?: boolean) | DisableRemotePoll() | GitLFSPull() | IgnoreNotifyCommit() | LocalBranch(localBran
      ch: String) | MessageExclusion(excludedMessage: String) | PathRestriction(includedRegions: String, excludedRegions: String) | PerBuildTag() | PreBuildMerge(options: UserMergeOptions(mergeRemote
      : String, mergeTarget: String, mergeStrategy: String, fastForwardMode: GitPluginFastForwardMode[FF, FF_ONLY, NO_FF])) | PruneStaleBranch() | RelativeTargetDirectory(relativeTargetDir: String) |
       ScmName(name: String) | SparseCheckoutPaths(sparseCheckoutPaths: SparseCheckoutPath(path: String)[]) | SubmoduleOption(disableSubmodules: boolean, recursiveSubmodules: boolean, trackingSubmodu
      les: boolean, reference: String, timeout: int, parentCredentials: boolean) | UserExclusion(excludedUsers: String) | UserIdentity(name: String, email: String) | WipeWorkspace()}[]) | MercurialSC
      M(source: String, browser?: HgBrowser{BitBucket(url: String) | FishEye(url: String) | GoogleCode(url: String) | HgWeb(url: String) | Kallithea(url: String) | KilnHG(url: String) | RhodeCode(url: String) | RhodeCodeLegacy(url: String)}, clean?: boolean, credentialsId?: String, disableChangeLog?: boolean, installation?: String, modules?: String, revision?: String, revisionType?: RevisionType[BRANCH, TAG, CHANGESET, REVSET], subdir?: String) | NullSCM() | SubversionSCM(locations: ModuleLocation(remote: String, credentialsId: String, local: String, depthOption: String, ignoreExternalsOption: boolean)[], workspaceUpdater: WorkspaceUpdater{CheckoutUpdater() | NoopUpdater() | UpdateUpdater() | UpdateWithCleanUpdater() | UpdateWithRevertUpdater()}, browser: SubversionRepositoryBrowser{Assembla(spaceName: String) | CollabNetSVN(url: String) | FishEyeSVN(url: String, rootModule: String) | Phabricator(url: String, repo: String) | SVNWeb(url: String) | Sventon(url: String, repositoryInstance: String) | Sventon2(url: String, repositoryInstance: String) | ViewSVN(url: String) | WebSVN(url: String)}, excludedRegions: String, excludedUsers: String, excludedRevprop: String, excludedCommitMessages: String, includedRegions: String, ignoreDirPropChanges: boolean, filterChangelog: boolean, additionalCredentials: AdditionalCredentials(realm: String, credentialsId: String)[], quietOperation: boolean)}, labels: String[]): java.lang.IllegalArgumentException: Could not instantiate {branches=[(name=master)], browser=$GitLab(repoUrl=https://git.mycompany.com/gitlabgroup/gitproject/,version=8.15), doGenerateSubmoduleConfigurations=false, extensions=[GitSCMSourceDefaults{includeTags=false}, $BuildChooserSetting(buildChooser=jenkins.plugins.git.AbstractGitSCMSource$SpecificRevisionBuildChooser@34ad35ea)], submoduleCfg=[], userRemoteConfigs=[(credentialsId=d4f2cdce-MORE_ASCII_CHARS-f8c227245022,name=origin,refspec=+refs/heads/*:refs/remotes/origin/*,url=git@git.mycompany.com:gitlabgroup/gitproject.git)]} for GitSCM(userRemoteConfigs: UserRemoteConfig(url: String, name: String, refspec: String, credentialsId: String)[], branches: BranchSpec(name: String)[], doGenerateSubmoduleConfigurations: boolean, submoduleCfg: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class hudson.plugins.git.SubmoduleConfig[], browser: GitRepositoryBrowser{AssemblaWeb(repoUrl: String) | BitbucketWeb(repoUrl: String) | CGit(repoUrl: String) | FisheyeGitRepositoryBrowser(repoUrl: String) | GitBlitRepositoryBrowser(repoUrl: String, projectName: String) | GitLab(repoUrl: String, version: String) | GitList(repoUrl: String) | GitWeb(repoUrl: String) | GithubWeb(repoUrl: String) | Gitiles(repoUrl: String) | GitoriousWeb(repoUrl: String) | GogsGit(repoUrl: String) | KilnGit(repoUrl: String) | Phabricator(repoUrl: String, repo: String) | RedmineWeb(repoUrl: String) | RhodeCode(repoUrl: String) | Stash(repoUrl: String) | TFS2013GitRepositoryBrowser(repoUrl: String) | ViewGitWeb(repoUrl: String, projectName: String)}, gitTool: String, extensions: GitSCMExtension{AuthorInChangelog() | BuildChooserSetting(buildChooser: BuildChooser{AncestryBuildChooser(maximumAgeInDays: int, ancestorCommitSha1: String) | DefaultBuildChooser() | InverseBuildChooser()}) | ChangelogToBranch(options: ChangelogToBranchOptions(compareRemote: String, compareTarget: String)) | CheckoutOption(timeout: int) | CleanBeforeCheckout() | CleanCheckout() | CloneOption(shallow: boolean, noTags: boolean, reference: String, timeout: int, depth?: int, honorRefspec?: boolean) | DisableRemotePoll() | GitLFSPull() | IgnoreNotifyCommit() | LocalBranch(localBranch: String) | MessageExclusion(excludedMessage: String) | PathRestriction(includedRegions: String, excludedRegions: String) | PerBuildTag() | PreBuildMerge(options: UserMergeOptions(mergeRemote: String, mergeTarget: String, mergeStrategy: String, fastForwardMode: GitPluginFastForwardMode[FF, FF_ONLY, NO_FF])) | PruneStaleBranch() | RelativeTargetDirectory(relativeTargetDir: String) | ScmName(name: String) | SparseCheckoutPaths(sparseCheckoutPaths: SparseCheckoutPath(path: String)[]) | SubmoduleOption(disableSubmodules: boolean, recursiveSubmodules: boolean, trackingSubmodules: boolean, reference: String, timeout: int, parentCredentials: boolean) | UserExclusion(excludedUsers: String) | UserIdentity(name: String, email: String) | WipeWorkspace()}[]): java.lang.IllegalArgumentException: Could not instantiate {repoUrl=https://git.mycompany.com/gitlabgroup/gitproject/, version=8.15} for GitLab(repoUrl: String, version: String): java.lang.ClassCastException: hudson.plugins.git.browser.GitLab.version expects class java.lang.String but received class java.lang.Double
              at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:264)
              at org.jenkinsci.plugins.structs.describable.UninstantiatedDescribable.instantiate(UninstantiatedDescribable.java:167)
              at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:372)
              at org.jenkinsci.plugins.structs.describable.DescribableModel.buildArguments(DescribableModel.java:318)
              at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:259)
              ... 111 more
      Caused by: java.lang.IllegalArgumentException: Could not instantiate {branches=[(name=master)], browser=$GitLab(repoUrl=https://git.mycompany.com/gitlabgroup/gitproject/,version=8.15), doGenerateSubmoduleConfigurations=false, extensions=[GitSCMSourceDefaults{includeTags=false}, $BuildChooserSetting(buildChooser=jenkins.plugins.git.AbstractGitSCMSource$SpecificRevisionBuildChooser@34ad35ea)], submoduleCfg=[], userRemoteConfigs=[(credentialsId=d4f2cdce-SOME-MORE-ASCII-CHARACTERS-f8c227245022,name=origin,refspec=+refs/heads/*:refs/remotes/origin/*,url=git@git.mycompany.com:gitlabgroup/gitproject.git)]} for GitSCM(userRemoteConfigs: UserRemoteConfig(url: String, name: String, refspec: String, credentialsId: String)[], branches: BranchSpec(name: String)[], doGenerateSubmoduleConfigurations: boolean, submoduleCfg: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class hudson.plugins.git.SubmoduleConfig[], browser: GitRepositoryBrowser{AssemblaWeb(repoUrl: String) | BitbucketWeb(repoUrl: String) | CGit(repoUrl: String) | FisheyeGitRepositoryBrowser(repoUrl: String) | GitBlitRepositoryBrowser(repoUrl: String, projectName: String) | GitLab(repoUrl: String, version: String) | GitList(repoUrl: String) | GitWeb(repoUrl: String) | GithubWeb(repoUrl: String) | Gitiles(repoUrl: String) | GitoriousWeb(repoUrl: String) | GogsGit(repoUrl: String) | KilnGit(repoUrl: String) | Phabricator(repoUrl: String, repo: String) | RedmineWeb(repoUrl: String) | RhodeCode(repoUrl: String) | Stash(repoUrl: String) | TFS2013GitRepositoryBrowser(repoUrl: String) | ViewGitWeb(repoUrl: String, projectName: String)}, gitTool: String, extensions: GitSCMExtension{AuthorInChangelog() | BuildChooserSetting(buildChooser: BuildChooser{AncestryBuildChooser(maximumAgeInDays: int, ancestorCommitSha1: String) | DefaultBuildChooser() | InverseBuildChooser()}) | ChangelogToBranch(options: ChangelogToBranchOptions(compareRemote: String, compareTarget: String)) | CheckoutOption(timeout: int) | CleanBeforeCheckout() | CleanCheckout() | CloneOption(shallow: boolean, noTags: boolean, reference: String, timeout: int, depth?: int, honorRefspec?: boolean) | DisableRemotePoll() | GitLFSPull() | IgnoreNotifyCommit() | LocalBranch(localBranch: String) | MessageExclusion(excludedMessage: String) | PathRestriction(includedRegions: String, excludedRegions: String) | PerBuildTag() | PreBuildMerge(options: UserMergeOptions(mergeRemote: String, mergeTarget: String, mergeStrategy: String, fastForwardMode: GitPluginFastForwardMode[FF, FF_ONLY, NO_FF])) | PruneStaleBranch() | RelativeTargetDirectory(relativeTargetDir: String) | ScmName(name: String) | SparseCheckoutPaths(sparseCheckoutPaths: SparseCheckoutPath(path: String)[]) | SubmoduleOption(disableSubmodules: boolean, recursiveSubmodules: boolean, trackingSubmodules: boolean, reference: String, timeout: int, parentCredentials: boolean) | UserExclusion(excludedUsers: String) | UserIdentity(name: String, email: String) | WipeWorkspace()}[]): java.lang.IllegalArgumentException: Could not instantiate {repoUrl=https://git.company.com/gitlabgroup/gitproject/, version=8.15} for GitLab(repoUrl: String, version: String): java.lang.ClassCastException: hudson.plugins.git.browser.GitLab.version expects class java.lang.String but received class java.lang.Double
              at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:264)
              at org.jenkinsci.plugins.structs.describable.UninstantiatedDescribable.instantiate(UninstantiatedDescribable.java:167)
              at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:372)
              at org.jenkinsci.plugins.structs.describable.DescribableModel.buildArguments(DescribableModel.java:318)
              at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:259)
              ... 115 more
      Caused by: java.lang.IllegalArgumentException: Could not instantiate {repoUrl=https://git.mycompany.com/gitlabgroup/gitproject/, version=8.15} for GitLab(repoUrl: String, version: String): java.lang.ClassCastException: hudson.plugins.git.browser.GitLab.version expects class java.lang.String but received class java.lang.Double
              at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:264)
              at org.jenkinsci.plugins.structs.describable.UninstantiatedDescribable.instantiate(UninstantiatedDescribable.java:167)
              at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:372)
              at org.jenkinsci.plugins.structs.describable.DescribableModel.buildArguments(DescribableModel.java:318)
              at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:259)
              ... 119 more
      Caused by: java.lang.ClassCastException: hudson.plugins.git.browser.GitLab.version expects class java.lang.String but received class java.lang.Double
              at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:394)
              at org.jenkinsci.plugins.structs.describable.DescribableModel.buildArguments(DescribableModel.java:318)
              at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:259)
              ... 123 more
      

      Attachments

        Issue Links

          Activity

            markewaite Mark Waite added a comment -

            I don't have a final date for git client plugin 3.0.0 release and git plugin 4.0.0 release, but I plan to release a new beta of both by end of day June 22, 2019.

            markewaite Mark Waite added a comment - I don't have a final date for git client plugin 3.0.0 release and git plugin 4.0.0 release, but I plan to release a new beta of both by end of day June 22, 2019.

            markewaite I'ts been half a year, is this going to be added to a stable release soon?

            (and sorry for being a "+1 me too" person)

            cobexer Ing. Christoph Obexer added a comment - markewaite I'ts been half a year, is this going to be added to a stable release soon? (and sorry for being a "+1 me too" person)

            markewaite Thanks for (a) the fix/confirmation and (b) for the hint ad Jira plugin (luckily I am already on 3.05)

            reinholdfuereder Reinhold Füreder added a comment - markewaite Thanks for (a) the fix/confirmation and (b) for the hint ad Jira plugin (luckily I am already on 3.05)
            markewaite Mark Waite added a comment - - edited

            Fixed in git plugin 4.0.0 pre-release.

             

            reinholdfuereder if you are using Jira plugin 2.5.1 as the original bug reporter is, you should upgrade to a newer version as soon as you can.  That version had a number of problems.

            markewaite Mark Waite added a comment - - edited Fixed in git plugin 4.0.0 pre-release.   reinholdfuereder if you are using Jira plugin 2.5.1 as the original bug reporter is, you should upgrade to a newer version as soon as you can.  That version had a number of problems.

            markewaite in JENKINS-46650 you wrote (3 days ago) "Fixed in git plugin 4.0.0 pre-release" => may I assume the fix in the other issue is also fixing this issue here? (=> i.e. one is a duplicate issue?)

            reinholdfuereder Reinhold Füreder added a comment - markewaite in JENKINS-46650 you wrote (3 days ago) " Fixed in git plugin 4.0.0 pre-release " => may I assume the fix in the other issue is also fixing this issue here? (=> i.e. one is a duplicate issue?)

            I experienced the same problem yesterday in my first attempt to use git and gitlab web browser, but I do NOT even have installed the gitlab-plugin (yet), so the problem is either in the git-plugin (v3.9.1 in my case) or maybe in both plugins, or it is actually somewhere in a plugin base or helper or in the integration layer?

            2018-12-12 17:00:26 WARNING [org.jenkinsci.plugins.structs.describable.DescribableModel uninstantiate2]   Cannot create control version of class hudson.plugins.git.GitSCM using {branches=[(name=refs/heads/master)], browser=$GitLab(repoUrl=https://git.acme.com,version=11.3), ...
            java.lang.IllegalArgumentException: Could not instantiate {branches=[(name=refs/heads/master)], browser=$GitLab(repoUrl=https://git.acme.com,version=11.3), ... for GitSCM... java.lang.IllegalArgumentException: Could not instantiate {repoUrl=https://git.acme.com, version=11.3} for GitLab(repoUrl: String, version: String): java.lang.ClassCastException: hudson.plugins.git.browser.GitLab.version expects class java.lang.String but received class java.lang.Double
                    at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:287)
                    at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate2(DescribableModel.java:601)
                    at org.jenkinsci.plugins.workflow.cps.actions.ArgumentsActionImpl.sanitizeObjectAndRecordMutation(ArgumentsActionImpl.java:342)
                    at org.jenkinsci.plugins.workflow.cps.actions.ArgumentsActionImpl.sanitizeMapAndRecordMutation(ArgumentsActionImpl.java:386)
                    at org.jenkinsci.plugins.workflow.cps.actions.ArgumentsActionImpl.<init>(ArgumentsActionImpl.java:74)
                    at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:245)
                    at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:178)
                    at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122)
                    at sun.reflect.GeneratedMethodAccessor316.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                    at java.lang.reflect.Method.invoke(Method.java:498)
                    at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
                    at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
                    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
                    at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
                    at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42)
                    at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
                    at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
                    at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:157)
                    at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23)
                    at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:155)
                    at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:155)
                    at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:159)
                    at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:129)
                    at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:129)
                    at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:129)
                    at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:129)
                    at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
                    at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:57)
                    at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:109)
                    at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:82)
                    at sun.reflect.GeneratedMethodAccessor246.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                    at java.lang.reflect.Method.invoke(Method.java:498)
                    at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
                    at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:76)
                    at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30)
                    at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:66)
                    at sun.reflect.GeneratedMethodAccessor250.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                    at java.lang.reflect.Method.invoke(Method.java:498)
                    at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
                    at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
                    at com.cloudbees.groovy.cps.Next.step(Next.java:83)
                    at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174)
                    at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163)
                    at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129)
                    at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268)
                    at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163)
                    at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$101(SandboxContinuable.java:34)
                    at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.lambda$run0$0(SandboxContinuable.java:59)
                    at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108)
                    at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:58)
                    at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:182)
                    at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:332)
                    at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$200(CpsThreadGroup.java:83)
                    at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:244)
                    at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:232)
                    at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64)
                    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                    at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131)
                    at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
                    at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
                    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
                    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
                    at java.lang.Thread.run(Thread.java:748)
            Caused by: java.lang.IllegalArgumentException: Could not instantiate {repoUrl=https://git.acme.com, version=11.3} for GitLab(repoUrl: String, version: String): java.lang.ClassCastException: hudson.plugins.git.browser.GitLab.version expects class java.lang.String but received class java.lang.Double
                    at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:287)
                    at org.jenkinsci.plugins.structs.describable.UninstantiatedDescribable.instantiate(UninstantiatedDescribable.java:168)
                    at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:395)
                    at org.jenkinsci.plugins.structs.describable.DescribableModel.buildArguments(DescribableModel.java:341)
                    at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:282)
                    ... 67 more
            Caused by: java.lang.ClassCastException: hudson.plugins.git.browser.GitLab.version expects class java.lang.String but received class java.lang.Double
                    at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:421)
                    at org.jenkinsci.plugins.structs.describable.DescribableModel.buildArguments(DescribableModel.java:341)
                    at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:282)
                    ... 71 more 
            reinholdfuereder Reinhold Füreder added a comment - I experienced the same problem yesterday in my first attempt to use git and gitlab web browser, but I do NOT even have installed the gitlab-plugin (yet), so the problem is either in the git-plugin (v3.9.1 in my case) or maybe in both plugins, or it is actually somewhere in a plugin base or helper or in the integration layer? 2018-12-12 17:00:26 WARNING [org.jenkinsci.plugins.structs.describable.DescribableModel uninstantiate2] Cannot create control version of class hudson.plugins.git.GitSCM using {branches=[(name=refs/heads/master)], browser=$GitLab(repoUrl=https://git.acme.com,version=11.3), ... java.lang.IllegalArgumentException: Could not instantiate {branches=[(name=refs/heads/master)], browser=$GitLab(repoUrl=https://git.acme.com,version=11.3), ... for GitSCM... java.lang.IllegalArgumentException: Could not instantiate {repoUrl=https://git.acme.com, version=11.3} for GitLab(repoUrl: String, version: String): java.lang.ClassCastException: hudson.plugins.git.browser.GitLab.version expects class java.lang.String but received class java.lang.Double at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:287) at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate2(DescribableModel.java:601) at org.jenkinsci.plugins.workflow.cps.actions.ArgumentsActionImpl.sanitizeObjectAndRecordMutation(ArgumentsActionImpl.java:342) at org.jenkinsci.plugins.workflow.cps.actions.ArgumentsActionImpl.sanitizeMapAndRecordMutation(ArgumentsActionImpl.java:386) at org.jenkinsci.plugins.workflow.cps.actions.ArgumentsActionImpl.<init>(ArgumentsActionImpl.java:74) at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep(DSL.java:245) at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod(DSL.java:178) at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod(CpsScript.java:122) at sun.reflect.GeneratedMethodAccessor316.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:42) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113) at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:157) at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:155) at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:155) at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:159) at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:129) at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:129) at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:129) at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:129) at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17) at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:57) at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:109) at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:82) at sun.reflect.GeneratedMethodAccessor246.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.get(PropertyishBlock.java:76) at com.cloudbees.groovy.cps.LValueBlock$GetAdapter.receive(LValueBlock.java:30) at com.cloudbees.groovy.cps.impl.PropertyishBlock$ContinuationImpl.fixName(PropertyishBlock.java:66) at sun.reflect.GeneratedMethodAccessor250.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72) at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21) at com.cloudbees.groovy.cps.Next.step(Next.java:83) at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174) at com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163) at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:129) at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:268) at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$101(SandboxContinuable.java:34) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.lambda$run0$0(SandboxContinuable.java:59) at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.GroovySandbox.runInSandbox(GroovySandbox.java:108) at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:58) at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:182) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:332) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$200(CpsThreadGroup.java:83) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:244) at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:232) at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:64) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131) at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28) at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.lang.IllegalArgumentException: Could not instantiate {repoUrl=https://git.acme.com, version=11.3} for GitLab(repoUrl: String, version: String): java.lang.ClassCastException: hudson.plugins.git.browser.GitLab.version expects class java.lang.String but received class java.lang.Double at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:287) at org.jenkinsci.plugins.structs.describable.UninstantiatedDescribable.instantiate(UninstantiatedDescribable.java:168) at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:395) at org.jenkinsci.plugins.structs.describable.DescribableModel.buildArguments(DescribableModel.java:341) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:282) ... 67 more Caused by: java.lang.ClassCastException: hudson.plugins.git.browser.GitLab.version expects class java.lang.String but received class java.lang.Double at org.jenkinsci.plugins.structs.describable.DescribableModel.coerce(DescribableModel.java:421) at org.jenkinsci.plugins.structs.describable.DescribableModel.buildArguments(DescribableModel.java:341) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:282) ... 71 more

            People

              Unassigned Unassigned
              stefanthurnherr Stefan Thurnherr
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: