aspose file tools*
The moose likes Web Services and the fly likes How to resolve java.lang.reflect.Invocationexception during AXIS2 Code Gen Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to resolve java.lang.reflect.Invocationexception during AXIS2 Code Gen" Watch "How to resolve java.lang.reflect.Invocationexception during AXIS2 Code Gen" New topic
Author

How to resolve java.lang.reflect.Invocationexception during AXIS2 Code Gen

Prasanna Lakshmi Tallapaka
Greenhorn

Joined: Jun 28, 2010
Posts: 24
Hi,

Could any of you be so kind to help me knowing how to resolve the exception mentioned above. Using the WL 10.3.4 and AXIS2 Code Gen for generating the WSDL, having java code handy using Eclipse 3.5+.

Please let me know if you need any more info.

Here is my code :

A project in eclipse - > Dynamic Web Project

ClientWS.java

right clicking on this class, was trying to generate the WSDL. Selected Axis2 Code Generator ->Generate a WSDL from JavaSource File->Next->AddFolder.
Gave the fully Qualified name of the class : com.antrix.ClimateWS. Added the folder at bin where the class file exists. ->Test Class File Loading.... - Class file loaded Successfully->next->next->gave the File OutPut location->Finish

I see an error like :

Error Occured While Completing Process-java.lang.reflect.InvocationTargetException.

Many thanks for your help!

Warm Regards,
Prasann Lakshmi
Naren Chivukula
Ranch Hand

Joined: Feb 03, 2004
Posts: 577

Hi Prasanna,
Is you web service deployed? Can you see it working by invoking WSDL url on the server? Have you tried testing from SOAP UI?


Cheers,
Naren
(OCEEJBD6, SCWCD5, SCDJWS, SCJP1.4 and Oracle SQL 1Z0-051)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to resolve java.lang.reflect.Invocationexception during AXIS2 Code Gen