This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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???
 
wood burning stoves
 
subject: java.lang.reflect.InvocationTargetException