com.mirth.connect.server.MirthJavascriptTransformerException

CHANNEL: HTTP Client with JSON CONNECTOR: Destination 1 SCRIPT SOURCE: response SOURCE CODE: 39: } 40: eval('importPackage(' + Packages.java.lang.Class.forName(className).getPackage().getName() + ')'); 41: } 42: } 43: function doScript() { 44: msg = JSON.parse(connectorMessage.getResponseTransformedData()); 45: function doTransform() { 46: 47: 48: var mapping; LINE NUMBER: 44 DETAILS: SyntaxError: Unexpected token: o at d89555a6-f1d2-4738-a164-48b213af267f:44 (doScript) at d89555a6-f1d2-4738-a164-48b213af267f:91

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 Eric Butterfield, 9 months ago
    doScript() { 44: msg = JSON.parse(connectorMessage.getResponseTransformedData()); 45: function doTransform() { 46: 47: 48: var mapping; LINE NUMBER: 44 DETAILS: SyntaxError: Unexpected token: o at d89555a6-f1d2-4738-a164-48b213af267f:44 (doScript) at d89555a6-f1d2-4738-a164-48b213af267f:91
  • via Mirth Project by Eric Butterfield, 1 year ago
    doScript() { 44: msg = JSON.parse(connectorMessage.getResponseTransformedData()); 45: function doTransform() { 46: 47: 48: var mapping; LINE NUMBER: 44 DETAILS: SyntaxError: Unexpected token: o at d89555a6-f1d2-4738-a164-48b213af267f:44 (doScript) at d89555a6-f1d2-4738-a164-48b213af267f:91
  • CHANNEL: wsdl_reader CONNECTOR: currency service SCRIPT SOURCE: response SOURCE CODE: 20: } 21: eval('importPackage(' + Packages.java.lang.Class.forName(className).getPackage().getName() + ')'); 22: } 23: } 24: function
  • Stack trace

    • com.mirth.connect.server.MirthJavascriptTransformerException: CHANNEL: HTTP Client with JSON CONNECTOR: Destination 1 SCRIPT SOURCE: response SOURCE CODE: 39: } 40: eval('importPackage(' + Packages.java.lang.Class.forName(className).getPackage().getName() + ')'); 41: } 42: } 43: function doScript() { 44: msg = JSON.parse(connectorMessage.getResponseTransformedData()); 45: function doTransform() { 46: 47: 48: var mapping; LINE NUMBER: 44 DETAILS: SyntaxError: Unexpected token: o at d89555a6-f1d2-4738-a164-48b213af267f:44 (doScript) at d89555a6-f1d2-4738-a164-48b213af267f:91 at com.mirth.connect.server.transformers.JavaScriptResponseTransformer$ResponseTransformerTask.call(JavaScriptResponseTransformer.java:160) at com.mirth.connect.server.transformers.JavaScriptResponseTransformer$ResponseTransformerTask.call(JavaScriptResponseTransformer.java:118) 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)

    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.