java.lang.IllegalArgumentException: argument type mismatch

Apache's JIRA Issue Tracker | Andrew Eisenberg | 4 years ago
  1. 0

    Add the following snippet to an empty groovyConsole using Groovy 2.0.4: {code} package pkg1 import groovy.transform.TypeChecked class ExtendedList extends ArrayList<String>{ } class SourceClass { @TypeChecked public static ExtendedList createList() { return null; } } {code} Compile and then you get the following exception: {code} Exception thrown Nov 16, 2012 9:21:19 AM org.codehaus.groovy.runtime.StackTraceUtils sanitize WARNING: Sanitizing stacktrace: java.lang.IllegalArgumentException: argument type mismatch 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 org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:2402) at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:3330) at org.codehaus.groovy.runtime.InvokerHelper.setProperties(InvokerHelper.java:463) at org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:440) at groovy.lang.GroovyShell.parse(GroovyShell.java:625) at groovy.lang.GroovyShell.parse(GroovyShell.java:652) at groovy.lang.GroovyShell.parse(GroovyShell.java:643) at groovy.lang.GroovyShell$parse.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at groovy.ui.Console$_compileScript_closure18.doCall(Console.groovy:997) at groovy.ui.Console$_compileScript_closure18.doCall(Console.groovy) 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 org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:904) at groovy.lang.Closure.call(Closure.java:415) at groovy.lang.Closure.call(Closure.java:409) at groovy.lang.Closure.run(Closure.java:493) at java.lang.Thread.run(Thread.java:680) java.lang.IllegalArgumentException: argument type mismatch {code}

    Apache's JIRA Issue Tracker | 4 years ago | Andrew Eisenberg
    java.lang.IllegalArgumentException: argument type mismatch
  2. 0

    Add the following snippet to an empty groovyConsole using Groovy 2.0.4: {code} package pkg1 import groovy.transform.TypeChecked class ExtendedList extends ArrayList<String>{ } class SourceClass { @TypeChecked public static ExtendedList createList() { return null; } } {code} Compile and then you get the following exception: {code} Exception thrown Nov 16, 2012 9:21:19 AM org.codehaus.groovy.runtime.StackTraceUtils sanitize WARNING: Sanitizing stacktrace: java.lang.IllegalArgumentException: argument type mismatch 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 org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:2402) at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:3330) at org.codehaus.groovy.runtime.InvokerHelper.setProperties(InvokerHelper.java:463) at org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:440) at groovy.lang.GroovyShell.parse(GroovyShell.java:625) at groovy.lang.GroovyShell.parse(GroovyShell.java:652) at groovy.lang.GroovyShell.parse(GroovyShell.java:643) at groovy.lang.GroovyShell$parse.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at groovy.ui.Console$_compileScript_closure18.doCall(Console.groovy:997) at groovy.ui.Console$_compileScript_closure18.doCall(Console.groovy) 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 org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:904) at groovy.lang.Closure.call(Closure.java:415) at groovy.lang.Closure.call(Closure.java:409) at groovy.lang.Closure.run(Closure.java:493) at java.lang.Thread.run(Thread.java:680) java.lang.IllegalArgumentException: argument type mismatch {code}

    Apache's JIRA Issue Tracker | 4 years ago | Andrew Eisenberg
    java.lang.IllegalArgumentException: argument type mismatch
  3. 0

    [GROOVY-5802] Exception thrown in groovyConsole - ASF JIRA

    apache.org | 1 year ago
    java.lang.IllegalArgumentException: argument type mismatch
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cluster / Node Manager « WebLogic

    middlewaremagic.com | 4 months ago
    org.apache.cxf.interceptor.Fault: argument type mismatch while invoking public com.nsn.see.application.callerid.Registration com.nsn.see.application.callerid.CallerIdService.registration(com.nsn.see.application.callerid.Register) with params [com.nsn.see.application.callerid.Register@1d03015d].
  6. 0

    error when it scans for hbase

    GitHub | 4 years ago | junyoungkim
    javax.persistence.PersistenceException: java.lang.RuntimeException: com.impetus.kundera.property.PropertyAccessException: > > java.lang.IllegalArgumentException: argument type mismatch

  1. Aria Pahlavan 16 times, last 3 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:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:597)
    4 frames
  3. Groovy
    Console$_compileScript_closure18.doCall
    1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    3. groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:2402)
    4. groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:3330)
    5. org.codehaus.groovy.runtime.InvokerHelper.setProperties(InvokerHelper.java:463)
    6. org.codehaus.groovy.runtime.InvokerHelper.createScript(InvokerHelper.java:440)
    7. groovy.lang.GroovyShell.parse(GroovyShell.java:625)
    8. groovy.lang.GroovyShell.parse(GroovyShell.java:652)
    9. groovy.lang.GroovyShell.parse(GroovyShell.java:643)
    10. groovy.lang.GroovyShell$parse.call(Unknown Source)
    11. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45)
    12. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
    13. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
    14. groovy.ui.Console$_compileScript_closure18.doCall(Console.groovy:997)
    15. groovy.ui.Console$_compileScript_closure18.doCall(Console.groovy)
    15 frames
  4. 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
  5. Groovy
    Closure.run
    1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    3. org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
    4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:904)
    5. groovy.lang.Closure.call(Closure.java:415)
    6. groovy.lang.Closure.call(Closure.java:409)
    7. groovy.lang.Closure.run(Closure.java:493)
    7 frames
  6. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:680)
    1 frame