permaculture playing cards
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

I get java.lang.reflect.InvocationTargetException why?

nick tomer

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.

nick tomer

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
Problem solved 2 seconds before my post.
Removing my question.

My free books and tutorials:
I agree. Here's the link:
subject: I get java.lang.reflect.InvocationTargetException why?
It's not a secret anymore!