aspose file tools*
The moose likes Java in General and the fly likes java.lang.reflect.InvocationException in tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "java.lang.reflect.InvocationException in tomcat" Watch "java.lang.reflect.InvocationException in tomcat" New topic
Author

java.lang.reflect.InvocationException in tomcat

srikanth Thandra
Ranch Hand

Joined: Mar 04, 2009
Posts: 42
Hi everyone,

I am doing a webservices application. I am calling a service called UserService which is deployed in Tomcat.In that service a method called upload is there.I am passing a SOAP request to that service with the help of XML.

But it is throwing a exception called

in tomcat java.lang.reflect.InvocationException

in eclipse javax.xml.SoapException :Exception occured while invoking method upload

I need help on breaking the above exception. can anyone suggest me the solution


Thanx in advance,
Srikanth
Nitesh Kant
Bartender

Joined: Feb 25, 2007
Posts: 1638

srikanth Thandra wrote:I need help on breaking the above exception. can anyone suggest me the solution

I do not think anybody can help you if you do not give the details of the exception, your Soap API and the soap request.

Moving to webservices forum.


apigee, a better way to API!
srikanth Thandra
Ranch Hand

Joined: Mar 04, 2009
Posts: 42

My SOAP request is shown below and the jars used are axis2-saaj-api-1.4.1.jar,axis2-saaj-1.4.1.jar

REQUEST:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body>

<ns:uploadFile xmlns:ns="http://services">
<ns:name>test123</ns:name>
<ns:attchmentID>1234</ns:attchmentID>
</ns:uploadFile>

</SOAP-ENV:Body></SOAP-ENV:Envelope>


generated Exception is.....

javax.xml.soap.SOAPException: Exception occurred while trying to invoke service method uploadFile
at org.apache.axis2.saaj.SOAPConnectionImpl.handleSOAPMessage(SOAPConnectionImpl.java:194)
at org.apache.axis2.saaj.SOAPConnectionImpl.call(SOAPConnectionImpl.java:128)
at com.posidex.saaj.Attachment.main(Attachment.java:72)
Caused by: org.apache.axis2.AxisFault: Exception occurred while trying to invoke service method uploadFile
at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:512)
at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:370)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at org.apache.axis2.saaj.SOAPConnectionImpl.handleSOAPMessage(SOAPConnectionImpl.java:188)
... 2 more

and i have attached an image file which consists of exception in tomcat i underlined that exception.please find the attachment.




[Thumbnail for exception.JPG]

William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12678
    
    5
Are you sure about that exact exception? In the JavaDocs for java.lang.reflect in Java 1.5 and 1.6 I dont find a InvocationException.

I find InvocationTargetException - which has a getCause() method.

Which version of Java are you compiling with - which version is Tomcat running with?

Bill


Java Resources at www.wbrogden.com
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.lang.reflect.InvocationException in tomcat
 
Similar Threads
unable to upload file to remote system when tomcat being open in service mode
unable to upload file when tomcat open in service mode
Not able to upload a file with Japanese file name using Apache Commons Net library (JAVA)?
How to resolve java.lang.reflect.Invocationexception during AXIS2 Code Gen
overloading of init-service and destroy methods