route.org.mule.umo.routing.RoutingException: Failed to transform message before applying the filter. Failed to route event via endpoint: ImmutableMuleEndpoint{connector=com.mirth.connect.connectors.file.FileConnector@79a5d7e0, endpointUri=file://c:/data/lpnt/bbk, transformer=Transformer{name='ByteArrayToString', returnClass=false, returnClass=false, sourceTypes=[class [B, class java.lang.String]}, name='_fileEndpoint#-2125213528', type='receiver', properties={}, transactionConfig=org.mule.impl.MuleTransactionConfig@2090f5c5, filter=null, deleteUnacceptedMessages=false, initialised=true, securityFilter=null, synchronous=true, initialState=started, createConnector=0}. Message payload is of type: java.lang.String

Mirth Project | Chris McNatt | 6 years ago
  1. 0

    I am trying to send a file via Mirth Connect Administrator on a Windows 7 O/S 64 bit machine from a file reader ASCII file type to a file writer ASCII type and get an error message that says unable to transform message - but I did not set up a transformation, nor do I require the file to be transformed. Because of this, this file is not getting transferred. I have tried multiple times to take the files that are not getting transferred and redeploying the channel and these files are still not getting transferred. I have included the error message file in it's entirety below. Please help. [2011-05-18 15:21:31,926] ERROR (com.mirth.connect.connectors.file.FileMessageReceiver:234): Unable to route.org.mule.umo.routing.RoutingException: Failed to transform message before applying the filter. Failed to route event via endpoint: ImmutableMuleEndpoint{connector=com.mirth.connect.connectors.file.FileConnector@79a5d7e0, endpointUri=file://c:/data/lpnt/bbk, transformer=Transformer{name='ByteArrayToString', returnClass=false, returnClass=false, sourceTypes=[class [B, class java.lang.String]}, name='_fileEndpoint#-2125213528', type='receiver', properties={}, transactionConfig=org.mule.impl.MuleTransactionConfig@2090f5c5, filter=null, deleteUnacceptedMessages=false, initialised=true, securityFilter=null, synchronous=true, initialState=started, createConnector=0}. Message payload is of type: java.lang.String at org.mule.routing.inbound.SelectiveConsumer.isMatch(SelectiveConsumer.java:64) at org.mule.routing.inbound.InboundMessageRouter.route(InboundMessageRouter.java:79) at org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:487) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:266) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:225) at com.mirth.connect.connectors.file.FileMessageReceiver.processFile(FileMessageReceiver.java:228) at com.mirth.connect.connectors.file.FileMessageReceiver.poll(FileMessageReceiver.java:118) at org.mule.providers.PollingMessageReceiver.run(PollingMessageReceiver.java:97) at org.mule.impl.work.WorkerContext.run(WorkerContext.java:290) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575) at java.lang.Thread.run(Unknown Source) Caused by: org.mule.umo.transformer.TransformerException: java.lang.ArrayIndexOutOfBoundsException: 0 (com.mirth.connect.server.mule.adaptors.AdaptorException) at com.mirth.connect.server.mule.transformers.JavaScriptTransformer.transform(JavaScriptTransformer.java:284) at org.mule.transformers.AbstractEventAwareTransformer.doTransform(AbstractEventAwareTransformer.java:48) at org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:197) at org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:200) at org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:200) at org.mule.impl.MuleEvent.getTransformedMessage(MuleEvent.java:251) at org.mule.routing.inbound.SelectiveConsumer.isMatch(SelectiveConsumer.java:61) ... 11 more Caused by: com.mirth.connect.server.mule.adaptors.AdaptorException: java.lang.ArrayIndexOutOfBoundsException: 0 at com.mirth.connect.server.mule.adaptors.Adaptor.handleException(Adaptor.java:89) at com.mirth.connect.server.mule.adaptors.HL7v2Adaptor.populateMessage(HL7v2Adaptor.java:48) at com.mirth.connect.server.mule.adaptors.Adaptor.getMessage(Adaptor.java:61) at com.mirth.connect.server.mule.transformers.JavaScriptTransformer.transform(JavaScriptTransformer.java:255) ... 17 more Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at com.mirth.connect.model.converters.ER7Serializer.getMetadataFromEncoded(ER7Serializer.java:281) at com.mirth.connect.server.mule.adaptors.Adaptor.populateMetadataFromEncoded(Adaptor.java:100) at com.mirth.connect.server.mule.adaptors.HL7v2Adaptor.populateMessage(HL7v2Adaptor.java:40) ... 19 more

    Mirth Project | 6 years ago | Chris McNatt
    route.org.mule.umo.routing.RoutingException: Failed to transform message before applying the filter. Failed to route event via endpoint: ImmutableMuleEndpoint{connector=com.mirth.connect.connectors.file.FileConnector@79a5d7e0, endpointUri=file://c:/data/lpnt/bbk, transformer=Transformer{name='ByteArrayToString', returnClass=false, returnClass=false, sourceTypes=[class [B, class java.lang.String]}, name='_fileEndpoint#-2125213528', type='receiver', properties={}, transactionConfig=org.mule.impl.MuleTransactionConfig@2090f5c5, filter=null, deleteUnacceptedMessages=false, initialised=true, securityFilter=null, synchronous=true, initialState=started, createConnector=0}. Message payload is of type: java.lang.String
  2. 0

    I am trying to send a file via Mirth Connect Administrator on a Windows 7 O/S 64 bit machine from a file reader ASCII file type to a file writer ASCII type and get an error message that says unable to transform message - but I did not set up a transformation, nor do I require the file to be transformed. Because of this, this file is not getting transferred. I have tried multiple times to take the files that are not getting transferred and redeploying the channel and these files are still not getting transferred. I have included the error message file in it's entirety below. Please help. [2011-05-18 15:21:31,926] ERROR (com.mirth.connect.connectors.file.FileMessageReceiver:234): Unable to route.org.mule.umo.routing.RoutingException: Failed to transform message before applying the filter. Failed to route event via endpoint: ImmutableMuleEndpoint{connector=com.mirth.connect.connectors.file.FileConnector@79a5d7e0, endpointUri=file://c:/data/lpnt/bbk, transformer=Transformer{name='ByteArrayToString', returnClass=false, returnClass=false, sourceTypes=[class [B, class java.lang.String]}, name='_fileEndpoint#-2125213528', type='receiver', properties={}, transactionConfig=org.mule.impl.MuleTransactionConfig@2090f5c5, filter=null, deleteUnacceptedMessages=false, initialised=true, securityFilter=null, synchronous=true, initialState=started, createConnector=0}. Message payload is of type: java.lang.String at org.mule.routing.inbound.SelectiveConsumer.isMatch(SelectiveConsumer.java:64) at org.mule.routing.inbound.InboundMessageRouter.route(InboundMessageRouter.java:79) at org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:487) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:266) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:225) at com.mirth.connect.connectors.file.FileMessageReceiver.processFile(FileMessageReceiver.java:228) at com.mirth.connect.connectors.file.FileMessageReceiver.poll(FileMessageReceiver.java:118) at org.mule.providers.PollingMessageReceiver.run(PollingMessageReceiver.java:97) at org.mule.impl.work.WorkerContext.run(WorkerContext.java:290) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575) at java.lang.Thread.run(Unknown Source) Caused by: org.mule.umo.transformer.TransformerException: java.lang.ArrayIndexOutOfBoundsException: 0 (com.mirth.connect.server.mule.adaptors.AdaptorException) at com.mirth.connect.server.mule.transformers.JavaScriptTransformer.transform(JavaScriptTransformer.java:284) at org.mule.transformers.AbstractEventAwareTransformer.doTransform(AbstractEventAwareTransformer.java:48) at org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:197) at org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:200) at org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:200) at org.mule.impl.MuleEvent.getTransformedMessage(MuleEvent.java:251) at org.mule.routing.inbound.SelectiveConsumer.isMatch(SelectiveConsumer.java:61) ... 11 more Caused by: com.mirth.connect.server.mule.adaptors.AdaptorException: java.lang.ArrayIndexOutOfBoundsException: 0 at com.mirth.connect.server.mule.adaptors.Adaptor.handleException(Adaptor.java:89) at com.mirth.connect.server.mule.adaptors.HL7v2Adaptor.populateMessage(HL7v2Adaptor.java:48) at com.mirth.connect.server.mule.adaptors.Adaptor.getMessage(Adaptor.java:61) at com.mirth.connect.server.mule.transformers.JavaScriptTransformer.transform(JavaScriptTransformer.java:255) ... 17 more Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at com.mirth.connect.model.converters.ER7Serializer.getMetadataFromEncoded(ER7Serializer.java:281) at com.mirth.connect.server.mule.adaptors.Adaptor.populateMetadataFromEncoded(Adaptor.java:100) at com.mirth.connect.server.mule.adaptors.HL7v2Adaptor.populateMessage(HL7v2Adaptor.java:40) ... 19 more

    Mirth Project | 6 years ago | Chris McNatt
    route.org.mule.umo.routing.RoutingException: Failed to transform message before applying the filter. Failed to route event via endpoint: ImmutableMuleEndpoint{connector=com.mirth.connect.connectors.file.FileConnector@79a5d7e0, endpointUri=file://c:/data/lpnt/bbk, transformer=Transformer{name='ByteArrayToString', returnClass=false, returnClass=false, sourceTypes=[class [B, class java.lang.String]}, name='_fileEndpoint#-2125213528', type='receiver', properties={}, transactionConfig=org.mule.impl.MuleTransactionConfig@2090f5c5, filter=null, deleteUnacceptedMessages=false, initialised=true, securityFilter=null, synchronous=true, initialState=started, createConnector=0}. Message payload is of type: java.lang.String
  3. 0

    Mirth connect: javascript reader and bytea

    Stack Overflow | 4 years ago | leonardorame
    org.mule.umo.transformer.TransformerException: java.lang.StringIndexOutOfBoundsException: String index out of range: -2 (com.mirth.connect.server.mule.adaptors.AdaptorException)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Cassandra ArrayIndexOutOfBoundsException

    Stack Overflow | 3 years ago | user3087110
    java.lang.RuntimeException: java.lang.ArrayIndexOutOfBoundsException: 0

    1 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      0

      at com.mirth.connect.model.converters.ER7Serializer.getMetadataFromEncoded()
    2. com.mirth.connect
      JavaScriptTransformer.transform
      1. com.mirth.connect.model.converters.ER7Serializer.getMetadataFromEncoded(ER7Serializer.java:281)
      2. com.mirth.connect.server.mule.adaptors.Adaptor.populateMetadataFromEncoded(Adaptor.java:100)
      3. com.mirth.connect.server.mule.adaptors.HL7v2Adaptor.populateMessage(HL7v2Adaptor.java:40)
      4. com.mirth.connect.server.mule.adaptors.Adaptor.getMessage(Adaptor.java:61)
      5. com.mirth.connect.server.mule.transformers.JavaScriptTransformer.transform(JavaScriptTransformer.java:255)
      5 frames
    3. org.mule.transformers
      AbstractTransformer.transform
      1. org.mule.transformers.AbstractEventAwareTransformer.doTransform(AbstractEventAwareTransformer.java:48)
      2. org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:197)
      3. org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:200)
      4. org.mule.transformers.AbstractTransformer.transform(AbstractTransformer.java:200)
      4 frames
    4. org.mule.impl
      MuleEvent.getTransformedMessage
      1. org.mule.impl.MuleEvent.getTransformedMessage(MuleEvent.java:251)
      1 frame
    5. org.mule.routing
      InboundMessageRouter.route
      1. org.mule.routing.inbound.SelectiveConsumer.isMatch(SelectiveConsumer.java:61)
      2. org.mule.routing.inbound.InboundMessageRouter.route(InboundMessageRouter.java:79)
      2 frames
    6. org.mule.providers
      AbstractMessageReceiver.routeMessage
      1. org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:487)
      2. org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:266)
      3. org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:225)
      3 frames
    7. com.mirth.connect
      FileMessageReceiver.poll
      1. com.mirth.connect.connectors.file.FileMessageReceiver.processFile(FileMessageReceiver.java:228)
      2. com.mirth.connect.connectors.file.FileMessageReceiver.poll(FileMessageReceiver.java:118)
      2 frames
    8. org.mule.providers
      PollingMessageReceiver.run
      1. org.mule.providers.PollingMessageReceiver.run(PollingMessageReceiver.java:97)
      1 frame
    9. org.mule.impl
      WorkerContext.run
      1. org.mule.impl.work.WorkerContext.run(WorkerContext.java:290)
      1 frame
    10. Backport of JSR 166
      ThreadPoolExecutor$Worker.run
      1. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
      2. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
      2 frames
    11. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame