# Uncaught Throwable handling response

**URL:** <https://forum.inductiveautomation.com/t/uncaught-throwable-handling-response/11023>\
**Category:** Ignition\
**Created:** [January 11, 2016, 8:54am UTC](https://forum.inductiveautomation.com/t/uncaught-throwable-handling-response/11023 "2016-01-11T08:54:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Serhii](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@Serhii](https://forum.inductiveautomation.com/u/Serhii)\
**Post date:** [January 11, 2016, 8:54am UTC](https://forum.inductiveautomation.com/t/uncaught-throwable-handling-response/11023/1 "2016-01-11T08:54:22Z")

</div>

Hello. What does this error means after and before normal requests?

code 10:51:29 drivers.ModbusOverTCPDriver[Port2].ReadHoldingRegistersRequest Received message: [05 03 20 00 03 00 00 00 2A 00 6C 00 01 00 00 00 03 00 00 00 00 00 03 00 00 00 2A 00 6C 00 2C 00 00 00 03 7C DD]  
(T) 10:51:29 drivers.ModbusOverTCPDriver[Port2].ReadHoldingRegistersRequest Sending message: [05 03 02 BC 00 10 85 DE]

ERROR 10:51:29 drivers.ModbusOverTCPDriver[Port2].ReadHoldingRegistersRequest Uncaught Throwable handling response. key=java.lang.Object@535cdd9c, req=[], rsp=[05 03 0C 00 00 00 00 00 00 03 E8 03 E8 00 01 B6 E7]

java.lang.ArrayIndexOutOfBoundsException

(T) 10:51:29 drivers.ModbusOverTCPDriver[Port2].ReadHoldingRegistersRequest Received message: [05 03 0C 00 00 00 00 00 00 03 E8 03 E8 00 01 B6 E7]  
(T) 10:51:28 drivers.ModbusOverTCPDriver[Port2].ReadHoldingRegistersRequest Sending message: [05 03 02 CC 00 10 84 05][/code]

The device is Modbus RTU over TCP  
Ignition 7.6.7 x64

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [January 11, 2016, 3:53pm UTC](https://forum.inductiveautomation.com/t/uncaught-throwable-handling-response/11023/2 "2016-01-11T15:53:58Z")

</div>

Basically it means there was an error parsing the response from the device.

In this case the device seems to be sending back what might be the response for another request, or in any case, is sending back too few bytes for the request that was sent.

The request is asking for 16 registers starting at address 0x02CC, but the value response contains only 12 bytes, when it should contain 32.

---

<div class="post-metadata">

**Author:** ![Serhii](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@Serhii](https://forum.inductiveautomation.com/u/Serhii)\
**Post date:** [January 12, 2016, 9:23am UTC](https://forum.inductiveautomation.com/t/uncaught-throwable-handling-response/11023/3 "2016-01-12T09:23:07Z")

</div>

[quote=“Kevin.Herron”]Basically it means there was an error parsing the response from the device.

In this case the device seems to be sending back what might be the response for another request, or in any case, is sending back too few bytes for the request that was sent.

The request is asking for 16 registers starting at address 0x02CC, but the value response contains only 12 bytes, when it should contain 32.[/quote]

Thanks, but why it can happens?  
~ 50-100 good requests and responses and then 1 like this one.
