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

Mirth Project | Chetan Uberoy | 7 years ago
  1. 0

    While processing a large DICOM file, I get the following error and the DICOM file sent by the Destination to DCM4chee gets corrupted. This is a Mammogram file of about 8MB. This is a bit urgent so if you can suggest a workaround, that will be great! My channel source is set to listening to a port for DICOM files and the channel destination writes the DICOM file to another port on the same machine (on which DCM4chee is listening) [2010-02-24 13:20:55,374] ERROR (com.webreach.mirth.server.util.AttachmentUtil:54): Error merging DICOM data java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at com.webreach.mirth.server.util.DICOMUtil.getDICOMRawData(DICOMUtil.java:48) at org.mule.providers.TemplateValueReplacer.loadContextFromMessageObject(TemplateValueReplacer.java:125) at org.mule.providers.TemplateValueReplacer.replaceValues(TemplateValueReplacer.java:61) at org.mule.providers.TemplateValueReplacer.replaceValues(TemplateValueReplacer.java:55) at com.webreach.mirth.connectors.dimse.DICOMMessageDispatcher.doSend(DICOMMessageDispatcher.java:52) at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:167) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:191) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:130) at org.mule.routing.outbound.AbstractOutboundRouter.send(AbstractOutboundRouter.java:85) at org.mule.routing.outbound.FilteringMulticastingRouter.route(FilteringMulticastingRouter.java:52) at org.mule.routing.outbound.OutboundMessageRouter$1.doInTransaction(OutboundMessageRouter.java:78) at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:48) at org.mule.routing.outbound.OutboundMessageRouter.route(OutboundMessageRouter.java:82) at org.mule.impl.model.DefaultMuleProxy.onCall(DefaultMuleProxy.java:247) at org.mule.impl.model.seda.SedaComponent.doSend(SedaComponent.java:209) at org.mule.impl.model.AbstractComponent.sendEvent(AbstractComponent.java:277) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:201) at org.mule.routing.inbound.InboundMessageRouter.send(InboundMessageRouter.java:180) at org.mule.routing.inbound.InboundMessageRouter.route(InboundMessageRouter.java:147) at org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:493) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:272) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:231) at com.webreach.mirth.connectors.vm.VMMessageReceiver.getMessages(VMMessageReceiver.java:202) at org.mule.providers.TransactedPollingMessageReceiver.poll(TransactedPollingMessageReceiver.java:108) at org.mule.providers.PollingMessageReceiver.run(PollingMessageReceiver.java:90) at org.mule.impl.work.WorkerContext.run(WorkerContext.java:290) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Unknown Source)

    Mirth Project | 7 years ago | Chetan Uberoy
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  2. 0

    While processing a large DICOM file, I get the following error and the DICOM file sent by the Destination to DCM4chee gets corrupted. This is a Mammogram file of about 8MB. This is a bit urgent so if you can suggest a workaround, that will be great! My channel source is set to listening to a port for DICOM files and the channel destination writes the DICOM file to another port on the same machine (on which DCM4chee is listening) [2010-02-24 13:20:55,374] ERROR (com.webreach.mirth.server.util.AttachmentUtil:54): Error merging DICOM data java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.RangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at com.webreach.mirth.server.util.DICOMUtil.getDICOMRawData(DICOMUtil.java:48) at org.mule.providers.TemplateValueReplacer.loadContextFromMessageObject(TemplateValueReplacer.java:125) at org.mule.providers.TemplateValueReplacer.replaceValues(TemplateValueReplacer.java:61) at org.mule.providers.TemplateValueReplacer.replaceValues(TemplateValueReplacer.java:55) at com.webreach.mirth.connectors.dimse.DICOMMessageDispatcher.doSend(DICOMMessageDispatcher.java:52) at org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:167) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:191) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:130) at org.mule.routing.outbound.AbstractOutboundRouter.send(AbstractOutboundRouter.java:85) at org.mule.routing.outbound.FilteringMulticastingRouter.route(FilteringMulticastingRouter.java:52) at org.mule.routing.outbound.OutboundMessageRouter$1.doInTransaction(OutboundMessageRouter.java:78) at org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:48) at org.mule.routing.outbound.OutboundMessageRouter.route(OutboundMessageRouter.java:82) at org.mule.impl.model.DefaultMuleProxy.onCall(DefaultMuleProxy.java:247) at org.mule.impl.model.seda.SedaComponent.doSend(SedaComponent.java:209) at org.mule.impl.model.AbstractComponent.sendEvent(AbstractComponent.java:277) at org.mule.impl.MuleSession.sendEvent(MuleSession.java:201) at org.mule.routing.inbound.InboundMessageRouter.send(InboundMessageRouter.java:180) at org.mule.routing.inbound.InboundMessageRouter.route(InboundMessageRouter.java:147) at org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:493) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:272) at org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:231) at com.webreach.mirth.connectors.vm.VMMessageReceiver.getMessages(VMMessageReceiver.java:202) at org.mule.providers.TransactedPollingMessageReceiver.poll(TransactedPollingMessageReceiver.java:108) at org.mule.providers.PollingMessageReceiver.run(PollingMessageReceiver.java:90) at org.mule.impl.work.WorkerContext.run(WorkerContext.java:290) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) at java.lang.Thread.run(Unknown Source)

    Mirth Project | 7 years ago | Chetan Uberoy
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    IndexOutOfBoundsException when adding an arc

    GitHub | 3 years ago | sarahtattersall
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  5. 0

    cucumber-jvm java HelloWorld example OutOfBoundsException error

    Stack Overflow | 4 years ago | Ithar
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
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: 0, Size: 0

    at java.util.ArrayList.RangeCheck()
  2. Java RT
    ArrayList.get
    1. java.util.ArrayList.RangeCheck(Unknown Source)
    2. java.util.ArrayList.get(Unknown Source)
    2 frames
  3. com.webreach.mirth
    DICOMUtil.getDICOMRawData
    1. com.webreach.mirth.server.util.DICOMUtil.getDICOMRawData(DICOMUtil.java:48)
    1 frame
  4. org.mule.providers
    TemplateValueReplacer.replaceValues
    1. org.mule.providers.TemplateValueReplacer.loadContextFromMessageObject(TemplateValueReplacer.java:125)
    2. org.mule.providers.TemplateValueReplacer.replaceValues(TemplateValueReplacer.java:61)
    3. org.mule.providers.TemplateValueReplacer.replaceValues(TemplateValueReplacer.java:55)
    3 frames
  5. com.webreach.mirth
    DICOMMessageDispatcher.doSend
    1. com.webreach.mirth.connectors.dimse.DICOMMessageDispatcher.doSend(DICOMMessageDispatcher.java:52)
    1 frame
  6. org.mule.providers
    AbstractMessageDispatcher.send
    1. org.mule.providers.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:167)
    1 frame
  7. org.mule.impl
    MuleSession.sendEvent
    1. org.mule.impl.MuleSession.sendEvent(MuleSession.java:191)
    2. org.mule.impl.MuleSession.sendEvent(MuleSession.java:130)
    2 frames
  8. Mule Core
    OutboundMessageRouter.route
    1. org.mule.routing.outbound.AbstractOutboundRouter.send(AbstractOutboundRouter.java:85)
    2. org.mule.routing.outbound.FilteringMulticastingRouter.route(FilteringMulticastingRouter.java:52)
    3. org.mule.routing.outbound.OutboundMessageRouter$1.doInTransaction(OutboundMessageRouter.java:78)
    4. org.mule.transaction.TransactionTemplate.execute(TransactionTemplate.java:48)
    5. org.mule.routing.outbound.OutboundMessageRouter.route(OutboundMessageRouter.java:82)
    5 frames
  9. org.mule.impl
    MuleSession.sendEvent
    1. org.mule.impl.model.DefaultMuleProxy.onCall(DefaultMuleProxy.java:247)
    2. org.mule.impl.model.seda.SedaComponent.doSend(SedaComponent.java:209)
    3. org.mule.impl.model.AbstractComponent.sendEvent(AbstractComponent.java:277)
    4. org.mule.impl.MuleSession.sendEvent(MuleSession.java:201)
    4 frames
  10. org.mule.routing
    InboundMessageRouter.route
    1. org.mule.routing.inbound.InboundMessageRouter.send(InboundMessageRouter.java:180)
    2. org.mule.routing.inbound.InboundMessageRouter.route(InboundMessageRouter.java:147)
    2 frames
  11. org.mule.providers
    AbstractMessageReceiver.routeMessage
    1. org.mule.providers.AbstractMessageReceiver$DefaultInternalMessageListener.onMessage(AbstractMessageReceiver.java:493)
    2. org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:272)
    3. org.mule.providers.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:231)
    3 frames
  12. com.webreach.mirth
    VMMessageReceiver.getMessages
    1. com.webreach.mirth.connectors.vm.VMMessageReceiver.getMessages(VMMessageReceiver.java:202)
    1 frame
  13. org.mule.providers
    PollingMessageReceiver.run
    1. org.mule.providers.TransactedPollingMessageReceiver.poll(TransactedPollingMessageReceiver.java:108)
    2. org.mule.providers.PollingMessageReceiver.run(PollingMessageReceiver.java:90)
    2 frames
  14. org.mule.impl
    WorkerContext.run
    1. org.mule.impl.work.WorkerContext.run(WorkerContext.java:290)
    1 frame
  15. Backport of JSR 166
    ThreadPoolExecutor$Worker.run
    1. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    2. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    2 frames
  16. Java RT
    Thread.run
    1. java.lang.Thread.run(Unknown Source)
    1 frame