Announcement

Collapse
No announcement yet.

Deploying outbound channel - Initialisation Failure: unterminated string literal

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

  • Deploying outbound channel - Initialisation Failure: unterminated string literal

    ===========
    Mirth 1.3.1
    ===========

    I imported the Outbound sample in FileRepository and modified it for SQL Server 2000. When I try to deploy the channel I get the "unterminated string literal" error.

    Any help to resolve this error would be appreciated.

    I have also included the channel export.

    Thanks in advance



    ========= Error Message ========
    ERROR 2007-01-05 18:31:21,540 [Thread-0] org.apache.commons.digester.Digester: End event threw exception
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.commons.beanutils.MethodUtils.invokeMet hod(MethodUtils.java:216)
    at org.apache.commons.digester.SetRootRule.end(SetRoo tRule.java:209)
    at org.apache.commons.digester.Rule.end(Rule.java:230 )
    at org.apache.commons.digester.Digester.endElement(Di gester.java:1130)
    at org.apache.xerces.parsers.AbstractSAXParser.endEle ment(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanEndElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl$FragmentContentDispatcher.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 org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser .parse(Unknown Source)
    at org.apache.commons.digester.Digester.parse(Digeste r.java:1685)
    at org.mule.config.builders.AbstractDigesterConfigura tion.process(AbstractDigesterConfiguration.java:11 9)
    at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXmlConfigurationBuilder.java:202)
    at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXmlConfigurationBuilder.java:194)
    at com.webreach.mirth.server.Mirth.startMule(Mirth.ja va:164)
    at com.webreach.mirth.server.Mirth.restartMule(Mirth. java:147)
    at com.webreach.mirth.server.Mirth.run(Mirth.java:103 )
    Caused by: org.mule.umo.lifecycle.InitialisationException: Initialisation Failure: unterminated string literal (4276d548-4c59-403e-b551-f129cf9dafd7#3)
    at com.webreach.mirth.server.mule.transformers.JavaSc riptTransformer.initialise(JavaScriptTransformer.j ava:158)
    at org.mule.MuleManager.registerTransformer(MuleManag er.java:564)
    ... 24 more
    Caused by: org.mozilla.javascript.EvaluatorException: unterminated string literal (4276d548-4c59-403e-b551-f129cf9dafd7#3)
    at org.mozilla.javascript.DefaultErrorReporter.runtim eError(DefaultErrorReporter.java:95)
    at org.mozilla.javascript.DefaultErrorReporter.error( DefaultErrorReporter.java:82)
    at org.mozilla.javascript.Parser.addError(Parser.java :122)
    at org.mozilla.javascript.TokenStream.getToken(TokenS tream.java:514)
    at org.mozilla.javascript.Parser.peekToken(Parser.jav a:140)
    at org.mozilla.javascript.Parser.matchToken(Parser.ja va:184)
    at org.mozilla.javascript.Parser.argumentList(Parser. java:1588)
    at org.mozilla.javascript.Parser.memberExpr(Parser.ja va:1623)
    at org.mozilla.javascript.Parser.unaryExpr(Parser.jav a:1503)
    at org.mozilla.javascript.Parser.mulExpr(Parser.java: 1432)
    at org.mozilla.javascript.Parser.addExpr(Parser.java: 1413)
    at org.mozilla.javascript.Parser.shiftExpr(Parser.jav a:1393)
    at org.mozilla.javascript.Parser.relExpr(Parser.java: 1367)
    at org.mozilla.javascript.Parser.eqExpr(Parser.java:1 323)
    at org.mozilla.javascript.Parser.bitAndExpr(Parser.ja va:1312)
    at org.mozilla.javascript.Parser.bitXorExpr(Parser.ja va:1301)
    at org.mozilla.javascript.Parser.bitOrExpr(Parser.jav a:1290)
    at org.mozilla.javascript.Parser.andExpr(Parser.java: 1278)
    at org.mozilla.javascript.Parser.orExpr(Parser.java:1 266)
    at org.mozilla.javascript.Parser.condExpr(Parser.java :1249)
    at org.mozilla.javascript.Parser.assignExpr(Parser.ja va:1231)
    at org.mozilla.javascript.Parser.variables(Parser.jav a:1207)
    at org.mozilla.javascript.Parser.statementHelper(Pars er.java:1018)
    at org.mozilla.javascript.Parser.statement(Parser.jav a:619)
    at org.mozilla.javascript.Parser.parseFunctionBody(Pa rser.java:413)
    at org.mozilla.javascript.Parser.function(Parser.java :519)
    at org.mozilla.javascript.Parser.parse(Parser.java:34 4)
    at org.mozilla.javascript.Parser.parse(Parser.java:28 9)
    at org.mozilla.javascript.Context.compileImpl(Context .java:2190)
    at org.mozilla.javascript.Context.compileString(Conte xt.java:1284)
    at org.mozilla.javascript.Context.compileString(Conte xt.java:1273)
    at com.webreach.mirth.server.mule.transformers.JavaSc riptTransformer.initialise(JavaScriptTransformer.j ava:146)
    ... 25 more
    WARN 2007-01-05 18:31:21,550 [Thread-0] com.webreach.mirth.server.Mirth: Error deploying channels.
    org.mule.config.ConfigurationException: Failed to parse configuration resource "C:\Program Files\Mirth 1.3.1\conf\mule-config.xml" (org.mule.config.ConfigurationException)
    at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXmlConfigurationBuilder.java:196)
    at com.webreach.mirth.server.Mirth.startMule(Mirth.ja va:164)
    at com.webreach.mirth.server.Mirth.restartMule(Mirth. java:147)
    at com.webreach.mirth.server.Mirth.run(Mirth.java:103 )
    Caused by: org.mule.config.ConfigurationException: Failed to parse configuration resource "C:\Program Files\Mirth 1.3.1\conf\mule-config.xml"
    at org.mule.config.builders.AbstractDigesterConfigura tion.process(AbstractDigesterConfiguration.java:12 1)
    at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXmlConfigurationBuilder.java:202)
    at org.mule.config.builders.MuleXmlConfigurationBuild er.configure(MuleXmlConfigurationBuilder.java:194)
    ... 3 more
    Caused by: org.mule.umo.lifecycle.InitialisationException: Initialisation Failure: unterminated string literal (4276d548-4c59-403e-b551-f129cf9dafd7#3)
    at org.apache.commons.digester.Digester.createSAXExce ption(Digester.java:2919)
    at org.apache.commons.digester.Digester.createSAXExce ption(Digester.java:2945)
    at org.apache.commons.digester.Digester.endElement(Di gester.java:1133)
    at org.apache.xerces.parsers.AbstractSAXParser.endEle ment(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanEndElement(Unknown Source)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl$FragmentContentDispatcher.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 org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser .parse(Unknown Source)
    at org.apache.commons.digester.Digester.parse(Digeste r.java:1685)
    at org.mule.config.builders.AbstractDigesterConfigura tion.process(AbstractDigesterConfiguration.java:11 9)
    ... 5 more



    =========== Channel Export ============


    <com.webreach.mirth.model.Channel>
    <id>739c7d6b-6e70-4d35-b766-fa217de48b85</id>
    <name>TestOutbound</name>
    <description>line1
    line2
    line3
    </description>
    <enabled>false</enabled>
    <version>1.3.1</version>
    <revision>19</revision>
    <direction>OUTBOUND</direction>
    <protocol>HL7</protocol>
    <mode>ROUTER</mode>
    <sourceConnector>
    <name>sourceConnector</name>
    <properties>
    <property name="pollingFrequency">5000</property>
    <property name="username">sa</property>
    <property name="DataType">Database Reader</property>
    <property name="useAck">1</property>
    <property name="URL">jdbc:jtds:sqlserver://testserver:1433/PatientRepository</property>
    <property name="query">SELECT LastName, PatientID, FirstName
    FROM Patient WHERE PatientID = 12345;

    </property>
    <property name="password">test</property>
    <property name="driver">net.sourceforge.jtds.jdbc.Driver</property>
    <property name="host">query</property>
    <property name="ack">UPDATE Patient SET Phone1 = &apos;2021112222&apos;
    WHERE PatientID = ${patientid}</property>
    </properties>
    <transformer>
    <steps/>
    </transformer>
    <filter>
    <rules/>
    </filter>
    <transportName>Database Reader</transportName>
    </sourceConnector>
    <destinationConnectors>
    <com.webreach.mirth.model.Connector>
    <name>Destination 1</name>
    <properties>
    <property name="charsetEncoding">DEFAULT_ENCODING</property>
    <property name="outputAppend">1</property>
    <property name="outputPattern">OUT${UUID}.txt</property>
    <property name="DataType">File Writer</property>
    <property name="template">ER7: ${message.encodedData}
    XML: ${message.transformedData}</property>
    <property name="host">c:/test2</property>
    </properties>
    <transformer>
    <steps>
    <com.webreach.mirth.model.Step>
    <sequenceNumber>0</sequenceNumber>
    <name>tmp[&apos;PID&apos;][&apos;PID.5&apos;][&apos;XPN.2&apos;]</name>
    <script>tmp[&apos;PID&apos;][&apos;PID.5&apos;][&apos;XPN.2&apos;] = validate(msg[&apos;lastname&apos;]);</script>
    <type>HL7 Message Builder</type>
    <data class="map">
    <entry>
    <string>Mapping</string>
    <string>msg[&apos;lastname&apos;]</string>
    </entry>
    <entry>
    <string>Variable</string>
    <string>tmp[&apos;PID&apos;][&apos;PID.5&apos;][&apos;XPN.2&apos;]</string>
    </entry>
    </data>
    </com.webreach.mirth.model.Step>
    </steps>
    <template>MSH|^~\&|AccMgr|1|||20060404090746||ADT^ A04|6035910|D|2.3.1
    EVN|A04|20060404090742
    PID|1|800888^^^AccMgr^PN|999945682^^^AccMgr^MR^1|| TEST^PATIENT MF||19570414|M||W|21 PALM MANOR^^EAST SYRACUSE^NY^130570000^^M|31|||E|M||6635130^^^AccMg r^VN^1|000987655|||2|||||NOT A VETERAN|||N
    PD1||||1335^ALCOTT^KAREN^^^^^^AccMgr^^^^CI|||I
    NK1|1|TEST^MARGARET|W|21 PALM MANOR^^EAST SYRACUSE^NY^130570000|||Y
    PV1|1|E|ED^^^1|1|||1281^MARKHAM^JOSEPH^^^^^^AccMgr ^^^^CI|1281^MARKHAM^JOSEPH^^^^^^AccMgr^^^^CI||ED|| ||7|S|||62|6635130^^^AccMgr^VN^1|865^SP KOPP|||||||||||||||||||1||A|||20060404090500
    PV2||^NO||||||20060404090500|||||||||||||||||||||| ||||||||S
    DG1|1||^HEADACHE|HEADACHE||A|||||||||0
    GT1|1|382582|TEST^PATIENT MF||21 PALM MANOR^^EAST SYRACUSE^NY^130570000|||19570414|M|||000987655|||| ||||11
    IN1|1|SELF PAY NYS|734|SELF PAY NYS|||||||||||5|TEST^PATIENT MF|1|19570414|21 PALM MANOR^^EAST SYRACUSE^NY^130570000|||||||||||||||||||||||11|M|| ||||382582
    IN1|2|SELF PAY|705|SELFPAY|||||||||||5||1
    IN2|1||000987655</template>
    </transformer>
    <filter>
    <rules>
    <com.webreach.mirth.model.Rule>
    <sequenceNumber>0</sequenceNumber>
    <name>New Rule</name>
    <script>return msg[&apos;patientid&apos;] == "12345";</script>
    <operator>NONE</operator>
    </com.webreach.mirth.model.Rule>
    </rules>
    <template>MSH|^~\&|AccMgr|1|||20060404090746||ADT^ A04|6035910|D|2.3.1
    EVN|A04|20060404090742
    PID|1|800888^^^AccMgr^PN|999945682^^^AccMgr^MR^1|| TEST^PATIENT MF||19570414|M||W|21 PALM MANOR^^EAST SYRACUSE^NY^130570000^^M|31|||E|M||6635130^^^AccMg r^VN^1|000987655|||2|||||NOT A VETERAN|||N
    PD1||||1335^ALCOTT^KAREN^^^^^^AccMgr^^^^CI|||I
    NK1|1|TEST^MARGARET|W|21 PALM MANOR^^EAST SYRACUSE^NY^130570000|||Y
    PV1|1|E|ED^^^1|1|||1281^MARKHAM^JOSEPH^^^^^^AccMgr ^^^^CI|1281^MARKHAM^JOSEPH^^^^^^AccMgr^^^^CI||ED|| ||7|S|||62|6635130^^^AccMgr^VN^1|865^SP KOPP|||||||||||||||||||1||A|||20060404090500
    PV2||^NO||||||20060404090500|||||||||||||||||||||| ||||||||S
    DG1|1||^HEADACHE|HEADACHE||A|||||||||0
    GT1|1|382582|TEST^PATIENT MF||21 PALM MANOR^^EAST SYRACUSE^NY^130570000|||19570414|M|||000987655|||| ||||11
    IN1|1|SELF PAY NYS|734|SELF PAY NYS|||||||||||5|TEST^PATIENT MF|1|19570414|21 PALM MANOR^^EAST SYRACUSE^NY^130570000|||||||||||||||||||||||11|M|| ||||382582
    IN1|2|SELF PAY|705|SELFPAY|||||||||||5||1
    IN2|1||000987655</template>
    </filter>
    <transportName>File Writer</transportName>
    </com.webreach.mirth.model.Connector>
    <com.webreach.mirth.model.Connector>
    <name>Destination 2</name>
    <properties>
    <property name="charsetEncoding">DEFAULT_ENCODING</property>
    <property name="outputAppend">1</property>
    <property name="outputPattern">mout2.txt</property>
    <property name="DataType">File Writer</property>
    <property name="template">er7: ${message.encodedData}</property>
    <property name="host">c:/test2</property>
    </properties>
    <transformer>
    <steps>
    <com.webreach.mirth.model.Step>
    <sequenceNumber>0</sequenceNumber>
    <name>tmp[&apos;PID&apos;][&apos;PID.5&apos;][&apos;XPN.2&apos;]</name>
    <script>tmp[&apos;PID&apos;][&apos;PID.5&apos;][&apos;XPN.2&apos;] = validate(msg[&apos;lastname&apos;]);</script>
    <type>HL7 Message Builder</type>
    <data class="map">
    <entry>
    <string>Mapping</string>
    <string>msg[&apos;lastname&apos;]</string>
    </entry>
    <entry>
    <string>Variable</string>
    <string>tmp[&apos;PID&apos;][&apos;PID.5&apos;][&apos;XPN.2&apos;]</string>
    </entry>
    </data>
    </com.webreach.mirth.model.Step>
    </steps>
    <template>MSH|^~\&|AccMgr|1|||20060404090746||ADT^ A04|6035910|D|2.3.1
    EVN|A04|20060404090742
    PID|1|800888^^^AccMgr^PN|999945682^^^AccMgr^MR^1|| TEST^PATIENT MF||19570414|M||W|21 PALM MANOR^^EAST SYRACUSE^NY^130570000^^M|31|||E|M||6635130^^^AccMg r^VN^1|000987655|||2|||||NOT A VETERAN|||N
    PD1||||1335^ALCOTT^KAREN^^^^^^AccMgr^^^^CI|||I
    NK1|1|TEST^MARGARET|W|21 PALM MANOR^^EAST SYRACUSE^NY^130570000|||Y
    PV1|1|E|ED^^^1|1|||1281^MARKHAM^JOSEPH^^^^^^AccMgr ^^^^CI|1281^MARKHAM^JOSEPH^^^^^^AccMgr^^^^CI||ED|| ||7|S|||62|6635130^^^AccMgr^VN^1|865^SP KOPP|||||||||||||||||||1||A|||20060404090500
    PV2||^NO||||||20060404090500|||||||||||||||||||||| ||||||||S
    DG1|1||^HEADACHE|HEADACHE||A|||||||||0
    GT1|1|382582|TEST^PATIENT MF||21 PALM MANOR^^EAST SYRACUSE^NY^130570000|||19570414|M|||000987655|||| ||||11
    IN1|1|SELF PAY NYS|734|SELF PAY NYS|||||||||||5|TEST^PATIENT MF|1|19570414|21 PALM MANOR^^EAST SYRACUSE^NY^130570000|||||||||||||||||||||||11|M|| ||||382582
    IN1|2|SELF PAY|705|SELFPAY|||||||||||5||1
    IN2|1||000987655</template>
    </transformer>
    <filter>
    <rules/>
    <template></template>
    </filter>
    <transportName>File Writer</transportName>
    </com.webreach.mirth.model.Connector>
    </destinationConnectors>
    <properties>
    <property name="initialState">stopped</property>
    <property name="synchronous">false</property>
    <property name="store_messages">true</property>
    <property name="recv_xml_encoded">false</property>
    <property name="encryptData">false</property>
    <property name="transactional">false</property>
    <property name="max_message_age">-1</property>
    <property name="error_messages_only">false</property>
    </properties>
    <preprocessingScript>// Modify the message variable below to pre process data

    return message;</preprocessingScript>
    </com.webreach.mirth.model.Channel>

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

  • #2
    Re: Deploying outbound channel - Initialisation Failure: unterminated string literal

    Try removing the filter step.

    Comment

    Working...
    X