WARN: Position handler failed

Matt Mobius 5 hours 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 2 hours ago

Official unmodified Traccar? What version?

Matt Mobius 2 hours ago

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

Anton Tananaev 2 hours 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 2 hours 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 2 hours ago

Foreign key constraints should be in the database schema.