Sandesha2
  1. Sandesha2
  2. SANDESHA2-66

Sequence report of incoming sequences never gets status SEQUENCE_STATUS_TERMINATED

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Axis2 1.1, Sandesha2 1.1

      Description

      I wrote a client application that uses outgoing an incoming sequences. In this application I use the following code to wait until an incoming sequence is terminated:

      List reports = SandeshaClient.getIncomingSequenceReports(ctx);
      for (Iterator iter = reports.iterator(); iter.hasNext()

      { SequenceReport report = (SequenceReport) iter.next(); LOG.info("Waiting for termination of incoming sequence " + report.getSequenceID()); while (report.getSequenceStatus() != SequenceReport.SEQUENCE_STATUS_TERMINATED) Thread.sleep(500); LOG.info("Incoming sequence terminated."); }

      Even though a TerminateSequence message is received for my incoming sequence, the report's property sequenceStatus is never set to SEQUENCE_STATUS_TERMINATED and therefore the loop never ends.
      Here is my log output - it shows that the loop is waiting for a sequence ID to be terminated, and that the correct TerminateSequence message is received.

      INFO: Waiting for termination of incoming sequence urn:uuid:948EC6C07CB83E14871169447556828
      INFO: InFlowLogHandler: <?xml version='1.0' encoding='utf-8'?>
      <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header>
      <wsa:To>http://10.1.1.5:6066/axis2/services/BookingService25377109/CheckAvailability</wsa:To>
      <wsa:ReplyTo>
      <wsa:Address>http://localhost:8888/axis2/services/BookingService</wsa:Address></wsa:ReplyTo>
      <wsa:MessageID>urn:uuid:FE48E7B9B3FCB574841169447572165</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:948EC6C07CB83E14871169447556828</wsrm:Identifier>
      </wsrm:TerminateSequence>
      </soapenv:Body>
      </soapenv:Envelope>

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Thilo Frotscher
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development