GT06 NullPointerException

zzmyers4 years ago

I am seeing a number NullPointException errors in the log for the GT06 protocol. I can't figure out what exactly is causing them. I would like to eliminate these if possible.

Here are some of the entries from the log:
```
2020-10-10 00:53:50 INFO: [fda06295: gt06 < 39.144.10.67] HEX: 78780a1302c8050002000334980d0a
2020-10-10 00:53:50 INFO: [fda06295: gt06 > 39.144.10.67] HEX: 787805130003cae30d0a
2020-10-10 00:53:50 INFO: [fda06295] id: 860112049931621, time: 1970-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0
2020-10-10 00:53:50 WARN: [fda06295] error - NullPointerException

2020-10-10 00:54:32 INFO: [3172dc7d: gt06 < 39.144.10.67] HEX: 78782111140a0a003610c8026fabcc0c352e0000340001cc0000247900001271000721a50d0a
2020-10-10 00:54:32 INFO: [3172dc7d: gt06 > 39.144.10.67] HEX: 787805110007397f0d0a
2020-10-10 00:54:32 INFO: [3172dc7d] id: 860112049931621, time: 2020-10-10 00:54:16, lat: 22.70717, lon: 113.78432, course: 0.0
2020-10-10 00:54:32 WARN: [3172dc7d] error - NullPointerException

2020-10-10 00:57:04 INFO: [f0790bc2: gt06 < 39.144.10.67] HEX: 78782111140a0a00382ec8026fabc00c352de000340001cc0000247900001271001b8ac40d0a
2020-10-10 00:57:04 INFO: [f0790bc2: gt06 > 39.144.10.67] HEX: 78780511001be3920d0a
2020-10-10 00:57:04 INFO: [f0790bc2] id: 860112049931621, time: 2020-10-10 00:56:46, lat: 22.70716, lon: 113.78430, course: 0.0
2020-10-10 00:57:04 WARN: [f0790bc2] error - NullPointerException

2020-10-10 00:57:33 INFO: [372a2013: gt06 < 39.144.10.67] HEX: 78782111140a0a003910c8026fabc00c352df000340001cc0000247900001271001f522a0d0a
2020-10-10 00:57:33 INFO: [372a2013: gt06 > 39.144.10.67] HEX: 78780511001fa5b60d0a
2020-10-10 00:57:33 INFO: [372a2013] id: 860112049931621, time: 2020-10-10 00:57:16, lat: 22.70716, lon: 113.78431, course: 0.0
2020-10-10 00:57:33 WARN: [372a2013] error - NullPointerException

2020-10-10 01:42:16 INFO: [db486c4f: gt06 < 39.144.16.71] HEX: 78780a1302b10500020003d4ea0d0a
2020-10-10 01:42:16 INFO: [db486c4f: gt06 > 39.144.16.71] HEX: 787805130003cae30d0a
2020-10-10 01:42:16 INFO: [db486c4f] id: 860112049928783, time: 1970-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0
2020-10-10 01:42:16 WARN: [db486c4f] error - NullPointerException

2020-10-10 01:42:31 INFO: [ad749913: gt06 < 39.144.16.23] HEX: 78780a1302b10500020003d4ea0d0a
2020-10-10 01:42:31 INFO: [ad749913: gt06 > 39.144.16.23] HEX: 787805130003cae30d0a
2020-10-10 01:42:31 INFO: [ad749913] id: 860112049979372, time: 1970-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0
2020-10-10 01:42:31 WARN: [ad749913] error - NullPointerException

2020-10-10 01:44:58 INFO: [231a6208: gt06 < 39.144.18.57] HEX: 78780a1302b10500020003d4ea0d0a
2020-10-10 01:44:58 INFO: [231a6208: gt06 > 39.144.18.57] HEX: 787805130003cae30d0a
2020-10-10 01:44:58 INFO: [231a6208] id: 868923050999725, time: 1970-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0
2020-10-10 01:44:58 WARN: [231a6208] error - NullPointerException

2020-10-10 01:45:51 INFO: [92f57f67: gt06 > 39.144.7.247] HEX: 787805130003cae30d0a
2020-10-10 01:45:51 INFO: [e4e614f8] id: 353601200013052, time: 2020-10-08 00:08:58, lat: 34.09591, lon: -118.29372, course: 0.0
2020-10-10 01:45:51 INFO: [92f57f67] id: 868923050950546, time: 1970-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0
2020-10-10 01:45:51 WARN: [92f57f67] error - NullPointerException

2020-10-10 01:46:29 INFO: [8242e0cc: gt06 < 117.132.195.216] HEX: 78780a1302aa030002000380e70d0a
2020-10-10 01:46:29 INFO: [8242e0cc: gt06 > 117.132.195.216] HEX: 787805130003cae30d0a
2020-10-10 01:46:29 INFO: [8242e0cc] id: 868923050921943, time: 1970-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0
2020-10-10 01:46:29 WARN: [8242e0cc] error - NullPointerException

2020-10-10 01:47:08 INFO: [42104b93: gt06 < 39.144.11.228] HEX: 78780a1302b10500020003d4ea0d0a
2020-10-10 01:47:08 INFO: [42104b93: gt06 > 39.144.11.228] HEX: 787805130003cae30d0a
2020-10-10 01:47:08 INFO: [42104b93] id: 860112049945951, time: 1970-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0
2020-10-10 01:47:08 WARN: [42104b93] error - NullPointerException

2020-10-10 01:47:35 INFO: [1f7261b1: gt06 < 39.144.11.228] HEX: 78782111140a0a012f14c8026fab800c352e2000340001cc0000252900000fb70007a50c0d0a
2020-10-10 01:47:35 INFO: [1f7261b1: gt06 > 39.144.11.228] HEX: 787805110007397f0d0a
2020-10-10 01:47:35 INFO: [1f7261b1] id: 860112049945951, time: 2020-10-10 01:47:20, lat: 22.70713, lon: 113.78434, course: 0.0
2020-10-10 01:47:35 WARN: [1f7261b1] error - NullPointerException

2020-10-10 01:48:08 INFO: [865b7f72: gt06 < 39.144.15.74] HEX: 78780a1302af0500020003aff80d0a
2020-10-10 01:48:08 INFO: [865b7f72: gt06 > 39.144.15.74] HEX: 787805130003cae30d0a
2020-10-10 01:48:08 INFO: [865b7f72] id: 860112049946934, time: 1970-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0
2020-10-10 01:48:08 WARN: [865b7f72] error - NullPointerException

2020-10-10 01:48:42 INFO: [2eb14f52: gt06 < 221.178.125.99] HEX: 78780a1302b00500020003d0c10d0a
2020-10-10 01:48:42 INFO: [2eb14f52: gt06 > 221.178.125.99] HEX: 787805130003cae30d0a
2020-10-10 01:48:42 INFO: [2eb14f52] id: 860112049945977, time: 1970-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0
2020-10-10 01:48:42 WARN: [2eb14f52] error - NullPointerException

2020-10-10 01:49:04 INFO: [fc049467: gt06 < 221.178.125.99] HEX: 78782111140a0a013031c8026fabf40c352e2000340001cc0000252900000fb700070f280d0a
2020-10-10 01:49:04 INFO: [fc049467: gt06 > 221.178.125.99] HEX: 787805110007397f0d0a
2020-10-10 01:49:04 INFO: [fc049467] id: 860112049945977, time: 2020-10-10 01:48:49, lat: 22.70719, lon: 113.78434, course: 0.0
2020-10-10 01:49:04 WARN: [fc049467] error - NullPointerException

2020-10-10 01:49:30 INFO: [f50d73c4: gt06 < 39.144.11.176] HEX: 78780a1302b10500020003d4ea0d0a
2020-10-10 01:49:30 INFO: [f50d73c4: gt06 > 39.144.11.176] HEX: 787805130003cae30d0a
2020-10-10 01:49:30 INFO: [f50d73c4] id: 860112049946835, time: 1970-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0
2020-10-10 01:49:30 WARN: [f50d73c4] error - NullPointerException

2020-10-10 02:00:01 INFO: [e5b45cb0: gt06 > 39.144.5.21] HEX: 787805130003cae30d0a
2020-10-10 02:00:01 INFO: [3f0e10b6] id: 353601200012783, time: 2020-09-03 17:38:28, lat: 55.67615, lon: 12.56538, course: 0.0
2020-10-10 02:00:01 INFO: [e5b45cb0] id: 868923050999618, time: 1970-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0
2020-10-10 02:00:01 WARN: [e5b45cb0] error - NullPointerException


Any data would be of use. Thanks.

Steve
Anton Tananaev4 years ago

You need to get full stack traces to understand what the issue is. And we'll need to know version of the server.

zzmyers4 years ago

It is server version 4.8. I set the log level to "Finest" and got the following:
```
2020-10-10 08:46:43 INFO: [791f359b: oc01 < 39.144.17.143] HEX: 78780a1302a90500020003b7020d0a
2020-10-10 08:46:43 INFO: [791f359b: oc01 > 39.144.17.143] HEX: 787805130003cae30d0a
2020-10-10 08:46:43 INFO: [791f359b] id: 860112049958129, time: 1970-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0
2020-10-10 08:46:43 WARN: [791f359b] error - NullPointerException (MainEventHandler:115 < ... < BaseDataHandler:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < ExtendedObjectDecoder:64 < ...)

