jQuery in Action, 3rd edition
The moose likes Java in General and the fly likes InvocationTargetException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "InvocationTargetException" Watch "InvocationTargetException" New topic


Rajkumar Chandrasekaran

Joined: Nov 23, 2004
Posts: 11
Can anyone please let me know what could be the circumstances that lead to InvocationTargetException

Joel McNary

Joined: Aug 20, 2001
Posts: 1824

An InvocationTargetException occurs when using reflection (and RMI, maybe? It's been a while...) and the method that you are calling throws an exception. The InvocationTargetException's source exception should be the exception that was thrown by the called method.

Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
I agree. Here's the link: http://aspose.com/file-tools
subject: InvocationTargetException
It's not a secret anymore!