Upgraded to 4.5: ArrayIndexOutOfBoundsException

Marco6 years ago

Hi,

after upgrading to 4.5 version (with mysql support), I get this error when the remote device gets connected:

2019-06-12 19:38:02  INFO: [574858f7: gps103 < xx.xx.xx.73] HEX: [...]
2019-06-12 19:38:02  INFO: [574858f7: gps103 > xx.xxx.xx.73] HEX: [...]
2019-06-12 19:38:02  WARN: [574858f7] error - 1 - ArrayIndexOutOfBoundsException (EventForwarder:55 < NotificationManager:111 < *:117 < ConnectionManager:112 < ...)
2019-06-12 19:38:02  INFO: [574858f7] disconnected
2019-06-12 19:38:02  WARN: [574858f7] error - 1 - ArrayIndexOutOfBoundsException (EventForwarder:55 < NotificationManager:111 < *:117 < ConnectionManager:112 < ...)

Downgraded to 4.3 and it works without problems.

Any hint?

Marco

Parth6 years ago

Hello Anton,

Facing same error on previously working event configuration. Can you please help for the resolution?

Thanks in advance.

Anton Tananaev6 years ago

You have probably misconfigured something.

Parth6 years ago

Hello Anton,

Below is the configuration I have in my traccar.xml and it is working as expected on traccar 4.2 version.

Config:

    <entry key='event.forward.enable'>true</entry>
    <entry key='event.forward.url'>http://localhost/event.php</entry>
    <entry key='event.forward.header'>
        content-type: application/json
        cache-control: no-cache
    </entry>

Can you please review the missing thing i have to add to let it work with traccar 4.5?

Regards.

Anton Tananaev6 years ago

Most likely headers format is incorrect. Also, it doesn't really many any sense to include those headers anyway.

Marco5 years ago

Thank you, I've removed the header entry and it seems to work correctly.

Marco