Hi Jerome,

Sandesha2 1.1 does not support the RM 1.0 Anonynous InOut scenario (I.e. the
scenario where you replyTo value is anonymous). Sorry about not throwing an
elegant exception for this. Please change your client code to use Callbacks
and add the followng line.

clientOptions.setUseSeperateListener (true);

BTW we added support for this during the past few weeks. We you will get
that in the next release.

Chamikara


On 3/5/07, Jerome Camilleri <[EMAIL PROTECTED]> wrote:

Hi,

I use Axis2 1.1.1 with Sandesha2 1.1 module.
I generate a service IN-OUT with MTOM attachment in the request with an
WSDL file.
The service is running without sandesha.
When a activate the sandesha module and send one message into one
sequence (with last message flag positionned) the createSequence,
message one and terminate sequence is send by my client.
But it seems that an exception occurs just before the server send the
response to the sever and the exception in the client is raise :
org.apache.axis2.AxisFault: Incoming message input stream is null

Because I had activated the stack trace in the message fault and because
I used tcpmon I have a little more information about this error (nothing
is write on the server side !) :
<Exception>org.apache.sandesha2.SandeshaException: Out message does not
have a envelope: {0}; nested exception is:
org.apache.sandesha2.SandeshaException: Out message does not have a
envelope: {0}    at

org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.setUpHighestMsgNumbers
(TerminateSeqMsgProcessor.java:275)
at

