Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. Method.invoke() has thrown an InvocationTargetException
    Java Runtime
    185
    115
    103
  2. NativeMethodAccessorImpl.invoke() has thrown an InvocationTargetException
    Java Runtime
    220
    126
    120

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:600)
2 frames hidden

Solution

Nwabunnia11 months ago

The invoke() method threw an exception. To understand what the problem is, wrap the invoke() method call around a try-catch block and log invocationTargetException.getTargetException(). You can also use the getCause() method.

External results for this pattern (10)

  1. Ghost-chuvia GitHub3 weeks ago
    Failed to invoke subcommand
    Show stack trace
  2. tonglin0325via GitHub4 weeks ago
    Can't get Kerberos realm
    Show stack trace
  3. sabbyanandanvia GitHub1 month ago
    java.lang.reflect.InvocationTargetException
    Show stack trace
  4. anddo88via GitHub1 month ago
    No message found for this stack trace.
    Show stack trace
  5. 843840via Oracle Community1 month ago
    No message found for this stack trace.
    Show stack trace
  6. thsuWeathervia GitHub1 month ago
    It is impossible to create a new session because 'createSession' which takes HttpClient, InputStream and long was not found or it is not accessible Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T14:04:26.12Z' System info: host: 'Tonys-MBP', ip: 'fe80:0:0:0:ca:353d:74a2:196f%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.5', java.version: '1.8.0_121' Driver info: driver.version: AndroidDriver
    Show stack trace
  7. LeonieAdisvia GitHub1 month ago
    No message found for this stack trace.
    Show stack trace
  8. Unknown authorvia Google Groups1 month ago
    No message found for this stack trace.
    Show stack trace