axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kondala Rao Vayineni (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-821) Getting errors when sending attachement using MTOM.
Date Tue, 18 Sep 2007 00:05:43 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-821?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kondala Rao Vayineni updated AXIS2-821:
---------------------------------------


Hi 
  I have tried this example, but getting the following AXISFault.  


SOAP Output:
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><soapenv:Fault><soapenv:Code><soapenv:Value>soapenv:Sender</soapenv:Value></soapenv:Code><soapenv:Reason><soapenv:Text
xml:lang="en-US">argument type mismatch</soapenv:Text></soapenv:Reason><soapenv:Detail></soapenv:Detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>

Exception :
org.apache.axis2.AxisFault: Transport error: 400 Error: Bad Request
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:221)
	at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
	at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
	at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
	at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:520)
	at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:500)
	at com.adp.ws.mtom.ex.MClient.testEchoXMLSync(MClient.java:63)
	at com.adp.ws.mtom.ex.MClient.main(MClient.java:26)
Caused by: org.apache.axis2.AxisFault: Transport error: 400 Error: Bad Request
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:314)
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:201)
	... 7 more
Caused by: org.apache.axis2.AxisFault: Transport error: 400 Error: Bad Request
	at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:179)
	at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73)
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:305)
	... 8 more
Caused by: org.apache.axis2.AxisFault: Transport error: 400 Error: Bad Request
	at org.apache.axis2.transport.http.HTTPSender.handleResponse(HTTPSender.java:320)
	at org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:177)
	... 10 more


entry in services.xml 
----------------------------------
           <service name="MTOMServiceWS" scope="application">
	    <description>MTOMServiceWS Sample Example </description>
	    <operation name="MTOMService">
	        <messageReceiver class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
	    </operation>	    
	    <parameter name="ServiceClass">com.adp.ws.mtom.ex.MTOMServiceWS</parameter>
	</service>


I am using AXIS2 1.3 version. Can you help me on this.

Thanks
Kondala

> Getting errors when sending attachement using MTOM.
> ---------------------------------------------------
>
>                 Key: AXIS2-821
>                 URL: https://issues.apache.org/jira/browse/AXIS2-821
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.0
>         Environment: TOMCAT 5.5.17 + AXIS2 1.0 + W2k + JDK1.5.06 
>            Reporter: Jenny N Zhang
>            Assignee: Thilina Gunarathne
>         Attachments: MTOMClient.java, MTOMServiceWS.java, test.xml, test1.jpg
>
>
> I was trying to use MTOM attachment  to send a test.xml to server.  Unfortunately no
SOAP messages were catched by SOAPMonitor, and I got errors in windows's console (listed below).
 The problem appeared to be similar to JIRA AXIS2-753 which hasn't been solved, but I am not
sure if they are the same, since in my case both SOAP1.1 and SOAP1.2 did not work. 
> It looked like that the SOAP envelop did not generate successfully, I tried both SOAP1.1
and  SOAP1.2, but get the same error result.  I also tried to send a test1.jpg file instead
of test.xml, but the result is the same.  
> ---------------- errors ---------------------
> "
> [java] log4j:WARN No appenders could be found for logger (org.apache.axiom.om.impl.builder.StAXOMBuilder).
> [java] log4j:WARN Please initialize the log4j system properly.
> [java] org.apache.axis2.AxisFault: Transport error 500 . Error Message is <html><head><title>Apache
Tomcat/5.5.17 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color
: black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP
Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b>
Exception report</p><p><b>message</b> <u></u></p><p><b>description</b>
<u>The server encountered an internal error () that prevented it from fulfilling this
request.</u></p><p><b>exception</b> <pre>org.apache.axiom.om.OMException:
SOAPEnvelope must contain a body element which is either first or second child element of
the SOAPEnvelope.
>      [java]     org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getBody(SOAPEnvelopeImpl.java:142)
>      [java]     org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.addChild(SOAPEnvelopeImpl.java:103)
>      [java]     org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(SOAPEnvelopeImpl.java:82)
>      [java]     org.apache.axis2.engine.AxisEngine.createFaultMessageContext(AxisEngine.java:183)
>      [java]     org.apache.axis2.transport.http.AxisServlet.handleFault(AxisServlet.java:168)
>      [java]     org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:153)
>      [java]     javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
>      [java]     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>      [java] </pre></p><p><b>note</b> <u>The full
stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.</u></p><HR
size="1" noshade="noshade"><h3>Apache Tomcat/5.5.17</h3></body></html>;
 
> ........ (repeated the above error again)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message