web stats
TCP Sender and Listener from txt file not wokring - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Thread Tools Display Modes
Old 09-11-2014, 12:01 PM
mkarim mkarim is offline
What's HL7?
Join Date: Sep 2014
Posts: 1
mkarim is on a distinguished road
Default TCP Sender and Listener from txt file not wokring


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|
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
File Type: xml Receives from TCP to File.xml (16.6 KB, 9 views)
File Type: xml Sends data from file to TCP.xml (19.0 KB, 6 views)
Reply With Quote

tcp listener, tcp sender

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -8. The time now is 08:09 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation