简体   繁体   English

Mirth Connect无法评估变压器

[英]Mirth connect fails on evaluating transformers

I'm working with Mirth Connect v3.0.1 and getting stuck on one task, transformation of XML to HL7 v2. 我正在使用Mirth Connect v3.0.1,只能完成一项任务,即将XML转换为HL7 v2。 I am using a xml template, dragging and dropping values to the hl7 template. 我正在使用xml模板,将值拖放到hl7模板中。

destination 1 Method: file Directory: C:\\throw\\AXSFLW File Name: ${message.encodedData} destination 1方法:文件目录:C:\\ throw \\ AXSFLW文件名:$ {message.encodedData}

In the Transformer: 在《变形金刚》中:

Message Segment: tmp['PID']['PID.5']['PID.5.1'] Mapping: msg['Day']['Patient']['LastName'].toString() 消息段:tmp ['PID'] ['PID.5'] ['PID.5.1']映射:msg ['Day'] ['Patient'] ['LastName']。toString()

Message Segment: tmp['PID']['PID.5']['PID.5.2'] Mapping: msg['Day']['Patient']['FirstName'].toString() 消息段:tmp ['PID'] ['PID.5'] ['PID.5.2']映射:msg ['Day'] ['Patient'] ['FirstName']。toString()

When the source gets a xml file mirth connect fails with this error 当源获取xml文件时,连接错误并失败

Transformer error
ERROR MESSAGE: Error evaluating transformer
java.lang.NullPointerException
at org.mozilla.javascript.xmlimpl.XmlNode$InternalList.add(XmlNode.java:834)
at org.mozilla.javascript.xmlimpl.XMLList.replace(XMLList.java:55)
at org.mozilla.javascript.xmlimpl.XMLList.putXMLProperty(XMLList.java:151)
at org.mozilla.javascript.xmlimpl.XMLList.putXMLProperty(XMLList.java:150)
at org.mozilla.javascript.xmlimpl.XMLObjectImpl.put(XMLObjectImpl.java:261)
at org.mozilla.javascript.ScriptRuntime.setObjectElem(ScriptRuntime.java:1571)
at org.mozilla.javascript.ScriptRuntime.setObjectElem(ScriptRuntime.java:1564)
at org.mozilla.javascript.Interpreter.doSetElem(Interpreter.java:2227)
at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1264)
at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:815)
at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:109)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:394)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3110)
at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:120) at     com.mirth.connect.server.util.javascript.JavaScriptTask.executeScript(JavaScriptTask.java:49)
at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.call(JavaScriptFilterTransformer.java:123)
at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.call(JavaScriptFilterTransformer.java:100)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
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) 

Hope somebody can point me to a solution. 希望有人可以指出解决方案。 This seemed to work in Mirth Connect 2.1 thanks for any help. 感谢您的帮助,这似乎在Mirth Connect 2.1中有效。

The only way I get past things like this is to remove the steps in the transformer till things work again and then try to add them one at a time until I find the specific step that causes the issue. 我克服这种情况的唯一方法是,删除变压器中的步骤,直到一切正常,然后尝试一次添加一次,直到找到导致问题的特定步骤。

In this case, are you sure you do not have a Filter step that is causing the issue ... I just saw JavaScriptFilterTransformer and for some reason it rang a bell. 在这种情况下,您确定没有导致问题的Filter步骤...我刚刚看到JavaScriptFilterTransformer,由于某种原因,它发出了响声。

Also, you seem like you have done this before, but are you sure you have your data types correct? 另外,您似乎以前已经这样做过,但是您确定数据类型正确吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM