You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2007/04/05 17:23:33 UTC

[jira] Resolved: (AXIS2-821) Getting errors when sending attachement using MTOM.

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

Davanum Srinivas resolved AXIS2-821.
------------------------------------

    Resolution: Fixed

> 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
>         Assigned To: 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