[ http://issues.apache.org/jira/browse/AXIS2-821?page=all ]
Deepal Jayasinghe reassigned AXIS2-821:
---------------------------------------
Assign To: Thilina Gunarathne
Thilina , any possibility of looking to this
> Getting errors when sending attachement using MTOM.
> ---------------------------------------------------
>
> Key: AXIS2-821
> URL: http://issues.apache.org/jira/browse/AXIS2-821
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> 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.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]