File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes InvocationTargetException Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply 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: 1815
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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: InvocationTargetException
 
Similar Threads
Testing private methods using Reflection API
POI invocation target exception
save method shows exception in hibernate
Hibernate Exception
BeanUtil.CopyPRoperties