[JIRA] (JENKINS-49215) java.lang.ClassCastException: hudson.plugins.git.browser.GitLab.version expects class java.lang.String but received class java.lang.Double

6 views
Skip to first unread message

r.fuereder@xortex.com (JIRA)

unread,
Dec 13, 2018, 2:01:03 AM12/13/18
to jenkinsc...@googlegroups.com
Reinhold Füreder updated an issue
 
Jenkins / Bug JENKINS-49215
java.lang.ClassCastException: hudson.plugins.git.browser.GitLab.version expects class java.lang.String but received class java.lang.Double
Change By: Reinhold Füreder
Component/s: git-plugin
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

r.fuereder@xortex.com (JIRA)

unread,
Dec 13, 2018, 2:01:04 AM12/13/18
to jenkinsc...@googlegroups.com
Reinhold Füreder commented on Bug JENKINS-49215
 
Re: java.lang.ClassCastException: hudson.plugins.git.browser.GitLab.version expects class java.lang.String but received class java.lang.Double

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 

r.fuereder@xortex.com (JIRA)

unread,
Dec 13, 2018, 2:08:02 AM12/13/18
to jenkinsc...@googlegroups.com

Mark Waite 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?)

mark.earl.waite@gmail.com (JIRA)

unread,
Dec 13, 2018, 5:50:02 PM12/13/18
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Dec 13, 2018, 5:50:03 PM12/13/18
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Dec 13, 2018, 5:50:04 PM12/13/18
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Dec 13, 2018, 5:51:32 PM12/13/18
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Dec 13, 2018, 5:51:38 PM12/13/18
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Dec 13, 2018, 5:52:01 PM12/13/18
to jenkinsc...@googlegroups.com

mark.earl.waite@gmail.com (JIRA)

unread,
Dec 13, 2018, 5:53:02 PM12/13/18
to jenkinsc...@googlegroups.com
Mark Waite edited a comment on Bug JENKINS-49215
 
Re: java.lang.ClassCastException: hudson.plugins.git.browser.GitLab.version expects class java.lang.String but received class java.lang.Double
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.

r.fuereder@xortex.com (JIRA)

unread,
Dec 14, 2018, 1:44:02 AM12/14/18
to jenkinsc...@googlegroups.com

cobexer@gmail.com (JIRA)

unread,
Jun 21, 2019, 3:10:02 AM6/21/19
to jenkinsc...@googlegroups.com

Mark Waite 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)

mark.earl.waite@gmail.com (JIRA)

unread,
Jun 21, 2019, 7:05:02 AM6/21/19
to jenkinsc...@googlegroups.com

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.

mark.earl.waite@gmail.com (JIRA)

unread,
Apr 4, 2020, 8:37:02 PM4/4/20
to jenkinsc...@googlegroups.com
Change By: Mark Waite
Status: Fixed but Unreleased Closed
Released As: git client plugin 3.0.0
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages