WARN: Position handler failed

Matt Mobius 20 days ago

I'm getting this frequently in my server logs.

2026-08-25 13:38:24  WARN: Position handler failed - Cannot invoke "Object.hashCode()" because "pe" is null - NullPointerException (... < CacheManager:103 < GeofenceUtil:31 < GeofenceHandler:37 < BasePositionHandler:34 < ...)

I tried to enable alarm notifications of the device being unplugged and then added some custom attributes - The errors only started yesterday at the time I was playing so I know its me. I have no Computed Attributes set, no Attributes set in the device. I'm pretty sure I removed everything I tried setting (which I guess I haven't?) but still getting the error. It is updating the location ok still, just this error appearing after each update.

Any tips.

Anton Tananaev 20 days ago

Official unmodified Traccar? What version?

Matt Mobius 20 days ago

6.14.5 - Windows version. Unmodified. Pretty new install (~3 weeks) with only a move from initial DB to MSSQL

Anton Tananaev 20 days ago

Looks like the error means that you have dangling permission that referenced non-existent geofence. How did you move the database? Are you sure foreign key constraints were preserved. Verify if you have those.

Matt Mobius 20 days ago

I used Squirrel to do it table by table. I did recently modify a Geofence, deleted and recreated with the same name... Where do I check the Key constraints?

When I look at the geofence table it shows 6 records where in traccar I only have 5.

Anton Tananaev 20 days ago

Foreign key constraints should be in the database schema.

Matt Mobius 19 days ago

Hmmm - As its "functioing" I might do what I need to do with the data (I use it to track location for time billing) then when thats all caught up I'll start a fresh database completely to make sure there are no other errors.