com.mirth.connect.server.MirthJavascriptTransformerException

CHANNEL: test-ADT CONNECTOR: sourceConnector SCRIPT SOURCE: SOURCE CODE: 13: function doScript() { 14: var newMessage = message; 15: msg = new XML(newMessage); 16: if (msg.namespace('') != undefined) { default xml namespace = msg.namespace(''); } else { default xml namespace = ''; } 17: function filterRule1() { 18: if (messageObject.getType() == 'ADT-A01' || 19: messageObject.getType() == 'ADT-A02' || 20: messageObject.getType() == 'ADT-A03' || 21: messageObject.getType() == 'ADT-A04' || 22: messageObject.getType() == 'ADT-A05' || LINE NUMBER: 18 DETAILS: TypeError: Cannot find function getType in object message 1-0 (RECEIVED).

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web15

  • via Mirth Project by geping wu, 9 months ago
    CHANNEL: test-ADT CONNECTOR: sourceConnector SCRIPT SOURCE: SOURCE CODE: 13: function doScript() { 14: var newMessage = message; 15: msg = new XML(newMessage); 16: if (msg.namespace('') != undefined) { default xml namespace = msg.namespace
  • via Mirth Project by geping wu, 1 year ago
    CHANNEL: test-ADT CONNECTOR: sourceConnector SCRIPT SOURCE: SOURCE CODE: 13: function doScript() { 14: var newMessage = message; 15: msg = new XML(newMessage); 16: if (msg.namespace('') != undefined) { default xml namespace = msg.namespace
  • doScript() { 25: msg = new XML(connectorMessage.getResponseTransformedData()); 26: if (msg.namespace('') != undefined) { default xml namespace = msg.namespace(''); } else { default xml namespace = ''; } 27: function doTransform() { 28: 29: LINE NUMBER: 25 at 304423fc-979c-4676-b2dd-48b7499bb9e3:25 (doScript) at 304423fc-979c-4676-b2dd-48b7499bb9e3:37
  • Stack trace

    • com.mirth.connect.server.MirthJavascriptTransformerException: CHANNEL: test-ADT CONNECTOR: sourceConnector SCRIPT SOURCE: SOURCE CODE: 13: function doScript() { 14: var newMessage = message; 15: msg = new XML(newMessage); 16: if (msg.namespace('') != undefined) { default xml namespace = msg.namespace(''); } else { default xml namespace = ''; } 17: function filterRule1() { 18: if (messageObject.getType() == 'ADT-A01' || 19: messageObject.getType() == 'ADT-A02' || 20: messageObject.getType() == 'ADT-A03' || 21: messageObject.getType() == 'ADT-A04' || 22: messageObject.getType() == 'ADT-A05' || LINE NUMBER: 18 DETAILS: TypeError: Cannot find function getType in object message 1-0 (RECEIVED). at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.call(JavaScriptFilterTransformer.java:149) at com.mirth.connect.server.transformers.JavaScriptFilterTransformer$FilterTransformerTask.call(JavaScriptFilterTransformer.java:110) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at java.util.concurrent.FutureTask.run(FutureTask.java:166) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 1 year ago