Hi Anton,
My traccar server refuses to start after I try to modify traccar.xml file by adding timeout options. I have tried to use both of the following arguments one at a time:
<entry key=’osmand.timeout’>45</entry>
<entry key=’osmand.resetDelay’>45</entry>
I am using Traccar server 3.8 for Windows.
Can u spot what am I doing wrong?
Here is the log file:
WARNING|wrapper|Service traccar|17-08-02 06:38:42|YAJSW: yajsw-beta-12.07
WARNING|wrapper|Service traccar|17-08-02 06:38:42|OS : Windows Server 2012 R2/6.3/amd64
WARNING|wrapper|Service traccar|17-08-02 06:38:42|JVM : Oracle Corporation/1.8.0_131/C:\Program Files\Java\jre1.8.0_131/64
INFO|wrapper|Service traccar|17-08-02 06:38:42|start delay: 0
INFO|wrapper|Service traccar|17-08-02 06:38:43|started process with pid 8964
INFO|8964/0|Service traccar|17-08-02 06:38:46|[INFO] StandardFileSystemManager - Using "C:\Windows\TEMP\vfs_cache" as temporary files store.
INFO|8964/0|Service traccar|17-08-02 06:38:48|java.lang.reflect.InvocationTargetException
INFO|8964/0|Service traccar|17-08-02 06:38:48| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at java.lang.reflect.Method.invoke(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at org.rzo.yajsw.app.WrapperJVMMain.executeMain(WrapperJVMMain.java:60)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at org.rzo.yajsw.app.WrapperJVMMain.main(WrapperJVMMain.java:43)
INFO|8964/0|Service traccar|17-08-02 06:38:48|Caused by: com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
INFO|8964/0|Service traccar|17-08-02 06:38:48| at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.invalidByte(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipSpaces(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanAttribute(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at sun.util.xml.PlatformXmlPropertiesProvider.getLoadingDoc(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at sun.util.xml.PlatformXmlPropertiesProvider.load(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at java.util.Properties$XmlSupport.load(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at java.util.Properties.loadFromXML(Unknown Source)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at org.traccar.Config.load(Config.java:30)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at org.traccar.Context.init(Context.java:159)
INFO|8964/0|Service traccar|17-08-02 06:38:48| at org.traccar.Main.main(Main.java:35)
INFO|8964/0|Service traccar|17-08-02 06:38:48| ... 6 more
The error is pretty clear from the log:
Invalid byte 1 of 1-byte UTF-8 sequence.
I guess it means that text editor you used to modify the config file has messed it up.
Anton, thank you for your help! Worked like a charm. I have used Notepad ++ and it works.
Hi Anton,
I NOTICED THAT CHANGING CONFIGURATION FILE USING osmand.timeout didn't work. Traccar still keeps the connections open, and as a result produces large log files with errors by the end of each day. Shall I use osmand.resetDelay instead? I AM USING TRACCAR FOR WINDOWS 3.8.
THANK YOU
There is no need to write in caps lock. It just makes it harder to read and less likely that you get any response.
Timeout should work, assuming that you are using reasonably up-to-date version of Traccar. Do not use "resetDelay" because it will be removed in future.
Hi Anton,
My traccar server refuses to start after I try to modify traccar.xml file by adding timeout options. I have tried to use both of the following arguments one at a time:
I am using Traccar server 3.8 for Windows.
Can u spot what am I doing wrong?
Here is the log file: