com.mirth.connect.donkey.server.message.batch.BatchMessageException: Failed to retrieve batch message at sequence number 1

Mirth Project | Alex Vacharat | 7 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    When using a channel to batch process a text delimited file with a grouping column, if that grouping column is not present on a row (blank is okay, but if the column is towards the end and for some reason-say the input had a newline character in an unexpected place so the row never reaches column X, which may be the grouping column), Mirth returns the error displayed below. Furthermore, rather than just erroring out on this particular line (and treating the grouping column as blank and moving on), the entire file hangs, and the channel gets stuck in a perpetual "READING" status. The original file never gets moved to the /processed/ directory, despite the move after processing action being properly set up. [2016-08-26 12:30:00,004] ERROR (com.mirth.connect.connectors.file.FileReceiver:363): Unable to dispatch message to channel 11cf22aa-cd1c-4d2e-8ad7-59e11c628278: com.mirth.connect.donkey.server.message.batch.BatchMessageException: Failed to retrieve batch message at sequence number 1 at com.mirth.connect.donkey.server.message.batch.BatchAdaptor.getMessage(BatchAdaptor.java:54) at com.mirth.connect.donkey.server.channel.SourceConnector.dispatchBatchMessage(SourceConnector.java:230) at com.mirth.connect.donkey.server.channel.SourceConnector.dispatchBatchMessage(SourceConnector.java:196) at com.mirth.connect.connectors.file.FileReceiver.processFile(FileReceiver.java:331) at com.mirth.connect.connectors.file.FileReceiver.processFiles(FileReceiver.java:247) at com.mirth.connect.connectors.file.FileReceiver.poll(FileReceiver.java:203) at com.mirth.connect.donkey.server.channel.PollConnectorJob.execute(PollConnectorJob.java:47) at org.quartz.core.JobRunShell.run(JobRunShell.java:213) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557) Caused by: java.lang.IndexOutOfBoundsException: Index: 13, Size: 12 at java.util.ArrayList.rangeCheck(ArrayList.java:653) at java.util.ArrayList.get(ArrayList.java:429) at com.mirth.connect.plugins.datatypes.delimited.DelimitedBatchAdaptor.getMessage(DelimitedBatchAdaptor.java:220) at com.mirth.connect.plugins.datatypes.delimited.DelimitedBatchAdaptor.getMessageFromReader(DelimitedBatchAdaptor.java:103) at com.mirth.connect.plugins.datatypes.delimited.DelimitedBatchAdaptor.getNextMessage(DelimitedBatchAdaptor.java:94) at com.mirth.connect.donkey.server.message.batch.BatchAdaptor.getMessage(BatchAdaptor.java:37) ... 8 more

    Mirth Project | 7 months ago | Alex Vacharat
    com.mirth.connect.donkey.server.message.batch.BatchMessageException: Failed to retrieve batch message at sequence number 1
  2. 0
    samebug tip
    Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.
  3. 0

    This is an automatically generated report based from the following crash: http://hopper.minecraft.net/crashes/minecraft/MCX-295215/ Crash: {code} java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at bdk.a(SourceFile:54) at avk.a(SourceFile:169) at awb.a(SourceFile:69) at awb.d(SourceFile:128) at awb.m(SourceFile:107) {code} The following is the first clean report made public about this crash: {code} ---- Minecraft Crash Report ---- // This is a token for 1 free hug. Redeem at your nearest Mojangsta: [~~HUG~~] Time: 10/11/13 3:30 PM Description: Updating screen events java.lang.IndexOutOfBoundsException: Index: 13, Size: 12 at java.util.ArrayList.rangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at bdk.a(SourceFile:54) at avk.a(SourceFile:169) at awb.a(SourceFile:69) at awb.d(SourceFile:128) at awb.m(SourceFile:107) at ats.k(SourceFile:1158) at ats.S(SourceFile:663) at ats.d(SourceFile:619) at net.minecraft.client.main.Main.main(SourceFile:101) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at java.util.ArrayList.rangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at bdk.a(SourceFile:54) at avk.a(SourceFile:169) at awb.a(SourceFile:69) at awb.d(SourceFile:128) at awb.m(SourceFile:107) -- Affected screen -- Details: Screen name: avk Stacktrace: at ats.k(SourceFile:1158) at ats.S(SourceFile:663) at ats.d(SourceFile:619) at net.minecraft.client.main.Main.main(SourceFile:101) -- System Details -- Details: Minecraft Version: 1.6.2 Operating System: Windows 8 (x86) version 6.2 Java Version: 1.7.0_25, Oracle Corporation Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation Memory: 165203208 bytes (157 MB) / 292917248 bytes (279 MB) up to 1037959168 bytes (989 MB) JVM Flags: 2 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx1G AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Suspicious classes: No suspicious classes found. IntCache: cache: 0, tcache: 0, allocated: 3, tallocated: 63 Launched Version: 1.6.2 LWJGL: 2.9.0 OpenGL: AMD Radeon HD 7310 Graphics GL version 4.2.12198 Compatibility Profile Context 12.102.1.0, ATI Technologies Inc. Is Modded: Probably not. Jar signature remains and client brand is untouched. Type: Client (map_client.txt) Resource Pack: Default Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: ~~ERROR~~ NullPointerException: null {code} You can see this full report at http://hopper.minecraft.net/crashes/minecraft/MCX-295215/16721203/

    Mojang JIRA | 3 years ago | [Bot] Hopper
    java.lang.IndexOutOfBoundsException: Index: 13, Size: 12
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    FATAL Exception - caused client to crash

    GitHub | 2 years ago | kreezxil
    java.lang.IndexOutOfBoundsException: Index: 43, Size: 39
  6. 0

    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 Error

    GitHub | 2 years ago | beemi
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

  1. Indri Yunita 4 times, last 2 weeks ago
  2. filpgame 4 times, last 2 weeks ago
  3. tyson925 3 times, last 4 weeks ago
  4. justCodeit 1 times, last 4 weeks ago
  5. Pilleo 3 times, last 4 weeks ago
