java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • {{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}
    via by Daniel Spilker,
  • {{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}
    via by Daniel Spilker,
  • Addon Prowl 1.4 issue
    via GitHub by fbodart
    ,
  • @Consumes doesn't work with JSON
    via Stack Overflow by Everv0id
    ,
    • 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)

    Users with the same issue

    Unknown visitor2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    94 more bugmates