*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "InvocationTargetException" Watch "InvocationTargetException" New topic
Author

InvocationTargetException

Rajkumar Chandrasekaran
Greenhorn

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

Thanks
Rajkumar
Joel McNary
Bartender

Joined: Aug 20, 2001
Posts: 1817

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
 
Similar Threads
Testing private methods using Reflection API
Hibernate Exception
BeanUtil.CopyPRoperties
save method shows exception in hibernate
POI invocation target exception