Not enough readable bytes

Shashank7 years ago

Getting error after the device gets connected to the server. I am using 5023 port (GT06).
Error Message log says:

2018-06-05 09:13:22  INFO: [7121847E] connected
2018-06-05 09:13:22 DEBUG: [7121847E: 5023 < 106.206.54.32] HEX: 78780d01035682303012280300091df00d0a
2018-06-05 09:13:22 DEBUG: [7121847E: 5023 > 106.206.54.32] HEX: 78780501000955940d0a
2018-06-05 09:13:23 DEBUG: [7121847E: 5023 < 106.206.54.32] HEX: 787822280f0601000d0201942d61e52a322f61e52a331c61e55b611b61e528fb1961fe43651561e52a311500093e120d0a
2018-06-05 09:13:23  WARN: [7121847E] error - Not enough readable bytes - Need 2, maximum is 0 - IndexOutOfBoundsException (... < Gt06ProtocolDecoder:561 < *:496 < *:780 < ExtendedObjectDecoder:58 < ...)
2018-06-05 09:13:23  INFO: [7121847E] disconnected
2018-06-05 09:16:25  INFO: [B370E282] connected
2018-06-05 09:16:25 DEBUG: [B370E282: 5023 < 106.206.72.121] HEX: 78780d010356823030122803000b3ee20d0a
2018-06-05 09:16:25 DEBUG: [B370E282: 5023 > 106.206.72.121] HEX: 78780501000b76860d0a

Is there some issue with the client sending the request?

Anton Tananaev7 years ago

It probably means that one of the messages has incorrect length value.

Shashank7 years ago

Next time, it came as

2018-06-05 09:16:25  INFO: [B370E282] connected
2018-06-05 09:16:25 DEBUG: [B370E282: 5023 < 106.206.72.121] HEX: 78780d010356823030122803000b3ee20d0a
2018-06-05 09:16:25 DEBUG: [B370E282: 5023 > 106.206.72.121] HEX: 78780501000b76860d0a
2018-06-05 09:19:25 DEBUG: [B370E282: 5023 < 106.206.72.121] HEX: 78780a131006640001000b41e00d0a
2018-06-05 09:19:25 DEBUG: [B370E282: 5023 > 106.206.72.121] HEX: 78780513000b46ab0d0a
2018-06-05 09:19:25  WARN: Data truncation: Incorrect datetime value: '1970-01-01 00:00:00' for column 'fixtime' at row 1 - MysqlDataTruncation (... < QueryBuilder:477 < DataManager:452 < DefaultDataHandler:27 < ...)
2018-06-05 09:19:26  INFO: [B370E282] id: 356823030122803, time: 1970-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0

No entry got created in positions table. Devices table got updated and in the map it is showing at lat: 0 and long:0

Needed help to understand this.

Anton Tananaev7 years ago

This time there is no GPS data. Look, I recommend you to search forum before asking for help. It has been discussed multiple times before.

Shashank7 years ago

Sure.
Was wondering if im doing anything wrong as I am trying for the first time.
Will go through the forum once. Thanks a lot