Server 2016 + SQL2012 Traccar service does not start

Dminry Medvedev7 years ago

traccar.xml

<entry key='database.driver'>com.microsoft.sqlserver.jdbc.SQLServerDriver</entry>
<entry key='database.url'>jdbc:sqlserver://192.168.10.83;user=sa;password=******;databaseName=traccar_base;</entry>
<entry key='database.user'>Sa</entry>
<entry key='database.password'>******</entry>

wrapper.log

WARNING|wrapper|Service traccar|18-07-06 13:51:30|YAJSW: yajsw-stable-12.12
WARNING|wrapper|Service traccar|18-07-06 13:51:30|OS   : Windows Server 2016/10.0/amd64
WARNING|wrapper|Service traccar|18-07-06 13:51:30|JVM  : Oracle Corporation/1.8.0_171/C:\Program Files\Java\jre1.8.0_171/64
INFO|wrapper|Service traccar|18-07-06 13:51:30|start delay: 0
INFO|wrapper|Service traccar|18-07-06 13:51:30|started process with pid 5912
INFO|5912/0|Service traccar|18-07-06 13:51:32|[INFO] StandardFileSystemManager - Using "C:\Windows\TEMP\vfs_cache" as temporary files store.
INFO|5912/0|Service traccar|18-07-06 13:51:32|SLF4J: Class path contains multiple SLF4J bindings.
INFO|5912/0|Service traccar|18-07-06 13:51:32|SLF4J: Found binding in [jar:file:/C:/Program%20Files/Traccar/lib/slf4j-simple-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
INFO|5912/0|Service traccar|18-07-06 13:51:32|SLF4J: Found binding in [jar:file:/C:/Program%20Files/Traccar/lib/logback-classic-1.2.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
INFO|5912/0|Service traccar|18-07-06 13:51:32|SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
INFO|5912/0|Service traccar|18-07-06 13:51:32|SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
INFO|5912/0|Service traccar|18-07-06 13:51:33|java.lang.reflect.InvocationTargetException
INFO|5912/0|Service traccar|18-07-06 13:51:33|	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO|5912/0|Service traccar|18-07-06 13:51:33|	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO|5912/0|Service traccar|18-07-06 13:51:33|	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO|5912/0|Service traccar|18-07-06 13:51:33|	at java.lang.reflect.Method.invoke(Unknown Source)
INFO|5912/0|Service traccar|18-07-06 13:51:33|	at org.rzo.yajsw.app.WrapperJVMMain.executeMain(WrapperJVMMain.java:60)
INFO|5912/0|Service traccar|18-07-06 13:51:33|	at org.rzo.yajsw.app.WrapperJVMMain.main(WrapperJVMMain.java:43)
INFO|5912/0|Service traccar|18-07-06 13:51:33|Caused by: java.lang.NullPointerException
INFO|5912/0|Service traccar|18-07-06 13:51:33|	at org.traccar.Context.init(Context.java:379)
INFO|5912/0|Service traccar|18-07-06 13:51:33|	at org.traccar.Main.main(Main.java:35)
INFO|5912/0|Service traccar|18-07-06 13:51:33|	... 6 more
INFO|wrapper|Service traccar|18-07-06 13:51:33|calling onStop
INFO|wrapper|Service traccar|18-07-06 13:51:33|Win service stop - timeout: 30000
INFO|wrapper|Service traccar|18-07-06 13:51:33|Win service wrapper.control -> stopping application
INFO|wrapper|Service traccar|18-07-06 13:51:33|Win service stop - after shutdown
INFO|wrapper|Service traccar|18-07-06 13:51:33|Win service stop - before notify
INFO|wrapper|Service traccar|18-07-06 13:51:33|Win service terminated
Anton Tananaev7 years ago

I suspect there is some problem with config file. Try to install latest official release and run it without any modifications.