Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: I get java.lang.reflect.InvocationTargetException why?

  1. #1
    Junior Member
    Join Date
    Oct 2010
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I get java.lang.reflect.InvocationTargetException why?

    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

  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,320
    Thanks
    181
    Thanked 833 Times in 772 Posts
    Blog Entries
    5

    Default Re: I get java.lang.reflect.InvocationTargetException why?

    These exceptions are typically thrown at errors when using java reflection. Tomcat uses all this behind the scenes so reflection may not be the direct problem. What is your client (web, stand-along, etc...)? Are you performing any JNDI lookups? Lastly, double check your web.xml file for accuracy.

  3. #3
    Junior Member
    Join Date
    Oct 2010
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I get java.lang.reflect.InvocationTargetException why?

    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.

  4. #4
    Junior Member
    Join Date
    Feb 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: I get java.lang.reflect.InvocationTargetException why?

    Hi, m also getting this error.
    I am creating a axis2 client from wsdl using eclipse. As I finish the Axis2 codegen wizard in eclipse, it throws this error.
    Do any one know, why is this happening??

    Thanks in advance..!!!

Similar Threads

  1. Replies: 0
    Last Post: August 30th, 2010, 07:34 AM
  2. AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
    By nasi in forum What's Wrong With My Code?
    Replies: 6
    Last Post: March 25th, 2010, 10:37 PM
  3. java.lang.NullPointerException - Help
    By mds1256 in forum Exceptions
    Replies: 5
    Last Post: November 30th, 2009, 06:31 PM
  4. Java.lang.reflect.invocationTargetException
    By varun in forum Exceptions
    Replies: 5
    Last Post: November 3rd, 2009, 10:40 AM
  5. Replies: 2
    Last Post: November 3rd, 2009, 06:28 AM