2020-10-10 08:46:48 INFO: [ed7656ec: oc01 < 39.144.18.52] HEX: 78780a1302b00300020003eb590d0a
2020-10-10 08:46:48 INFO: [ed7656ec: oc01 > 39.144.18.52] HEX: 787805130003cae30d0a
2020-10-10 08:46:48 INFO: [ed7656ec] id: 860112049978929, time: 1970-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0
2020-10-10 08:46:48 WARN: [ed7656ec] error - NullPointerException (MainEventHandler:115 < ... < BaseDataHandler:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < ExtendedObjectDecoder:64 < ...)

2020-10-10 08:46:54 INFO: [dcdbd9da: oc01 < 218.204.253.26] HEX: 78780a1342b305000200031bba0d0a
2020-10-10 08:46:54 INFO: [dcdbd9da: oc01 > 218.204.253.26] HEX: 787805130003cae30d0a
2020-10-10 08:46:54 INFO: [dcdbd9da] id: 860112049958376, time: 1970-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0
2020-10-10 08:46:54 WARN: [dcdbd9da] error - NullPointerException (MainEventHandler:115 < ... < BaseDataHandler:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < ExtendedObjectDecoder:64 < ...)

2020-10-10 08:47:06 INFO: [e942b45b: oc01 < 39.144.17.143] HEX: 78782111140a0a082e31c8026facc40c352e5000340001cc0000252900000e4300072a5d0d0a
2020-10-10 08:47:06 INFO: [e942b45b: oc01 > 39.144.17.143] HEX: 787805110007397f0d0a
2020-10-10 08:47:06 INFO: [e942b45b] id: 860112049958129, time: 2020-10-10 08:46:49, lat: 22.70731, lon: 113.78436, course: 0.0
2020-10-10 08:47:06 WARN: [e942b45b] error - NullPointerException (MainEventHandler:115 < ... < BaseDataHandler:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < ExtendedObjectDecoder:64 < ...)

