Index 1 out of bounds for length 1 - ArrayIndexOutOfBoundsException

Don 5 years ago

I receive this warning below:

 WARN: [9dec7730] error - Index 1 out of bounds for length 1 - ArrayIndexOutOfBoundsException (EventForwarder:55 < NotificationManager:116 < *:122 < ConnectionManager:112 < ...)

if this is related to event forwarder then my traccar.xml is:

    <entry key='forward.enable'>true</entry>
    <entry key='forward.url'>https://xxxx/traccar_events</entry>
    <entry key='forward.json'>true</entry>

    <entry key="event.forward.enable">true</entry>
    <entry key='event.forward.url'>https://xxxx/traccar_events</entry>

what should I check?

Don 5 years ago

additional info (I am unable to edit my post)

I use FM3001 (port 5027 and it accessible), complete log:

2020-08-03 14:24:47  WARN: /api/socket - NullPointerException (AsyncSocketServlet:37 < ...)
2020-08-03 14:25:02  INFO: [8d0bbf31] connected
2020-08-03 14:25:02  INFO: [8d0bbf31: teltonika < 140.213.5.27] HEX: 000f383637303630303333343631333332
2020-08-03 14:25:02  INFO: [8d0bbf31: teltonika > 140.213.5.27] HEX: 01
2020-08-03 14:25:02  WARN: [8d0bbf31] error - Index 1 out of bounds for length 1 - ArrayIndexOutOfBoundsException (EventForwarder:55 < NotificationManager:116 < *:122 < ConnectionManager:112 < ...)
2020-08-03 14:25:02  INFO: [8d0bbf31] disconnected
2020-08-03 14:25:02  WARN: [8d0bbf31] error - Index 1 out of bounds for length 1 - ArrayIndexOutOfBoundsException (EventForwarder:55 < NotificationManager:116 < *:122 < ConnectionManager:112 < ...)
2020-08
Anton Tananaev 5 years ago

It looks like you haven't shared some relevant config. The error indicates that you configured headers parameter incorrectly.

Don 5 years ago

Anton,

Thank you very much for the clue..
have a good day!

Bradley 5 years ago

Hey Don,

Kindly advise how you overcame this predicament, share your config if you can, maybe I'm missing something cos I'm having a similar issue. Thank you.

Primtek 5 years ago
    <entry key='forward.enable'>true</entry>
    <entry key='forward.url'>YOUR_WEBHOOK</entry>
    <entry key='forward.json'>true</entry>
    <entry key='forward.header'>Authorization: Basic xxx</entry>
    <entry key='event.forward.enable'>true</entry>
    <entry key='event.forward.url'>YOUR_WEBHOOK</entry>
    <entry key='event.forward.header'>Authorization: Basic xxx</entry>