com.mirth.connect.server.MirthJavascriptTransformerException

SOURCE CODE: 4816: } 4817: };var release_tag = 50;function doScript() { 4818: // This script executes once when the mule engine is started 4819: // You only have access to the globalMap here to persist data 4820: 4821: message = message.replace(/:/g, "|") 4822: message = message.replace (/;/g, "^"); 4823: return message; 4824: } LINE NUMBER: 4820 DETAILS: ReferenceError: "message" is not defined.

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 Igor Ges, 9 months ago
    SOURCE CODE: 4816: } 4817: };var release_tag = 50;function doScript() { 4818: // This script executes once when the mule engine is started 4819: // You only have access to the globalMap here to persist data 4820: 4821: message = message.replace
  • via Mirth Project by Nick Rupley, 9 months ago
    exists');7: return message; 8: }LINE NUMBER: 5DETAILS: ReferenceError: "messageObject" is not defined. at faf8272e-b76d-4cd6-984f-55b23cdb21de_Preprocessor:5 (doScript) at faf8272e-b76d-4cd6-984f-55b23cdb21de_Preprocessor:9
  • via Mirth Project by Nick Rupley, 1 year ago
    exists');7: return message; 8: }LINE NUMBER: 5DETAILS: ReferenceError: "messageObject" is not defined. at faf8272e-b76d-4cd6-984f-55b23cdb21de_Preprocessor:5 (doScript) at faf8272e-b76d-4cd6-984f-55b23cdb21de_Preprocessor:9
  • Stack trace

    • com.mirth.connect.server.MirthJavascriptTransformerException: SOURCE CODE: 4816: } 4817: };var release_tag = 50;function doScript() { 4818: // This script executes once when the mule engine is started 4819: // You only have access to the globalMap here to persist data 4820: 4821: message = message.replace(/:/g, "|") 4822: message = message.replace (/;/g, "^"); 4823: return message; 4824: } LINE NUMBER: 4820 DETAILS: ReferenceError: "message" is not defined. at com.mirth.connect.server.util.JavaScriptUtil.executeScript(JavaScriptUtil.java:251) at com.mirth.connect.server.util.JavaScriptUtil.executeChannelDeployOrShutdownScript(JavaScriptUtil.java:180) at com.mirth.connect.server.controllers.DefaultScriptController.executeChannelDeployScript(DefaultScriptController.java:197) at com.mirth.connect.server.controllers.MuleEngineController.deployChannels(MuleEngineController.java:199) at com.mirth.connect.server.controllers.MuleEngineController.redeployAllChannels(MuleEngineController.java:281) at com.mirth.connect.server.controllers.MuleEngineController.startEngine(MuleEngineController.java:144) at com.mirth.connect.server.Mirth.startEngine(Mirth.java:205) at com.mirth.connect.server.Mirth.startup(Mirth.java:176) at com.mirth.connect.server.Mirth.run(Mirth.java:126)

    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

    You’re the first here who have seen this exception.