2020-10-10 08:47:45 INFO: [730f1983: oc01 < 117.132.193.138] HEX: 78780a1302ae02000200039b0f0d0a
2020-10-10 08:47:45 INFO: [730f1983: oc01 > 117.132.193.138] HEX: 787805130003cae30d0a
2020-10-10 08:47:45 INFO: [730f1983] id: 860112049936299, time: 1970-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0
2020-10-10 08:47:45 WARN: [730f1983] error - NullPointerException (MainEventHandler:115 < ... < BaseDataHandler:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < ExtendedObjectDecoder:64 < ...)

2020-10-10 08:47:54 INFO: [c622b1b4: oc01 < 39.144.7.85] HEX: 78780a1302b00300020003eb590d0a
2020-10-10 08:47:54 INFO: [c622b1b4: oc01 > 39.144.7.85] HEX: 787805130003cae30d0a
2020-10-10 08:47:54 INFO: [c622b1b4] id: 860112049958129, time: 2020-10-10 08:46:49, lat: 22.70731, lon: 113.78436, course: 0.0
2020-10-10 08:47:54 WARN: [c622b1b4] error - NullPointerException (MainEventHandler:115 < ... < BaseDataHandler:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < ExtendedObjectDecoder:64 < ...)

2020-10-10 08:48:33 INFO: [e31a2de2: oc01 < 39.144.17.184] HEX: 78780a1302b10500020003d4ea0d0a
2020-10-10 08:48:33 INFO: [e31a2de2: oc01 > 39.144.17.184] HEX: 787805130003cae30d0a
2020-10-10 08:48:33 INFO: [e31a2de2] id: 860112049932215, time: 1970-01-01 00:00:00, lat: 0.00000, lon: 0.00000, course: 0.0
2020-10-10 08:48:33 WARN: [e31a2de2] error - NullPointerException (MainEventHandler:115 < ... < BaseDataHandler:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < *:30 < ... < ExtendedObjectDecoder:64 < ...)


Steve
zzmyers4 years ago

Never mind. The error is something I did that I forgot I was trying to see if I could get working. It is not an error in Traccar at all. Sorry.

Steve

Gaspar3 years ago

Hi zzmyers,

I'm trying to read a GT06 package on java. My question is, ¿What is your code developed in?

zzmyers3 years ago

I did not develop the package. I just have done some small local mods for my specific usage. It is all done in Java and I have successfully recompiled Traccar from source with Java.