File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Application Frameworks and the fly likes java.lang.reflect.InvocationTargetException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "java.lang.reflect.InvocationTargetException" Watch "java.lang.reflect.InvocationTargetException" New topic


Goran Markovic
Ranch Hand

Joined: Sep 26, 2008
Posts: 399
Hi, I receive this exception when I try to save object, using HibernateTemplate, during integration of one par of application (The part where I test Hibernate/Spring in conjuction), into present Struts 2 application.
In other words I have a Struts 2 applicatio, which work with JDBC database comunication (low level, I write every insertion, selection, and so on...).
Now, I would like to integrate Hibernate in it, so HibernateTemplate can perform such an operation. I tested this part of code where Hibernate communicate with database separately (where Spring create beans for Hibernate), and perform successful saving of objects. Now when I want to corporate this part of code with struts2 application, I get the exception from title.
What goes wrong? I 've read that 'An object of this class is thrown by Method.invoke() and Constructor.newInstance() when an exception is thrown by the method or constructor invoked through those methods', but I cannot get it what should I do. Does anyone know maybe solution???
I agree. Here's the link:
subject: java.lang.reflect.InvocationTargetException
It's not a secret anymore!