Uploaded image for project: 'WSO2 ESB'
  1. WSO2 ESB
  2. ESBJAVA-2229

Application internal Error response is created in client for a successful application acknowledgement in HL7 transport acknowledgement

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Highest
    • Resolution: Not a bug
    • Affects Version/s: 4.7.0 Alpha
    • Fix Version/s: 4.7.0
    • Component/s: Transport
    • Labels:
      None
    • Environment:

      4.7.0

      Description

      Application internal Error response is created in client for a successful application acknowledgement in HL7 transport acknowledgement.

      Sent a message using the client to ESB. Following was the ESB proxy config.

      <proxy xmlns="http://ws.apache.org/ns/synapse" name="HL7Proxy" transports="hl7" statistics="disable" trace="disable" startOnLoad="true">
      <target>
      <inSequence>
      <property name="HL7_APPLICATION_ACK" value="true" scope="axis2"/>
      <send>
      <endpoint name="endpoint_urn_uuid_9CB8D06C91A1E996796270828144799-1418795938">
      <address uri="hl7://localhost:9988"/>
      </endpoint>
      </send>
      </inSequence>
      <outSequence>
      <property name="HL7_RESULT_MODE" value="NACK" scope="axis2"/>
      <property name="HL7_NACK_MESSAGE" value="error msg" scope="axis2"/>
      <send/>
      </outSequence>
      </target>
      <parameter name="transport.hl7.AutoAck">false</parameter>
      <parameter name="transport.hl7.ValidateMessage">false</parameter>
      <parameter name="transport.hl7.Port">9293</parameter>
      <description></description>
      </proxy>

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

      Following was printed in ESB side :
      -----------------------------------------------------------

      [2013-06-27 18:51:29,627] DEBUG - SynapseCallbackReceiver Synapse received an asynchronous response message
      [2013-06-27 18:51:29,627] DEBUG - SynapseCallbackReceiver Received To: null
      [2013-06-27 18:51:29,628] DEBUG - SynapseCallbackReceiver SOAPAction: null
      [2013-06-27 18:51:29,628] DEBUG - SynapseCallbackReceiver WSA-Action: null
      [2013-06-27 18:51:29,628] DEBUG - SynapseCallbackReceiver Body :
      <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><hl7:message xmlns:hl7="http://wso2.org/hl7"><ACK xmlns="urn:hl7-org:v2xml">
      <MSH>
      <MSH.1>|</MSH.1>
      <MSH.2>^~\&</MSH.2>
      <MSH.7>
      <TS.1>20130627185129.62+0530</TS.1>
      </MSH.7>
      <MSH.9>
      <CM_MSG.1>ACK</CM_MSG.1>
      </MSH.9>
      <MSH.10>24</MSH.10>
      <MSH.11>
      <PT.1>P</PT.1>
      </MSH.11>
      <MSH.12>2.3</MSH.12>
      </MSH>
      <MSA>
      <MSA.1>AA</MSA.1>
      <MSA.2>2507230029.0000</MSA.2>
      </MSA>
      </ACK></hl7:message></soapenv:Body></soapenv:Envelope>
      [2013-06-27 18:51:29,629] DEBUG - Axis2SynapseEnvironment Injecting MessageContext
      [2013-06-27 18:51:29,629] DEBUG - Axis2SynapseEnvironment Using the anonymous out-sequence specified in the proxy service [ Proxy Service [ Name : HL7Proxy ] ] for outgoing message mediation
      [2013-06-27 18:51:29,629] DEBUG - SequenceMediator Start : Sequence <anonymous>

      --------------------------------

      In the acceptor /Application side :
      -----------------------------------------------------

      [java] Jun 27, 2013 6:51:29 PM ca.uhn.log.HapiLogImpl info
      [java] Received message:
      [java] INFO: Accepted connection from 127.0.0.1MSH|^~\&|1104|1300_CCSS|ICAN|PAML|201111171459|5e31e7d5:13394dc197a:-5bfe|ORM^O01|2507230029.0000|P|2.3|1.0
      [java]
      [java] Jun 27, 2013 6:51:29 PM ca.uhn.log.HapiLogImpl info
      [java] INFO: Responder got message: MSH|^~\&|1104|1300_CCSS|ICAN|PAML|201111171459|5e31e7d5:13394dc197a:-5bfe|ORM^O01|2507230029.0000|P|2.3|1.0
      [java] PID|1||1234567890^^^PAN^TVL - COMMUNITY CARE 17TH STREET||TEST^MATT||19111111|M||||||||||||||||||||||NORC|NW|13797^H_Dx|||||||201111171457|P_PAML1||1300_CCSS^DR. PEPPER^^^^^&&UPIN^^^PAML||||C|||||TVL - COMMUNITY CARE 17TH STREET|1995 E 17TH STREETIDAHO FALLS^ID^83404OBR|1|13797^H_Dx||GLU^GLUCOSE^1300|N||201111171501||^ML||||FAST|||1300_CCSS^DR. PEPPER^^^^^&&UPIN^^^^PAML
      [java]
      [java] PID|1||1234567890^^^PAN^TVL - COMMUNITY CARE 17TH STREET||TEST^MATT||19111111|M||||||||||||||||||||||NORC|NW|13797^H_Dx|||||||201111171457|P_PAML1||1300_CCSS^DR. PEPPER^^^^^&&UPIN^^^PAML||||C|||||TVL - COMMUNITY CARE 17TH STREET|1995 E 17TH STREETIDAHO FALLS^ID^83404OBR|1|13797^H_Dx||GLU^GLUCOSE^1300|N||201111171501||^ML||||FAST|||1300_CCSS^DR. PEPPER^^^^^&&UPIN^^^^PAMLJun 27, 2013 6:51:29 PM ca.uhn.log.HapiLogImpl info
      [java] INFO: MSH|^~\&|1104|1300_CCSS|ICAN|PAML|201111171459|5e31e7d5:13394dc197a:-5bfe|ORM^O01|2507230029.0000|P|2.3|1.0
      [java] PID|1||1234567890^^^PAN^TVL - COMMUNITY CARE 17TH STREET||TEST^MATT||19111111|M||||||||||||||||||||||NORC|NW|13797^H_Dx|||||||201111171457|P_PAML1||1300_CCSS^DR. PEPPER^^^^^&&UPIN^^^PAML||||C|||||TVL - COMMUNITY CARE 17TH STREET|1995 E 17TH STREETIDAHO FALLS^ID^83404OBR|1|13797^H_Dx||GLU^GLUCOSE^1300|N||201111171501||^ML||||FAST|||1300_CCSS^DR. PEPPER^^^^^&&UPIN^^^^PAMLJun 27, 2013 6:51:29 PM ca.uhn.log.HapiLogImpl info
      [java] INFO: Instantiating msg of class ca.uhn.hl7v2.model.v23.message.RDO_O01
      [java] Jun 27, 2013 6:51:29 PM ca.uhn.log.HapiLogImpl info
      [java] INFO: Responder sending message: MSH|^~\&|||||20130627185129.62+0530||ACK|24|P|2.3
      [java] MSA|AA|2507230029.0000Jun 27, 2013 6:51:29 PM ca.uhn.log.HapiLogImpl info
      [java] INFO: MSH|^~\&|||||20130627185129.62+0530||ACK|24|P|2.3
      [java] MSA|AA|2507230029.0000Jun 27, 2013 6:51:29 PM ca.uhn.log.HapiLogImpl info
      [java] INFO: End of input stream reached.
      [java] Jun 27, 2013 6:51:29 PM ca.uhn.log.HapiLogImpl info
      [java] INFO: Closing connection (no more messages available).

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

      In the client,
      -----------------------

      hl7client:
      [java] Jun 27, 2013 6:51:29 PM ca.uhn.hl7v2.VersionLogger init[ Executing HL7Sender : HOST:localhost ;port :9293 ]
      [java] INFO: HAPI version is: 1.1
      [java]
      [java] Jun 27, 2013 6:51:29 PM ca.uhn.log.HapiLogImpl info
      [java] INFO: Instantiating msg of class ca.uhn.hl7v2.model.v23.message.RDO_O01
      [java] Received response:
      [java] MSH|^~\&|ICAN|PAML|1104|1300_CCSS|20130627185129.638+0530||ACK^O01|1302|P|2.3
      [java] Jun 27, 2013 6:51:29 PM ca.uhn.log.HapiLogImpl info
      [java] INFO: Initiator sending message: MSH|^~\&|1104|1300_CCSS|ICAN|PAML|201111171459|5e31e7d5:13394dc197a:-5bfe|ORM^O01|2507230029.0000|P|2.3|1.0
      [java] PID|1||1234567890^^^PAN^TVL - COMMUNITY CARE 17TH STREET||TEST^MATT||19111111|M||||||||||||||||||||||NORC|NW|13797^H_Dx|||||||201111171457|P_PAML1||1300_CCSS^DR. PEPPER^^^^^&&UPIN^^^PAML||||C|||||TVL - COMMUNITY CARE 17TH STREET|1995 E 17TH STREETIDAHO FALLS^ID^83404OBR|1|13797^H_Dx||GLU^GLUCOSE^1300|N||201111171501||^ML||||FAST|||1300_CCSS^DR. PEPPER^^^^^&&UPIN^^^^PAMLJun 27, 2013 6:51:29 PM ca.uhn.log.HapiLogImpl info
      [java] INFO: MSH|^~\&|1104|1300_CCSS|ICAN|PAML|201111171459|5e31e7d5:13394dc197a:-5bfe|ORM^O01|2507230029.0000|P|2.3|1.0
      [java] PID|1||1234567890^^^PAN^TVL - COMMUNITY CARE 17TH STREET||TEST^MATT||19111111|M||||||||||||||||||||||NORC|NW|13797^H_Dx|||||||201111171457|P_PAML1||1300_CCSS^DR. PEPPER^^^^^&&UPIN^^^PAML||||C|||||TVL - COMMUNITY CARE 17TH STREET|1995 E 17TH STREETIDAHO FALLS^ID^83404OBR|1|13797^H_Dx||GLU^GLUCOSE^1300|N||201111171501||^ML||||FAST|||1300_CCSS^DR. PEPPER^^^^^&&UPIN^^^^PAMLJun 27, 2013 6:51:29 PM ca.uhn.log.HapiLogImpl info
      [java] INFO: Initiator received message: MSH|^~\&|ICAN|PAML|1104|1300_CCSS|20130627185129.638+0530||ACK^O01|1302|P|2.3
      [java] MSA|AE|2507230029.0000|Application internal errorERR|^^^207&Application internal error&HL70357&&error msgJun 27, 2013 6:51:29 PM ca.uhn.log.HapiLogImpl info
      [java] INFO: MSH|^~\&|ICAN|PAML|1104|1300_CCSS|20130627185129.638+0530||ACK^O01|1302|P|2.3
      [java] MSA|AE|2507230029.0000|Application internal errorERR|^^^207&Application internal error&HL70357&&error msgJun 27, 2013 6:51:29 PM ca.uhn.log.HapiLogImpl info
      [java] INFO: Instantiating msg of class ca.uhn.hl7v2.model.v23.message.ACK
      [java] Jun 27, 2013 6:51:29 PM ca.uhn.log.HapiLogImpl info
      [java] INFO: SocketException on read() attempt. Socket appears to have been closed: Socket closed
      [java] Jun 27, 2013 6:51:29 PM ca.uhn.log.HapiLogImpl info
      [java] INFO: Closing connection (no more messages available).
      [java] MSA|AE|2507230029.0000|Application internal errorERR|^^^207&Application internal error&HL70357&&error msg

      --------------------------------

      Issue is :

      [java] MSA|AE|2507230029.0000|Application internal errorERR|^^^207&Application internal error&HL70357&&error msg

        Attachments

          Activity

            People

            • Assignee:
              rathav@wso2.com Vijayaratha Vijayasingam
              Reporter:
              ushani@wso2.com Ushani Balasooriya
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: