java.lang.IllegalArgumentException: wrong number of arguments

Atlassian JIRA | Jeff Kirby | 6 years ago
  1. 0

    I think the #controlFooter macro in templates/plugins/jira/macros.vm has some errors. Jira 4.2.2's code is {code} #macro(controlFooter $action $description $noHeader) #if ($!field && $!field.id) #customControlFooter($action $field.id $description $!displayParameters $auiparams) #elseif($!customField && $!customField.id) #customControlFooter($action $customField.id $description $!displayParameters $auiparams) #else #customControlFooter($action '' $description $!displayParameters $auiparams) #end #end {code} I think that the code is supposed to be {code} #macro(controlFooter $action $description $noHeader) #if ($field && $field.id) #customControlFooter($action $field.id $description $!displayParameters $auiparams) #elseif($customField && $customField.id) #customControlFooter($action $customField.id $description $!displayParameters $auiparams) #else #customControlFooter($action '' $description $!displayParameters $auiparams) #end #end {code} Also, this code is inadvertently causing this error in a lot of plugins that utilize the controlFooter macro {noformat} 2011-01-28 15:24:32,113 http-80-4 ERROR admin 924x2334x1 pdebba 0:0:0:0:0:0:0:1 /secure/admin/ConfigureSkipRoles!default.jspa [webwork.util.ValueStack] query="field" {[id="field" type="8" values=""]} java.lang.IllegalArgumentException: wrong number of arguments at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) at webwork.util.ValueStack.findValue(ValueStack.java:412) at webwork.util.ValueStack.findValue(ValueStack.java:213) at webwork.view.velocity.VelocityHelper$WebWorkVelocityContext.internalGet(VelocityHelper.java:237) at org.apache.velocity.context.AbstractContext.get(AbstractContext.java:200) {noformat}

    Atlassian JIRA | 6 years ago | Jeff Kirby
    java.lang.IllegalArgumentException: wrong number of arguments
  2. 0

    I think the #controlFooter macro in templates/plugins/jira/macros.vm has some errors. Jira 4.2.2's code is {code} #macro(controlFooter $action $description $noHeader) #if ($!field && $!field.id) #customControlFooter($action $field.id $description $!displayParameters $auiparams) #elseif($!customField && $!customField.id) #customControlFooter($action $customField.id $description $!displayParameters $auiparams) #else #customControlFooter($action '' $description $!displayParameters $auiparams) #end #end {code} I think that the code is supposed to be {code} #macro(controlFooter $action $description $noHeader) #if ($field && $field.id) #customControlFooter($action $field.id $description $!displayParameters $auiparams) #elseif($customField && $customField.id) #customControlFooter($action $customField.id $description $!displayParameters $auiparams) #else #customControlFooter($action '' $description $!displayParameters $auiparams) #end #end {code} Also, this code is inadvertently causing this error in a lot of plugins that utilize the controlFooter macro {noformat} 2011-01-28 15:24:32,113 http-80-4 ERROR admin 924x2334x1 pdebba 0:0:0:0:0:0:0:1 /secure/admin/ConfigureSkipRoles!default.jspa [webwork.util.ValueStack] query="field" {[id="field" type="8" values=""]} java.lang.IllegalArgumentException: wrong number of arguments at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70) at webwork.util.InjectionUtils.invoke(InjectionUtils.java:56) at webwork.util.ValueStack.findValue(ValueStack.java:412) at webwork.util.ValueStack.findValue(ValueStack.java:213) at webwork.view.velocity.VelocityHelper$WebWorkVelocityContext.internalGet(VelocityHelper.java:237) at org.apache.velocity.context.AbstractContext.get(AbstractContext.java:200) {noformat}

    Atlassian JIRA | 6 years ago | Jeff Kirby
    java.lang.IllegalArgumentException: wrong number of arguments
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    JPA inheritance using PostgreSQL

    Stack Overflow | 7 years ago | emanemos
    javax.faces.el.EvaluationException: java.lang.IllegalStateException: Could not get property value
  5. 0

    Primefaces fieldset component bug on Mac OS

    Stack Overflow | 4 years ago | marcosdd
    java.lang.IllegalArgumentException: wrong number of arguments

  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

    wrong number of arguments

    at sun.reflect.NativeMethodAccessorImpl.invoke0()
  2. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  3. webwork.util
    ValueStack.findValue
    1. webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
    2. webwork.util.InjectionUtils.invoke(InjectionUtils.java:56)
    3. webwork.util.ValueStack.findValue(ValueStack.java:412)
    4. webwork.util.ValueStack.findValue(ValueStack.java:213)
    4 frames
  4. webwork.view.velocity
    VelocityHelper$WebWorkVelocityContext.internalGet
    1. webwork.view.velocity.VelocityHelper$WebWorkVelocityContext.internalGet(VelocityHelper.java:237)
    1 frame
  5. Apache Velocity
    AbstractContext.get
    1. org.apache.velocity.context.AbstractContext.get(AbstractContext.java:200)
    1 frame