com.mirth.connect.server.MirthJavascriptTransformerException: SOURCE CODE: 36: 37: // if it is a valid hl7 segment, we'll 38: // append the new line to the new message 39: logger.error(line); 40: 41: if(line.match(/^[a-zA-Z0-9]{3}\|/)) { 42: // see the first comment 43: if( ! first_iteration){ 44: new_message += '\r'; 45: } LINE NUMBER: 41 DETAILS: TypeError: Cannot find function match in object function $(val) {...}. at 77bdf932-8ebc-4990-b234-b04b9fd89f75_Preprocessor:41 (doScript) at 77bdf932-8ebc-4990-b234-b04b9fd89f75_Preprocessor:72

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 Ivan Olmos, 1 year ago
SOURCE CODE: 36: 37: // if it is a valid hl7 segment, we'll 38: // append the new line to the new message 39: logger.error(line); 40: 41: if(line.match(/^[a-zA-Z0-9]{3}\|/)) { 42: // see the first comment 43: if( ! first_iteration
via Mirth Project by Ivan Olmos, 1 year ago
SOURCE CODE: 36: 37: // if it is a valid hl7 segment, we'll 38: // append the new line to the new message 39: logger.error(line); 40: 41: if(line.match(/^[a-zA-Z0-9]{3}\|/)) { 42: // see the first comment 43: if
via Mirth Project by Nick Rupley, 1 year ago
SOURCE CODE: 187: }188: }189: function doScript() {190: // Modify the message variable below to pre process data191: 192: logger.info(typeof messageObject);193: 194: return message; 195: }LINE NUMBER: 192DETAILS: Invalid JavaScript value of
via Mirth Project by Nick Rupley, 1 year ago
SOURCE CODE: 187: }188: }189: function doScript() {190: // Modify the message variable below to pre process data191: 192: logger.info(typeof messageObject);193: 194: return message; 195: }LINE NUMBER: 192DETAILS: Invalid JavaScript value of
com.mirth.connect.server.MirthJavascriptTransformerException: SOURCE CODE: 36: 37: // if it is a valid hl7 segment, we'll 38: // append the new line to the new message 39: logger.error(line); 40: 41: if(line.match(/^[a-zA-Z0-9]{3}\|/)) { 42: // see the first comment 43: if( ! first_iteration){ 44: new_message += '\r'; 45: } LINE NUMBER: 41 DETAILS: TypeError: Cannot find function match in object function $(val) {...}. at 77bdf932-8ebc-4990-b234-b04b9fd89f75_Preprocessor:41 (doScript) at 77bdf932-8ebc-4990-b234-b04b9fd89f75_Preprocessor:72
at com.mirth.connect.server.util.javascript.JavaScriptUtil.executeScript(JavaScriptUtil.java:490)
at com.mirth.connect.server.util.javascript.JavaScriptUtil.executePreprocessorScripts(JavaScriptUtil.java:184)
at com.mirth.connect.server.transformers.JavaScriptPreprocessor$JavaScriptPreProcessorTask.call(JavaScriptPreprocessor.java:57)
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)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago

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