aspose file tools*
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
Author

java.lang.reflect.InvocationTargetException

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???
 
jQuery in Action, 2nd edition
 
subject: java.lang.reflect.InvocationTargetException
 
Similar Threads
HibernateTemplate help
How to programatically configure hibernate from struts 2?
Query with using Spring , EJB and Hibernate in the Application
Where to use Spring?
How to display DB table values?