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).

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

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
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
via Mirth Project by Adrian Galvan, 1 year ago
CHANNEL: Channel 0 CONNECTOR: sourceConnector SCRIPT SOURCE: SOURCE CODE: 392: } 393: 394: function getXV(SegmentRoot, newSegmentPath) 395: { 396: var segment = smartCreateSegmentXML(SegmentRoot, newSegmentPath); 397: return
via Stack Overflow by kramer65
, 1 year ago
CHANNEL: test setup CONNECTOR: sourceConnector SCRIPT SOURCE: TRANSFORMER SOURCE CODE: 46: //createSegment('OBX', tmp, 1); 47: //tmp['OBX'][1]['OBX.1']['OBX.1.1'] = 1; 48: //tmp['OBX'][1]['OBX.2']['OBX.2.1'] = "ST"; 49: createSegment('OBX
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)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.