axis-java-dev mailing list archives

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


Kondala Rao Vayineni updated AXIS2-821:

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

SOAP Output:
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv=""><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(
	at org.apache.axis2.engine.AxisEngine.send(
	at org.apache.axis2.description.OutInAxisOperationClient.send(
	at org.apache.axis2.description.OutInAxisOperationClient.execute(
	at org.apache.axis2.client.ServiceClient.sendReceive(
	at org.apache.axis2.client.ServiceClient.sendReceive(
Caused by: org.apache.axis2.AxisFault: Transport error: 400 Error: Bad Request
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(
	... 7 more
Caused by: org.apache.axis2.AxisFault: Transport error: 400 Error: Bad Request
	at org.apache.axis2.transport.http.HTTPSender.sendViaPost(
	at org.apache.axis2.transport.http.HTTPSender.send(
	at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(
	... 8 more
Caused by: org.apache.axis2.AxisFault: Transport error: 400 Error: Bad Request
	at org.apache.axis2.transport.http.HTTPSender.handleResponse(
	at org.apache.axis2.transport.http.HTTPSender.sendViaPost(
	... 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"/>
	    <parameter name="ServiceClass"></parameter>

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


> Getting errors when sending attachement using MTOM.
> ---------------------------------------------------
>                 Key: AXIS2-821
>                 URL:
>             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:,, 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 (
> [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;} {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>
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(
>      [java]     org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.addChild(
>      [java]     org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.getHeader(
>      [java]     org.apache.axis2.engine.AxisEngine.createFaultMessageContext(
>      [java]     org.apache.axis2.transport.http.AxisServlet.handleFault(
>      [java]     org.apache.axis2.transport.http.AxisServlet.doPost(
>      [java]     javax.servlet.http.HttpServlet.service(
>      [java]     javax.servlet.http.HttpServlet.service(
>      [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:
For additional commands, e-mail:

View raw message