Mirth Connect 3.12.0 Released!

Mirth Connect 3.12.0 is now available as an appliance update and on our GitHub page. This release includes database performance improvements, improves visual HL7 representation, message pruning, keystore handling, PDF generation, community contributions, and fixes several security vulnerabilities. This release also contains many improvements to commercial extensions. See the release notes for the list of fixes and updates.

Download | See What's New | Upgrade Guide | Release Notes

For discussion on this release, see this thread.
See more
See less

Harnessing Acks.

  • Filter
  • Time
  • Show
Clear All
new posts

  • Harnessing Acks.

    I'm using Mirth 1.5, will be upgrading to 1.6 soon. I have seen threads about this, but they haven't helped much. I have a channel with two destinations, one an LLP Sender and the other one a channel writer set to none. I'm trying to get the response received on 'Destination 1' LLP Sender and send it back to the previous channel. I have the following on my transformer for the channel writer:

    var responseVal = responseMap.get('Destination 1').getMessage();

    responseMap.put("Response", ResponseFactory.getSuccessResponse(responseVal));
    but everytime a message processes I get the following error, what am I doing wrong?:

    org.mule.umo.transformer.TransformerException: TypeError: Cannot call method "getMessage" of null (d8f6683a-b2c6-46c1-a0d8-7b21342da3ef#3) (org.mozilla.javascript.EcmaError) (org.mule.umo.transformer.TransformerException)
    at com.webreach.mirth.server.mule.transformers.JavaSc riptTransformer.transform(JavaScriptTransformer.ja va:294)
    at org.mule.transformers.AbstractEventAwareTransforme r.doTransform( 8)
    at org.mule.transformers.AbstractTransformer.transfor m(
    at org.mule.impl.MuleEvent.getTransformedMessage(Mule
    at com.webreach.mirth.server.controllers.MessageObjec tController.getMessageObjectFromEvent(MessageObjec
    at com.webreach.mirth.server.mule.providers.vm.VMMess ageDispatcher.doDispatch( 122)
    at org.mule.providers.AbstractMessageDispatcher$Worke
    at .java:290)
    at eadPoolExecutor$Worker.runTask(ThreadPoolExecutor. java:650)
    at eadPoolExecutor$ :675)
    at Source)
    Caused by: org.mule.umo.transformer.TransformerException: TypeError: Cannot call method "getMessage" of null (d8f6683a-b2c6-46c1-a0d8-7b21342da3ef#3) (org.mozilla.javascript.EcmaError)
    at com.webreach.mirth.server.mule.transformers.JavaSc riptTransformer.evaluateTransformerScript(JavaScri
    at com.webreach.mirth.server.mule.transformers.JavaSc riptTransformer.transform(JavaScriptTransformer.ja va:278)
    ... 10 more
    Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "getMessage" of null (d8f6683a-b2c6-46c1-a0d8-7b21342da3ef#3)
    at org.mozilla.javascript.ScriptRuntime.constructErro r(
    at org.mozilla.javascript.ScriptRuntime.constructErro r(
    at org.mozilla.javascript.ScriptRuntime.typeError(Scr
    at org.mozilla.javascript.ScriptRuntime.typeError2(Sc
    at org.mozilla.javascript.ScriptRuntime.undefCallErro r(
    at org.mozilla.javascript.ScriptRuntime.getPropFuncti onAndThis(
    at org.mozilla.javascript.gen.c10._c3(d8f6683a-b2c6-46c1-a0d8-7b21342da3ef:3)
    at org.mozilla.javascript.optimizer.OptRuntime.callNa me0(
    at org.mozilla.javascript.gen.c10._c0(d8f6683a-b2c6-46c1-a0d8-7b21342da3ef:6)
    at org.mozilla.javascript.ContextFactory.doTopCall(Co
    at org.mozilla.javascript.ScriptRuntime.doTopCall(Scr
    at org.mozilla.javascript.gen.c10.exec(d8f6683a-b2c6-46c1-a0d8-7b21342da3ef)
    at com.webreach.mirth.server.mule.transformers.JavaSc riptTransformer.evaluateTransformerScript(JavaScri
    ... 11 more

  • #2
    Re:Harnessing Acks.


    var responseVal = responseMap.get('Destination 1');


    • #3
      Re:Harnessing Acks.

      I tried that as well, I don't get an error but I see the value as "null"


      • #4
        Re:Harnessing Acks.

        I've similar problem recently, just because or blank in destination's name !