Getting error while starting the server

SKCoder2 years ago

I am facing following issue.

Jun 01 20:01:23 Base traccar[752380]: Exception in thread "main" java.lang.RuntimeException: java.lang.NullPointerException
Jun 01 20:01:23 Base traccar[752380]:         at org.traccar.Main.run(Main.java:152)
Jun 01 20:01:23 Base traccar[752380]:         at org.traccar.Main.main(Main.java:104)
Jun 01 20:01:23 Base traccar[752380]: Caused by: java.lang.NullPointerException
Jun 01 20:01:23 Base traccar[752380]:         at org.traccar.helper.Log.setupDefaultLogger(Log.java:165)
Jun 01 20:01:23 Base traccar[752380]:         at org.traccar.Context.init(Context.java:368)
Jun 01 20:01:23 Base traccar[752380]:         at org.traccar.Main.run(Main.java:110)
Jun 01 20:01:23 Base traccar[752380]:         ... 1 more
Jun 01 20:01:23 Base systemd[1]: traccar.service: Main process exited, code=exited, status=1/FAILURE
Jun 01 20:01:23 Base systemd[1]: traccar.service: Failed with result 'exit-code'.
Anton Tananaev2 years ago

Are you using the latest version without any customization?

SKCoder2 years ago

I am using 4.3 version with some customisation. It was working with existing customisation and I needed more but after that, it showed this error and now it got stuck. I am not able to resolve it.

Anton Tananaev2 years ago

Next time please be clear upfront that you're asking about a custom version.

SKCoder2 years ago

Okay, sure!
Is there any way to resolve this?

SKCoder2 years ago

There was default.xml parsing issue. It was my bad.