Announcement

Collapse
No announcement yet.

TCP Sender and Listener from txt file not wokring

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • TCP Sender and Listener from txt file not wokring

    Hello,

    I've created 2 channels-

    Channel Name -"Receives from TCP to file"- Reads data from TCP Listener and sends it to a File.
    Channel Name -"Sends data from file to TCP" - Reads txt file data and sends it over to TCP Sender.

    In Dashboard, I can see channel -"Sends data from file to TCP" is actually sending data over TCP but channel - "Receives from TCP to file" is errored out.

    This is the content of the text file-
    MSH|^~\&|EPIC|EPICADT|SMS|SMSADT|199912271408|CHAR RIS|ADT^A04|1817457|D|2.5|
    PID||0493575^^^2^ID 1|454721||DOE^JOHN^^^^|DOE^JOHN^^^^|19480203|M||B| 254 MYSTREET AVE^^MYTOWN^OH^44123^USA||(216)123-4567|||M|NON|400003403~1129086|
    NK1||ROE^MARIE^^^^|SPO||(216)123-4567||EC|||||||||||||||||||||||||||
    PV1||O|168 ~219~C~PMA^^^^^^^^^||||277^ALLEN MYLASTNAME^BONNIE^^^^|||||||||| ||2688684|||||||||||||||||||||||||199912271408|||| ||002376853

    Here is the error message I am getting -

    ER7Serializer error
    ERROR MESSAGE: Error converting XML to ER7
    org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog.
    at org.apache.xerces.util.ErrorHandlerWrapper.createS AXParseException(Unknown Source)
    at org.apache.xerces.util.ErrorHandlerWrapper.fatalEr ror(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportErro r(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportErro r(Unknown Source)
    at org.apache.xerces.impl.XMLErrorReporter.reportErro r(Unknown Source)
    at org.apache.xerces.impl.XMLScanner.reportFatalError (Unknown Source)
    at org.apache.xerces.impl.XMLDocumentScannerImpl$Prol ogDispatcher.dispatch(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanDocument(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse( Unknown Source)
    at com.mirth.connect.plugins.datatypes.hl7v2.ER7Seria lizer.fromXML(ER7Serializer.java:277)
    at com.mirth.connect.donkey.server.channel.FilterTran sformerExecutor.processConnectorMessage(FilterTran sformerExecutor.java:119)
    at com.mirth.connect.donkey.server.channel.Channel.pr ocess(Channel.java:1266)
    at com.mirth.connect.donkey.server.channel.Channel.di spatchRawMessage(Channel.java:956)
    at com.mirth.connect.donkey.server.channel.SourceConn ector.dispatchRawMessage(SourceConnector.java:175)
    at com.mirth.connect.donkey.server.channel.SourceConn ector.dispatchRawMessage(SourceConnector.java:152)
    at com.mirth.connect.connectors.tcp.TcpReceiver$TcpRe ader.call(TcpReceiver.java:601)
    at com.mirth.connect.connectors.tcp.TcpReceiver$TcpRe ader.call(TcpReceiver.java:462)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    I've attached my channel. Thanks in advance.
    Attached Files
Working...
X