Version 5.4 log error

JaNO2 years ago

Hello,
I have such a mistake in my log.

2022-10-04 07:36:04  INFO: [T708bb453] connected
2022-10-04 07:36:32  INFO: [T708bb453: h02 < X.X.X.X] xxxxxx>
2022-10-04 07:36:32  INFO: [T708bb453: h02 > X.X.X.x] XXXXX
2022-10-04 07:36:32  INFO: [T708bb453] error - Cannot invoke "org.traccar.session.cache.CacheValue.getValue()" because the return value of "java.util.Map.get(Object)" is null - NullPointerException (CacheManager:105 < ... < *:106 < Noti>
2022-10-04 07:36:32  INFO: [T708bb453] disconnected
2022-10-04 07:36:32  INFO: [T708bb453] error - Cannot invoke "org.traccar.session.cache.CacheValue.getValue()" because the return value of "java.util.Map.get(Object)" is null - NullPointerException (CacheManager:105 < ... < *:106 < Noti>
2022-10-04 07:36:33  INFO: [T0233bf98] connected

Vehicle positions are not displayed on the map.

Anton Tananaev2 years ago

We won't be able to investigate it because you removed the HEX.

JaNO2 years ago
2022-10-04 07:36:32  INFO: [T708bb453: h02 < 5.173.24.52] 2a48512c393137313532333432332c56312c3035333632392c412c343935312e353838342c4e2c30313932362e313138302c452c3030302e30302c3237322c3034313032322c46464646423946462c3236302c30362c323232>
2022-10-04 07:36:32  INFO: [T708bb453: h02 > 5.173.24.52] 2a48512c393137313532333432332c56342c56312c323032323130303430353336333223
Anton Tananaev2 years ago

You need to provide full line. Your text editor cuts the end.

JaNO2 years ago
2022-10-04 11:18:07  INFO: [T7f382212] connected
2022-10-04 11:18:35  INFO: [T7f382212: h02 < 94.254.235.214] 2a48512c393137313532333432332c56312c3039313833322c412c343935312e313939312c4e2c30313932302e323934302c452c3030302e30302c3238342c3034313032322c46464646423946462c3236302c30362c323232322c323832343023
2022-10-04 11:18:35  INFO: [T7f382212: h02 > 94.254.235.214] 2a48512c393137313532333432332c56342c56312c323032323130303430393138333523
2022-10-04 11:18:35  INFO: [T7f382212] error - Cannot invoke "org.traccar.session.cache.CacheValue.getValue()" because the return value of "java.util.Map.get(Object)" is null - NullPointerException (CacheManager:105 < ... < *:106 < NotificationManager:77 < *:126 < ConnectionManager:245 < ...)
2022-10-04 11:18:35  INFO: [T7f382212] disconnected
Anton Tananaev2 years ago

It's not failing for me. I suspect you have some other issues.

JaNO2 years ago

Version 5.3 works very well.

Log from server 5.4 startup

2022-10-04 07:34:58  INFO: Operating system name: Linux version: 5.10.0-18-amd64 architecture: amd64
2022-10-04 07:34:59  INFO: Java runtime name: OpenJDK 64-Bit Server VM vendor: Eclipse Adoptium version: 17.0.4+8
2022-10-04 07:34:59  INFO: Memory limit heap: 880mb non-heap: 0mb
2022-10-04 07:34:59  INFO: Character encoding: UTF-8 charset: UTF-8
2022-10-04 07:34:59  INFO: Version: 5.4
2022-10-04 07:34:59  INFO: Starting server...
2022-10-04 07:34:59  INFO: HikariPool-1 - Starting...
2022-10-04 07:35:00  INFO: HikariPool-1 - Added connection com.mysql.cj.jdbc.ConnectionImpl@1bf0f6f6
2022-10-04 07:35:00  INFO: HikariPool-1 - Start completed.
2022-10-04 07:35:01  INFO: Clearing database change log checksums
2022-10-04 07:35:02  INFO: Successfully acquired change log lock
2022-10-04 07:35:02  INFO: Successfully released change log lock
2022-10-04 07:35:03  INFO: Successfully acquired change log lock
2022-10-04 07:35:07  INFO: Reading from traccar.DATABASECHANGELOG
2022-10-04 07:35:08  INFO: Reading from traccar.DATABASECHANGELOG
2022-10-04 07:35:08  INFO: Columns motionstate(BOOLEAN),motiontime(TIMESTAMP),motiondistance(DOUBLE),overspeedstate(BOOLEAN),overspeedtime(TIMESTAMP),overspeedgeofenceid(INT) added to tc_devices
2022-10-04 07:35:08  INFO: Table tc_commands_queue created
2022-10-04 07:35:08  INFO: Foreign key constraint added to tc_commands_queue (deviceid)
2022-10-04 07:35:08  INFO: Index idx_commands_queue_deviceid created
2022-10-04 07:35:08  INFO: ChangeSet changelog-5.4::changelog-5.4::author ran successfully in 146ms
2022-10-04 07:35:08  INFO: Successfully released change log lock
2022-10-04 07:35:10  INFO: Your platform does not provide complete low-level API for accessing direct buffers reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system instability.
2022-10-04 07:35:14  INFO: jetty-10.0.12; built: 2022-09-14T01:54:40.076Z; git: 408d0139887e27a57b54ed52e2d92a36731a7e88; jvm 17.0.4+8
2022-10-04 07:35:14  INFO: Started o.t.w.@7ef41ca2{/,null,AVAILABLE}
2022-10-04 07:35:14  INFO: Session workerName=node0
2022-10-04 07:35:16  WARN: JAXBContext implementation could not be found. WADL feature is disabled.
2022-10-04 07:35:17  INFO: Started o.e.j.s.ServletContextHandler@1e3566e{/,null,AVAILABLE}
2022-10-04 07:35:17  INFO: Started ServerConnector@56a05324{HTTP/1.1, (http/1.1)}{0.0.0.0:8082}
2022-10-04 07:35:17  INFO: Started Server@13aed42b{STARTING}[10.0.12,sto=0] @21924ms
2022-10-04 07:35:18  INFO: Health check enabled with period 480000
2022-10-04 07:35:21  INFO: [Tab189352] connected
2022-10-04 07:35:41  INFO: [T83c010b2] connected
2022-10-04 07:35:41  INFO: [T83c010b2: h02 < 5.173.24.52] 2a48512c393137313532333432332c56312c3035333430302c412c343935312e353838312c4e2c30313932362e313137392c452c3030302e30302c3237322c3034313032322c46424646423946462c3236302c30362c323232322c353334303923
2022-10-04 07:35:43  INFO: [T83c010b2: h02 > 5.173.24.52] 2a48512c393137313532333432332c56342c56312c323032323130303430353335343323
2022-10-04 07:35:43  INFO: [T83c010b2] error - Cannot invoke "org.traccar.session.cache.CacheValue.getValue()" because the return value of "java.util.Map.get(Object)" is null - NullPointerException (CacheManager:105 < ... < *:106 < NotificationManager:77 < *:126 < ConnectionManager:245 < ...)
2022-10-04 07:35:43  INFO: [T83c010b2] disconnected
mirzet5112 years ago

I have the same problem with Traccar 5.4, how to solve it?

2022-10-04 22:10:29  INFO: [Tcab393f9: huabao < 109.163.169.161] 7e0102000c01917163460203b1303139313731363334363032717e
2022-10-04 22:10:29  INFO: [Tcab393f9: huabao > 109.163.169.161] 7e80010005019171634602000003b1010200f37e
2022-10-04 22:10:29  INFO: [Tcab393f9] error - Cannot invoke "org.traccar.session.cache.CacheValue.getValue()" because the return value of "java.util.Map.get(Object)" is null - NullPointerException (CacheManager:105 < ... < *:106 < NotificationManager:77 < *:126 < ConnectionManager:245 < ...)
2022-10-04 22:10:29  INFO: [Tcab393f9] disconnected
Anton Tananaev2 years ago

Can I have access to the server to take a look?

mirzet5112 years ago

yes. what do you need to access the server?

Anton Tananaev2 years ago

At least the URL and login. Potentially database access as well.

mirzet5112 years ago

it will take me a few minutes to reinstall 5.4

JaNO2 years ago

to which address I can send my login details

JaNO2 years ago

the problem is probably with the h02 protocol
I have a second device with the gps103 protocol and it worked properly

Anton Tananaev2 years ago

Actually we need steps to reproduce it on a clean server. Having login and even database backup didn't help.