Uses of Class java.lang.reflect.InvocationTargetException (Java Platform SE 8 )
Date: 2026-07-22

## Uses of Class
java.lang.reflect.InvocationTargetException

- Packages that use InvocationTargetException
  Package | Description
  --- | ---
  java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images.
  java.lang.reflect | Provides classes and interfaces for obtaining reflective information about classes and objects.
  javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
  javax.xml.ws.spi | This package defines SPIs for JAX-WS.

- - ### Uses of InvocationTargetException in java.awt

    Methods in java.awt that throw InvocationTargetException
    Modifier and Type | Method and Description
    --- | ---
    `static void` | EventQueue.`invokeAndWait(Runnable runnable)` Causes `runnable` to have its `run` method called in the `dispatch thread` of `the system EventQueue`.

  - ### Uses of InvocationTargetException in java.lang.reflect

    Methods in java.lang.reflect that throw InvocationTargetException
    Modifier and Type | Method and Description
    --- | ---
    `Object` | Method.`invoke(Object obj, Object... args)` Invokes the underlying method represented by this `Method` object, on the specified object with the specified parameters.
    `T` | Constructor.`newInstance(Object... initargs)` Uses the constructor represented by this `Constructor` object to create and initialize a new instance of the constructor's declaring class, with the specified initialization parameters.

  - ### Uses of InvocationTargetException in javax.swing

    Methods in javax.swing that throw InvocationTargetException
    Modifier and Type | Method and Description
    --- | ---
    `static void` | SwingUtilities.`invokeAndWait(Runnable doRun)` Causes `doRun.run()` to be executed synchronously on the AWT event dispatching thread.

  - ### Uses of InvocationTargetException in javax.xml.ws.spi

    Methods in javax.xml.ws.spi that throw InvocationTargetException
    Modifier and Type | Method and Description
    --- | ---
    `abstract void` | Invoker.`inject(WebServiceContext webServiceContext)` JAX-WS runtimes calls this method to ask container to inject WebServiceContext on the endpoint instance.
    `abstract Object` | Invoker.`invoke(Method m, Object... args)` JAX-WS runtime calls this method to do the actual web service invocation on endpoint instance.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.