org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.processInMessage
(TerminateSeqMsgProcessor.java:133)
at
org.apache.sandesha2.handlers.SandeshaInHandler.invoke(
SandeshaInHandler.java:155)
at org.apache.axis2.engine.Phase.invoke(Phase.java:382)    at
org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:522)    at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:487)    at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(
HTTPTransportUtils.java:328)
at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:254)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)    at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)    at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
ApplicationFilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(
ApplicationFilterChain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(
StandardWrapperValve.java:213)
at
org.apache.catalina.core.StandardContextValve.invoke(
StandardContextValve.java:178)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
at
org.apache.catalina.core.StandardEngineValve.invoke(
StandardEngineValve.java:107)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
:148)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection
(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(
PoolTcpEndpoint.java:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(
LeaderFollowerWorkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)Caused by:
org.apache.sandesha2.SandeshaException: Out message does not have a
envelope: {0}    at

org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor.setUpHighestMsgNumbers
(TerminateSeqMsgProcessor.java:238)
... 23 more</Exception>

I have activate debug log and I saw that on the server console :
2007-03-05 18:50:23,610 DEBUG
org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor - Enter:
TerminateSeqMsgProcessor::processInMessage
2007-03-05 18:50:23,610 DEBUG
org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor - Enter:
TerminateSeqMsgProcessor::setUpHighestMsgNumbers,
urn:uuid:BD5825D9D57D1897E61173117022922
2007-03-05 18:50:23,611 DEBUG
org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor - Exit:
TerminateSeqMsgProcessor::setUpHighestMsgNumbers
2007-03-05 18:50:23,612 DEBUG
org.apache.sandesha2.msgprocessors.TerminateSeqMsgProcessor - Exit:
TerminateSeqMsgProcessor::processInMessage true


Someone can help me about this stange exception ?
I try with a sequence containing more than one message but with no
change on this error.
When I try a service with IN-ONLY MEP there is no error so I think the
error comes during the response but why my service return a correct
response without sandesha and raise an exception with sandesha ?
BTW I don't really understand where the response should be (into the
MessageAcknowlegment) ?
CreateSequence -> CreateSequenceResponse
Message1 -> MessageAcknowlegment
TerminateSequence -> HTTP 202 Accepted

Attach my 3 requests of tcpmon trace.

Thanks in advance


Jérôme


==============
Listen Port: 9001
Target Host: 127.0.0.1
Target Port: 8080
==== Request ====
POST /axis2/services/Presto HTTP/1.1
User-Agent: Axis2
Host: 127.0.0.1:9001
Transfer-Encoding: chunked
Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_9B486CB9086757AE581173117256048;
type="application/xop+xml"; start="<
0.urn:uuid:[EMAIL PROTECTED]>";
start-info="application/soap+xml"; charset=UTF-8;action="
http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence";;
41a
--MIMEBoundaryurn_uuid_9B486CB9086757AE581173117256048
content-type: application/xop+xml; charset=UTF-8;
type="application/soap+xml";
content-transfer-encoding: binary
content-id:
   <0.urn:uuid:[EMAIL PROTECTED]>
      <?xml version='1.0' encoding='UTF-8'?>
         <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing";
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
            <soapenv:Header>
               <wsa:To>http://localhost:9001/axis2/services/Presto
</wsa:To>
               <wsa:ReplyTo>
                  <wsa:Address>
http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
               </wsa:ReplyTo>

<wsa:MessageID>urn:uuid:6194E52A9D2064D3DD1173117255108</wsa:MessageID>
               <wsa:Action>
http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence</wsa:Action>
            </soapenv:Header>
            <soapenv:Body>
               <wsrm:CreateSequence xmlns:wsrm="
http://schemas.xmlsoap.org/ws/2005/02/rm";>
                  <wsrm:AcksTo>
                     <wsa:Address>
http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
                  </wsrm:AcksTo>
               </wsrm:CreateSequence>
            </soapenv:Body>

</soapenv:Envelope>--MIMEBoundaryurn_uuid_9B486CB9086757AE581173117256048--0
==== Response ====
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/soap+xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 05 Mar 2007 17:54:16 GMT

374
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing";
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
      <soapenv:Header>
         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
         <wsa:ReplyTo>
            <wsa:Address>http://www.w3.org/2005/08/addressing/none
</wsa:Address>
         </wsa:ReplyTo>

<wsa:MessageID>urn:uuid:BD5825D9D57D1897E61173117256253</wsa:MessageID>
         <wsa:Action>
http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequenceResponse
</wsa:Action>
         <wsa:RelatesTo wsa:RelationshipType="
http://www.w3.org/2005/08/addressing/reply
">urn:uuid:6194E52A9D2064D3DD1173117255108</wsa:RelatesTo>
      </soapenv:Header>
      <soapenv:Body>
         <wsrm:CreateSequenceResponse xmlns:wsrm="
http://schemas.xmlsoap.org/ws/2005/02/rm";>

            
<wsrm:Identifier>urn:uuid:BD5825D9D57D1897E61173117256252</wsrm:Identifier>
         </wsrm:CreateSequenceResponse>
      </soapenv:Body>
   </soapenv:Envelope>0

==============

==============
Listen Port: 9001
Target Host: 127.0.0.1
Target Port: 8080
==== Request ====
POST /axis2/services/Presto HTTP/1.1
User-Agent: Axis2
Host: 127.0.0.1:9001
Transfer-Encoding: chunked
Content-Type: multipart/related;
boundary=MIMEBoundaryurn_uuid_9B486CB9086757AE581173117256295;
type="application/xop+xml"; start="<
0.urn:uuid:[EMAIL PROTECTED]>";
start-info="application/soap+xml";
charset=UTF-8;action="putFileRequestReponse";5b2--MIMEBoundaryurn_uuid_9B486CB9086757AE581173117256295content-type:
application/xop+xml; charset=UTF-8;
type="application/soap+xml";content-transfer-encoding: binarycontent-id:
   <0.urn:uuid:[EMAIL PROTECTED]>
      <?xml version='1.0' encoding='UTF-8'?>
         <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing";
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
            <soapenv:Header>
               <wsa:To>http://localhost:9001/axis2/services/Presto
</wsa:To>
               <wsa:ReplyTo>
                  <wsa:Address>
http://www.w3.org/2005/08/addressing/anonymous</wsa:Address>
               </wsa:ReplyTo>

<wsa:MessageID>urn:uuid:6194E52A9D2064D3DD1173117255040</wsa:MessageID>
               <wsa:Action>putFileRequestReponse</wsa:Action>
               <wsrm:Sequence xmlns:wsrm="
http://schemas.xmlsoap.org/ws/2005/02/rm"; soapenv:mustUnderstand="1">

                  
<wsrm:Identifier>urn:uuid:BD5825D9D57D1897E61173117256252</wsrm:Identifier>
                  <wsrm:MessageNumber>1</wsrm:MessageNumber>
                  <wsrm:LastMessage />
               </wsrm:Sequence>
            </soapenv:Header>
            <soapenv:Body>
               <ns2:putFileRequest xmlns:ns2="http://presto.bull.fr/beans/
">
                  <fileName xmlns="http://presto.bull.fr/beans/
">Axis2/out/WS-text.txt</fileName>
                  <fileData xmlns:axis2ns1="
http://www.w3.org/2005/05/xmlmime"; xmlns="http://presto.bull.fr/beans/";
axis2ns1:contentType="text/plain">
                     <base64Binary xmlns="http://www.w3.org/2001/XMLSchema
">dGVzdCBqZXJvbWUK</base64Binary>
                  </fileData>
               </ns2:putFileRequest>
            </soapenv:Body>

</soapenv:Envelope>--MIMEBoundaryurn_uuid_9B486CB9086757AE581173117256295--0
==== Response ====
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/soap+xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 05 Mar 2007 17:54:16 GMT

332
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing";
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
      <soapenv:Header>
         <wsrm:SequenceAcknowledgement xmlns:wsrm="
http://schemas.xmlsoap.org/ws/2005/02/rm"; soapenv:mustUnderstand="0">

            
<wsrm:Identifier>urn:uuid:BD5825D9D57D1897E61173117256252</wsrm:Identifier>
            <wsrm:AcknowledgementRange Lower="1" Upper="1" />
         </wsrm:SequenceAcknowledgement>
         <wsa:To>http://www.w3.org/2005/08/addressing/anonymous</wsa:To>
         <wsa:ReplyTo>
            <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous
</wsa:Address>
         </wsa:ReplyTo>

<wsa:MessageID>urn:uuid:BD5825D9D57D1897E61173117256542</wsa:MessageID>
         <wsa:Action>
http://schemas.xmlsoap.org/ws/2005/02/rm/SequenceAcknowledgement
</wsa:Action>
      </soapenv:Header>
      <soapenv:Body />
   </soapenv:Envelope>0

==============

==============
Listen Port: 9001
Target Host: 127.0.0.1
Target Port: 8080
==== Request ====
POST /axis2/services/Presto HTTP/1.1
User-Agent: Axis2
Host: 127.0.0.1:9001
Transfer-Encoding: chunked
Content-Type: application/soap+xml; charset=UTF-8;action="
http://schemas.xmlsoap.org/ws/2005/02/rm/TerminateSequence";;

2de
<?xml version='1.0' encoding='UTF-8'?>
   <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing";
xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
      <soapenv:Header>
         <wsa:To>http://localhost:9001/axis2/services/Presto</wsa:To>
         <wsa:ReplyTo>
            <wsa:Address>http://www.w3.org/2005/08/addressing/anonymous
</wsa:Address>
         </wsa:ReplyTo>

<wsa:MessageID>urn:uuid:6194E52A9D2064D3DD1173117256631</wsa:MessageID>
         <wsa:Action>
http://schemas.xmlsoap.org/ws/2005/02/rm/TerminateSequence</wsa:Action>
      </soapenv:Header>
      <soapenv:Body>
         <wsrm:TerminateSequence xmlns:wsrm="
http://schemas.xmlsoap.org/ws/2005/02/rm";>

            
<wsrm:Identifier>urn:uuid:BD5825D9D57D1897E61173117256252</wsrm:Identifier>
         </wsrm:TerminateSequence>
      </soapenv:Body>
   </soapenv:Envelope>0
==== Response ====
HTTP/1.1 202 Accepted
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Mon, 05 Mar 2007 17:54:16 GMT

0


==============


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to