axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Peterson" <jim.peter...@issinc.com>
Subject OMException when receiving a fault message from a server using Axis2 with MTOM enabled
Date Thu, 25 May 2006 23:12:51 GMT
With MTOM enabled on the server, the client cannot interpret error messages.
An OMException is thrown stating that it cannot parse the response.  Using
TCP/MON shows the following MIME response which does not appear to be
correct:  (Why are there multiple MIME boundaries?  Two of the boundaries
contain incomplete XML, which I think causes the read error on the client.)

 

HTTP/1.1 500 Internal Server Error

Server: Apache-Coyote/1.1

X-Powered-By: Servlet 2.4; JBoss-4.0.3SP1 (build: CVSTag=JBoss_4_0_3_SP1
date=200510231054)/Tomcat-5.5

Set-Cookie: JSESSIONID=4DE2AA9DEF9BCBF6025A7D4D9A9486A6; Path=/

Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_E5C69581C63953D9CB11485766326347;
type="application/xop+xml";
start="<0.urn:uuid:E5C69581C63953D9CB11485766326348@apache.org>";
start-info="text/xml";charset=UTF-8Transfer-Encoding: chunkedDate: Thu, 25
May 2006 17:03:52 GMTConnection:
close2da--MIMEBoundaryurn_uuid_E5C69581C63953D9CB11485766326347content-type:
application/xop+xml; charset=UTF-8;
type="text/xml";content-transfer-encoding:binarycontent-id:

   <0.urn:uuid:E5C69581C63953D9CB11485766326348@apache.org>

      <?xml version='1.0' encoding='UTF-8'?>

         <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsa="http://www.w3.org/2005/08/addressing">

            <soapenv:Header>

               <wsa:ReplyTo>

 
<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

               </wsa:ReplyTo>

 
<wsa:MessageID>urn:uuid:EEDFFC3337D3F662F911485766326345</wsa:MessageID>

 
<wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action>

            </soapenv:Header>

            <soapenv:Body>

               <soapenv:Fault>

                  <faultcode>soapenv:Client</faultcode>

35b

 

--MIMEBoundaryurn_uuid_E5C69581C63953D9CB11485766326347----MIMEBoundaryurn_u
uid_E5C69581C63953D9CB11485766326347

content-type:application/xop+xml; charset=UTF-8; type="text/xml";

content-transfer-encoding:binary

content-id:

                  <0.urn:uuid:E5C69581C63953D9CB11485766326348@apache.org>

                     <?xml version='1.0' encoding='UTF-8'?>

                        <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsa="http://www.w3.org/2005/08/addressing">

                           <soapenv:Header>

                              <wsa:ReplyTo>

 
<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

                              </wsa:ReplyTo>

 
<wsa:MessageID>urn:uuid:EEDFFC3337D3F662F911485766326345</wsa:MessageID>

 
<wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action>

                           </soapenv:Header>

                           <soapenv:Body>

                              <soapenv:Fault>

                                 <faultcode>soapenv:Client</faultcode>

                                 <faultstring>WSDoAllReceiver: security
processing failed</faultstring>

1098

 

--MIMEBoundaryurn_uuid_E5C69581C63953D9CB11485766326347----MIMEBoundaryurn_u
uid_E5C69581C63953D9CB11485766326347

content-type:application/xop+xml; charset=UTF-8; type="text/xml";

content-transfer-encoding:binary

content-id:

 
<0.urn:uuid:E5C69581C63953D9CB11485766326348@apache.org>

                                    <?xml version='1.0' encoding='UTF-8'?>

                                       <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsa="http://www.w3.org/2005/08/addressing">

                                          <soapenv:Header>

                                             <wsa:ReplyTo>

 
<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

                                             </wsa:ReplyTo>

 
<wsa:MessageID>urn:uuid:EEDFFC3337D3F662F911485766326345</wsa:MessageID>

 
<wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action>

                                          </soapenv:Header>

                                          <soapenv:Body>

                                             <soapenv:Fault>

 
<faultcode>soapenv:Client</faultcode>

 
<faultstring>WSDoAllReceiver: security processing failed</faultstring>

                                                <detail>

 
