Sihai network

What exception is invocationtargetexception

Invocationtargetexception is a checked exception that wraps the exception thrown by the calling method or constructor. It may be caused by the missing jar package under the web project. Check the exception log information reported by the console in detail, and then find the relevant jar package or duplicate package accordingly.

This exception is not specific to Eclipse Plug-in Development, but in the standard JDK, which is defined in Java Lang.reflect package. This exception is rarely encountered in java development, but it is different in Eclipse Plug-in Development. Many APIs declare to throw this kind of exception, so this exception must be handled. (invocationtargetexceptionShiShenMeYiChang)