简体   繁体   English

mirth connect 变压器错误存储在哪里?

[英]Where is the mirth connect transformer error stored?

Just wandering, will it be possible or the way that I can extract (or to find out) where is the com.mirth.connect.server.MirthJavascriptTransformerException stored?只是徘徊,是否有可能或我可以提取(或找出)com.mirth.connect.server.MirthJavascriptTransformerException 存储在哪里?

For example: Within a channel, I write a script to call function abc (which this function is not exists).例如:在一个频道中,我编写了一个脚本来调用 function abc (这个 function 是不存在的)。 When I deployed and start the channel, I found mirth throw an exception error message and the error message can be found under the Mirth Connect Administrator Console:当我部署并启动频道时,我发现 mirth throw 一个异常错误消息,该错误消息可以在 Mirth Connect 管理员控制台下找到:

Transformer error
ERROR MESSAGE: Error evaluating transformer
com.mirth.connect.server.MirthJavascriptTransformerException: 
CHANNEL:    Send Test Messages
CONNECTOR:  Destination 1
SCRIPT SOURCE:  TRANSFORMER
SOURCE CODE:    
352: msg = new XML(connectorMessage.getTransformedData());
353: if (msg.namespace('') != undefined) { default xml namespace = msg.namespace(''); } else { default xml namespace = ''; }
354: function doFilter() { phase[0] = 'filter'; return true; }function doTransform() { phase[0] = 'transformer'; logger = Packages.org.apache.log4j.Logger.getLogger(phase[0]);
355: 
356: 
357: abc();
358: if ('xml' === typeof msg) {
359:     if (msg.hasSimpleContent()) {
360:         msg = msg.toXMLString();
361:     }
LINE NUMBER:    357
DETAILS:    ReferenceError: "abc" is not defined.
    at 118ddcea-ea82-4b20-9548-6b5d8df13244:357 (doTransform)
    at 118ddcea-ea82-4b20-9548-6b5d8df13244:379 (doScript)
    at 118ddcea-ea82-4b20-9548-6b5d8df13244:381
    at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.doCall(JavaScriptFilterTransformer.java:154)
    at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.doCall(JavaScriptFilterTransformer.java:119)
    at com.mirth.connect.server.util.javascript.JavaScriptTask.call(JavaScriptTask.java:113)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

My question is, beside of under Mirth Connect Administrator Console, will this error message been stored into any log file?我的问题是,除了在 Mirth Connect 管理员控制台下,此错误消息是否会存储到任何日志文件中? (I have checked mirth.log and found nothing there). (我检查了 mirth.log 并没有发现任何东西)。

The folder path %installdir%\Mirth Connect\logs could have additional log files like mirth.log.1, mirth.log.2 etc in addition to the mirth.log, which is always the latest.文件夹路径 %installdir%\Mirth Connect\logs 除了总是最新的 mirth.log 之外,还可以包含其他日志文件,如 mirth.log.1、mirth.log.2 等。 Have you checked the serialized logs你检查过序列化的日志吗

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

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