java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: argument type mismatch

Spring JIRA | Sam Brannen | 1 year ago
  1. 0

    The changes made to {{UndertowXhrTransport}} in SPR-13366 broke {{UndertowSockJsIntegrationTests}}. For example, when executing the {{AbstractSockJsIntegrationTests.echoXhr()}} test, we see the following exception: {noformat} java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: argument type mismatch at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at org.springframework.util.concurrent.SettableListenableFuture.get(SettableListenableFuture.java:122) at org.springframework.web.socket.sockjs.client.AbstractSockJsIntegrationTests.testEcho(AbstractSockJsIntegrationTests.java:277) at org.springframework.web.socket.sockjs.client.AbstractSockJsIntegrationTests.echoXhr(AbstractSockJsIntegrationTests.java:182) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) Caused by: java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:211) at org.springframework.web.socket.sockjs.client.UndertowXhrTransport$Undertow13BufferSupport.httpClientConnect(UndertowXhrTransport.java:592) at org.springframework.web.socket.sockjs.client.UndertowXhrTransport.executeReceiveRequest(UndertowXhrTransport.java:179) at org.springframework.web.socket.sockjs.client.UndertowXhrTransport.connectInternal(UndertowXhrTransport.java:150) at org.springframework.web.socket.sockjs.client.AbstractXhrTransport.connect(AbstractXhrTransport.java:132) at org.springframework.web.socket.sockjs.client.DefaultTransportRequest.connect(DefaultTransportRequest.java:149) at org.springframework.web.socket.sockjs.client.SockJsClient.doHandshake(SockJsClient.java:255) ... 30 more {noformat} Furthermore, executing the {{AbstractSockJsIntegrationTests.fallbackAfterTransportFailure()}} test hangs the build completely, as can be seen in all recent _Performance_ build failures, beginning with [build 600|https://build.spring.io/browse/SPR-PERF-600].

    Spring JIRA | 1 year ago | Sam Brannen
    java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: argument type mismatch
  2. 0

    The changes made to {{UndertowXhrTransport}} in SPR-13366 broke {{UndertowSockJsIntegrationTests}}. For example, when executing the {{AbstractSockJsIntegrationTests.echoXhr()}} test, we see the following exception: {noformat} java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: argument type mismatch at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at org.springframework.util.concurrent.SettableListenableFuture.get(SettableListenableFuture.java:122) at org.springframework.web.socket.sockjs.client.AbstractSockJsIntegrationTests.testEcho(AbstractSockJsIntegrationTests.java:277) at org.springframework.web.socket.sockjs.client.AbstractSockJsIntegrationTests.echoXhr(AbstractSockJsIntegrationTests.java:182) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) at org.junit.rules.RunRules.evaluate(RunRules.java:20) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192) Caused by: java.lang.IllegalArgumentException: argument type mismatch at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:211) at org.springframework.web.socket.sockjs.client.UndertowXhrTransport$Undertow13BufferSupport.httpClientConnect(UndertowXhrTransport.java:592) at org.springframework.web.socket.sockjs.client.UndertowXhrTransport.executeReceiveRequest(UndertowXhrTransport.java:179) at org.springframework.web.socket.sockjs.client.UndertowXhrTransport.connectInternal(UndertowXhrTransport.java:150) at org.springframework.web.socket.sockjs.client.AbstractXhrTransport.connect(AbstractXhrTransport.java:132) at org.springframework.web.socket.sockjs.client.DefaultTransportRequest.connect(DefaultTransportRequest.java:149) at org.springframework.web.socket.sockjs.client.SockJsClient.doHandshake(SockJsClient.java:255) ... 30 more {noformat} Furthermore, executing the {{AbstractSockJsIntegrationTests.fallbackAfterTransportFailure()}} test hangs the build completely, as can be seen in all recent _Performance_ build failures, beginning with [build 600|https://build.spring.io/browse/SPR-PERF-600].

    Spring JIRA | 1 year ago | Sam Brannen
    java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: argument type mismatch
  3. 0

    GPMONGODB-27: Add support for SortedSet

    GitHub | 6 years ago | graemerocher
    org.apache.camel.RuntimeCamelException: java.lang.IllegalArgumentException: argument type mismatch
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    SimpleForm Exception

    GitHub | 3 years ago | T00mm
    play.api.Application$$anon$1: Execution exception[[IllegalArgumentException: argument type mismatch]]
  6. 0

    GitHub comment 35#42772557

    GitHub | 3 years ago | T00mm
    play.api.Application$$anon$1: Execution exception[[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:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  3. Spring Core
    ReflectionUtils.invokeMethod
    1. org.springframework.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:211)
    1 frame
  4. org.springframework.web
    AbstractSockJsIntegrationTests.echoXhr
    1. org.springframework.web.socket.sockjs.client.UndertowXhrTransport$Undertow13BufferSupport.httpClientConnect(UndertowXhrTransport.java:592)
    2. org.springframework.web.socket.sockjs.client.UndertowXhrTransport.executeReceiveRequest(UndertowXhrTransport.java:179)
    3. org.springframework.web.socket.sockjs.client.UndertowXhrTransport.connectInternal(UndertowXhrTransport.java:150)
    4. org.springframework.web.socket.sockjs.client.AbstractXhrTransport.connect(AbstractXhrTransport.java:132)
    5. org.springframework.web.socket.sockjs.client.DefaultTransportRequest.connect(DefaultTransportRequest.java:149)
    6. org.springframework.web.socket.sockjs.client.SockJsClient.doHandshake(SockJsClient.java:255)
    7. org.springframework.web.socket.sockjs.client.AbstractSockJsIntegrationTests.testEcho(AbstractSockJsIntegrationTests.java:277)
    8. org.springframework.web.socket.sockjs.client.AbstractSockJsIntegrationTests.echoXhr(AbstractSockJsIntegrationTests.java:182)
    8 frames
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  6. JUnit
    ParentRunner.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    6. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    7. org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)
    8. org.junit.rules.RunRules.evaluate(RunRules.java:20)
    9. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
    10. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
    11. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
    12. org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
    13. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
    14. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
    15. org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
    16. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
    17. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    18. org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    18 frames
  7. JUnit4 Runner
    JUnit4TestReference.run
    1. org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:86)
    1 frame
  8. JUnit3 Runner
    RemoteTestRunner.main
    1. org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    2. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:459)
    3. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:675)
    4. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:382)
    5. org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:192)
    5 frames