<Exception>org.apache.axis2.AxisFault: WSDoAllReceiver: security processing
failed; nested exception is:
org.apache.ws.security.WSSecurityException: The security token could not be
authenticated or authorized&#13;  at
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.jav
a:183)&#13;      at
org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:
82)&#13;        at org.apache.axis2.engine.Phase.invoke(Phase.java:381)&#13;
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)&#13;
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)&#13;
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT
TPTransportUtils.java:284)&#13;      at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)&#13
;         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)&#13;        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)&#13;        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)&#13; at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)&#13;            at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.ja
va:81)&#13;         at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:202)&#13; at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)&#13;            at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)&#13;          at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)&#13;            at
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalVal
ve.java:39)&#13;       at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoci
ationValve.java:159)&#13;      at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:
59)&#13;      at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)&#13;         at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)&#13;            at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)&#13;  at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)&
#13;            at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)&#
13;            at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:744)&#13;      at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)&#13;  at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThre
ad.java:112)&#13;    at java.lang.Thread.run(Thread.java:595)&#13;Caused by:
org.apache.ws.security.WSSecurityException: The security token could not be
authenticated or authorized&#13;          at
org.apache.ws.security.processor.UsernameTokenProcessor.handleUsernameToken(
UsernameTokenProcessor.java:120)&#13;            at
org.apache.ws.security.processor.UsernameTokenProcessor.handleToken(Username
TokenProcessor.java:49)&#13;    at
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngi
ne.java:269)&#13; at
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngi
ne.java:191)&#13;

      at
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.jav
a:180)&#13;

      ... 27 more&#13;

</Exception>

 
</detail>10ca--MIMEBoundaryurn_uuid_E5C69581C63953D9CB11485766326347----MIME
Boundaryurn_uuid_E5C69581C63953D9CB11485766326347content-type:application/xo
p+xml; charset=UTF-8;
type="text/xml";content-transfer-encoding:binarycontent-id:

 
<0.urn:uuid:E5C69581C63953D9CB11485766326348@apache.org>

                                                   <?xml version='1.0'
encoding='UTF-8'?>

                                                      <soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:wsa="http://www.w3.org/2005/08/addressing">

                                                         <soapenv:Header>

                                                            <wsa:ReplyTo>

 
<wsa:Address>http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>

                                                            </wsa:ReplyTo>

 
<wsa:MessageID>urn:uuid:EEDFFC3337D3F662F911485766326345</wsa:MessageID>

 
<wsa:Action>http://www.w3.org/2005/08/addressing/fault</wsa:Action>

                                                         </soapenv:Header>

                                                         <soapenv:Body>

                                                            <soapenv:Fault>

 
<faultcode>soapenv:Client</faultcode>

 
<faultstring>WSDoAllReceiver: security processing failed</faultstring>

                                                               <detail>

 
<Exception>org.apache.axis2.AxisFault: WSDoAllReceiver: security processing
failed; nested exception is:
org.apache.ws.security.WSSecurityException: The security token could not be
authenticated or authorized&#13; at
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.jav
a:183)&#13;        at
org.apache.axis2.security.handler.WSDoAllHandler.invoke(WSDoAllHandler.java:
82)&#13;     at org.apache.axis2.engine.Phase.invoke(Phase.java:381)&#13;
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:473)&#13;
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:445)&#13;
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HT
TPTransportUtils.java:284)&#13;      at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)&#13
;         at
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)&#13;        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)&#13;        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)&#13; at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)&#13;            at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.ja
va:81)&#13;         at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:202)&#13; at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)&#13;            at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)&#13;          at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)&#13;            at
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalVal
ve.java:39)&#13;       at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssoci
ationValve.java:159)&#13;      at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:
59)&#13;      at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)&#13;         at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)&#13;            at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)&#13;  at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)&
#13;            at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)&#
13;            at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:744)&#13;      at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)&#13;  at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThre
ad.java:112)&#13;    at java.lang.Thread.run(Thread.java:595)&#13;Caused by:
org.apache.ws.security.WSSecurityException: The security token could not be
authenticated or authorized&#13;          at
org.apache.ws.security.processor.UsernameTokenProcessor.handleUsernameToken(
UsernameTokenProcessor.java:120)&#13;            at
org.apache.ws.security.processor.UsernameTokenProcessor.handleToken(Username
TokenProcessor.java:49)&#13;    at
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngi
ne.java:269)&#13;

      at
org.apache.ws.security.WSSecurityEngine.processSecurityHeader(WSSecurityEngi
ne.java:191)&#13;

      at
org.apache.axis2.security.WSDoAllReceiver.processMessage(WSDoAllReceiver.jav
a:180)&#13;

      ... 27 more&#13;

</Exception>

                                                               </detail>

                                                            </soapenv:Fault>

                                                         </soapenv:Body>

 
</soapenv:Envelope>3b--MIMEBoundaryurn_uuid_E5C69581C63953D9CB11485766326347
--0

 


Mime
View raw message