java.lang.IllegalArgumentException: argument type mismatch

Jenkins JIRA | Daniel Spilker | 8 months ago
  1. 0

    [JIRA] [structs-plugin] (JENKINS-34105) Add support for parameters of type java.util.Set

    Google Groups | 8 months ago | ma...@daniel-spilker.com (JIRA)
    java.lang.IllegalArgumentException: argument type mismatch
  2. 0

    {{TriggerOnSpecifiedImageNames}} from the Docker Hub Notification plugin has a parameter with type {{Set<String>}}, see [source|https://github.com/jenkinsci/dockerhub-notification-plugin/blob/dockerhub-notification-2.0r2/src/main/java/org/jenkinsci/plugins/registry/notification/opt/impl/TriggerOnSpecifiedImageNames.java#L69]. Instantiation will fail due to argument type mismatch when passing a Groovy list literal. It would be nice if the list would be coerced to a set automatically. {code} import org.jenkinsci.plugins.registry.notification.opt.impl.TriggerOnSpecifiedImageNames import org.jenkinsci.plugins.structs.describable.DescribableModel def m = new DescribableModel(TriggerOnSpecifiedImageNames) m.instantiate([repoNames: ['foo', 'bar']]) {code} {code} java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jenkinsci.plugins.structs.describable.Setter$1.set(Setter.java:28) at org.jenkinsci.plugins.structs.describable.DescribableModel.injectSetters(DescribableModel.java:268) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:194) at org.jenkinsci.plugins.structs.describable.DescribableModel$instantiate.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at Script1.run(Script1.groovy:5) ... {code}

    Jenkins JIRA | 8 months ago | Daniel Spilker
    java.lang.IllegalArgumentException: argument type mismatch
  3. 0

    {{TriggerOnSpecifiedImageNames}} from the Docker Hub Notification plugin has a parameter with type {{Set<String>}}, see [source|https://github.com/jenkinsci/dockerhub-notification-plugin/blob/dockerhub-notification-2.0r2/src/main/java/org/jenkinsci/plugins/registry/notification/opt/impl/TriggerOnSpecifiedImageNames.java#L69]. Instantiation will fail due to argument type mismatch when passing a Groovy list literal. It would be nice if the list would be coerced to a set automatically. {code} import org.jenkinsci.plugins.registry.notification.opt.impl.TriggerOnSpecifiedImageNames import org.jenkinsci.plugins.structs.describable.DescribableModel def m = new DescribableModel(TriggerOnSpecifiedImageNames) m.instantiate([repoNames: ['foo', 'bar']]) {code} {code} java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.jenkinsci.plugins.structs.describable.Setter$1.set(Setter.java:28) at org.jenkinsci.plugins.structs.describable.DescribableModel.injectSetters(DescribableModel.java:268) at org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:194) at org.jenkinsci.plugins.structs.describable.DescribableModel$instantiate.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at Script1.run(Script1.groovy:5) ... {code}

    Jenkins JIRA | 8 months ago | Daniel Spilker
    java.lang.IllegalArgumentException: argument type mismatch
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    [JENKINS-34105] Add support for parameters of type java.util.Set - Jenkins JIRA

    jenkins-ci.org | 3 months ago
    java.lang.IllegalArgumentException: argument type mismatch
  6. 0

    java.lang.IllegalArgumentException with PojoDependencyInjector

    GitHub | 3 years ago | hbrackmann
    java.lang.IllegalArgumentException: argument type mismatch

  1. Aria Pahlavan 16 times, last 2 weeks ago
  2. kjhdofjosvs 2 times, last 1 month ago
  3. tyson925 2 times, last 1 month ago
  4. kuldeep 2 times, last 2 months ago
  5. aldrinleal 1 times, last 5 months ago
6 more registered users
72 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    argument type mismatch

    at sun.reflect.NativeMethodAccessorImpl.invoke0()
  2. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:606)
    4 frames
  3. org.jenkinsci.plugins
    DescribableModel$instantiate.call
    1. org.jenkinsci.plugins.structs.describable.Setter$1.set(Setter.java:28)
    2. org.jenkinsci.plugins.structs.describable.DescribableModel.injectSetters(DescribableModel.java:268)
    3. org.jenkinsci.plugins.structs.describable.DescribableModel.instantiate(DescribableModel.java:194)
    4. org.jenkinsci.plugins.structs.describable.DescribableModel$instantiate.call(Unknown Source)
    4 frames
  4. Groovy
    AbstractCallSite.call
    1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
    2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    3. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
    3 frames
  5. Unknown
    Script1.run
    1. Script1.run(Script1.groovy:5)
    1 frame