File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes I get java.lang.reflect.InvocationTargetException why? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "I get java.lang.reflect.InvocationTargetException why?" Watch "I get java.lang.reflect.InvocationTargetException why?" New topic
Author

I get java.lang.reflect.InvocationTargetException why?

nick tomer
Greenhorn

Joined: Oct 18, 2010
Posts: 26
Hi. I am working with eclipse and tomcat 7. I have made a java class, with a function that gets a parameter string and returns a boolean value. The string parameter is actualy a xml that contains digital signature in it.
I create a web service and a client from this class with eclipse wizard but when i am going to test the web service via the client i am getting this exception "java.lang.reflect.InvocationTargetException"
Why this happens? I have created many web services this way and i am sure that i am not making any mistake with the create procedure.

thanks
nick tomer
Greenhorn

Joined: Oct 18, 2010
Posts: 26
Problem solved. I was using the org.apache.xerces.parsers.DOMParser class that it has a bug. so i replaced it with another an all worked fine.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Problem solved 2 seconds before my post.
Removing my question.


My free books and tutorials: http://www.slideshare.net/krizsan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I get java.lang.reflect.InvocationTargetException why?