69 more registered users
26 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.IndexOutOfBoundsException

    Index: 13, Size: 12

    at java.util.ArrayList.rangeCheck()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.rangeCheck(ArrayList.java:653)
    2. java.util.ArrayList.get(ArrayList.java:429)
    2 frames
  3. com.mirth.connect
    PollConnectorJob.execute
    1. com.mirth.connect.plugins.datatypes.delimited.DelimitedBatchAdaptor.getMessage(DelimitedBatchAdaptor.java:220)
    2. com.mirth.connect.plugins.datatypes.delimited.DelimitedBatchAdaptor.getMessageFromReader(DelimitedBatchAdaptor.java:103)
    3. com.mirth.connect.plugins.datatypes.delimited.DelimitedBatchAdaptor.getNextMessage(DelimitedBatchAdaptor.java:94)
    4. com.mirth.connect.donkey.server.message.batch.BatchAdaptor.getMessage(BatchAdaptor.java:37)
    5. com.mirth.connect.donkey.server.channel.SourceConnector.dispatchBatchMessage(SourceConnector.java:230)
    6. com.mirth.connect.donkey.server.channel.SourceConnector.dispatchBatchMessage(SourceConnector.java:196)
    7. com.mirth.connect.connectors.file.FileReceiver.processFile(FileReceiver.java:331)
    8. com.mirth.connect.connectors.file.FileReceiver.processFiles(FileReceiver.java:247)
    9. com.mirth.connect.connectors.file.FileReceiver.poll(FileReceiver.java:203)
    10. com.mirth.connect.donkey.server.channel.PollConnectorJob.execute(PollConnectorJob.java:47)
    10 frames
  4. quartz
    SimpleThreadPool$WorkerThread.run
    1. org.quartz.core.JobRunShell.run(JobRunShell.java:213)
    2. org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
    2 frames