Build using netbeans traccar

gabrielcz9 years ago

Hi all,
Im using ubuntu, I installed netbeans from sources and installed maven pluggin.
I can import the project, and I can BUID fine.
I took the tracker-server.jar I got it, and put on /opt/traccar (from where I use the traccar version 2.12 from 17-Apr-2015, and I try to start again like use to do it and I got this error.

root@GE:/opt/traccar# /opt/traccar/bin/traccar start
Starting traccar...
Waiting for traccar........
WARNING: traccar may have failed to start.
root@GE:/opt/traccar# /opt/traccar/bin/traccar console
Running traccar...
wrapper | --> Wrapper Started as Console
wrapper | Java Service Wrapper Community Edition 64-bit 3.5.26
wrapper | Copyright (C) 1999-2014 Tanuki Software, Ltd. All Rights Reserved.
wrapper | http://wrapper.tanukisoftware.com
wrapper |
wrapper | Launching a JVM...
jvm 1 | WrapperManager: Initializing...
jvm 1 | WrapperSimpleApp:
jvm 1 | WrapperSimpleApp Error: Encountered an error running main:
jvm 1 | WrapperSimpleApp Error: java.lang.NullPointerException
jvm 1 | WrapperSimpleApp Error: at org.traccar.database.QueryBuilder.parse(QueryBuilder.java:60)
jvm 1 | WrapperSimpleApp Error: at org.traccar.database.QueryBuilder.<init>(QueryBuilder.java:49)
jvm 1 | WrapperSimpleApp Error: at org.traccar.database.QueryBuilder.create(QueryBuilder.java:119)
jvm 1 | WrapperSimpleApp Error: at org.traccar.database.DataManager.getLatestPositions(DataManager.java:318)
jvm 1 | WrapperSimpleApp Error: at org.traccar.database.DataCache.<init>(DataCache.java:38)
jvm 1 | WrapperSimpleApp Error: at org.traccar.Context.init(Context.java:93)
jvm 1 | WrapperSimpleApp Error: at org.traccar.Main.main(Main.java:26)
jvm 1 | WrapperSimpleApp Error: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jvm 1 | WrapperSimpleApp Error: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
jvm 1 | WrapperSimpleApp Error: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
jvm 1 | WrapperSimpleApp Error: at java.lang.reflect.Method.invoke(Method.java:606)
jvm 1 | WrapperSimpleApp Error: at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:325)
jvm 1 | WrapperSimpleApp Error: at java.lang.Thread.run(Thread.java:745)
wrapper | <-- Wrapper Stopped
root@GE:/opt/traccar#

Can anyone try to help me?
Im looking to compile last version to play with JSON to integrate to our software.

REGARDS, and sorry for my english.

Anton Tananaev9 years ago

There were a lot of changes to the config file since last release. Here is the latest version of the config:
https://github.com/tananaev/traccar/blob/master/debug.xml

florin9 years ago

Hello guys. I compiled the traccar server, modified the config file, but now when i access http://localhost:8082 i get a not found message (Jetty://). The wrapper log shows this:

STATUS | wrapper  | 2015/06/22 08:35:34 | Launching a JVM...
INFO   | jvm 1    | 2015/06/22 08:35:35 | WrapperManager: Initializing...
INFO   | jvm 1    | 2015/06/22 08:35:36 | 2015-06-22 08:35:36.292:INFO:oejs.Server:jetty-8.1.16.v20140903
INFO   | jvm 1    | 2015/06/22 08:35:36 | 2015-06-22 08:35:36.313:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8082
INFO   | jvm 1    | 2015/06/22 08:36:19 | 2015-06-22 08:36:19.585:INFO:oejsh.ContextHandler:stopped o.e.j.s.h.ContextHandler{/m,null}
INFO   | jvm 1    | 2015/06/22 08:36:19 | 2015-06-22 08:36:19.586:INFO:oejsh.ContextHandler:stopped o.e.j.s.ServletContextHandler{/api,null}
STATUS | wrapper  | 2015/06/22 08:36:20 | <-- Wrapper Stopped
Anton Tananaev9 years ago

It looks like there is still something wrong with your config.