traccar 3.3 error

cristianormoraes8 years ago
STATUS | wrapper  | 2015/12/23 11:04:42 | --> Wrapper Started as Daemon
STATUS | wrapper  | 2015/12/23 11:04:42 | Java Service Wrapper Community Edition 64-bit 3.5.27
STATUS | wrapper  | 2015/12/23 11:04:42 |   Copyright (C) 1999-2015 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper  | 2015/12/23 11:04:42 |     http://wrapper.tanukisoftware.com
STATUS | wrapper  | 2015/12/23 11:04:42 |
STATUS | wrapper  | 2015/12/23 11:04:42 | Launching a JVM...
INFO   | jvm 1    | 2015/12/23 11:04:42 | WrapperManager: Initializing...
INFO   | jvm 1    | 2015/12/23 11:04:43 | [MLog-Init-Reporter] INFO com.mchange.v2.log.MLog - MLog clients using slf4j logging.
INFO   | jvm 1    | 2015/12/23 11:04:44 | [WrapperSimpleAppMain] INFO com.mchange.v2.c3p0.C3P0Registry - Initializing c3p0-0.9.5.2 [built 08-December-2015 22:06:04 -0800; debug? true; trace: 10]
INFO   | jvm 1    | 2015/12/23 11:04:46 | INFO 12/23/15 11:04 AM: liquibase: Successfully acquired change log lock
INFO   | jvm 1    | 2015/12/23 11:04:49 | INFO 12/23/15 11:04 AM: liquibase: Reading from traccar.DATABASECHANGELOG
INFO   | jvm 1    | 2015/12/23 11:04:49 | INFO 12/23/15 11:04 AM: liquibase: Successfully released change log lock
INFO   | jvm 1    | 2015/12/23 11:04:49 | [WrapperSimpleAppMain] INFO com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource - Initializing c3p0 pool... com.mchange.v2.c3p0.ComboPooledDataSource [ a
cquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connect
ionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, dataSourceName -> z8kflt9d1lligmtu0112v|4e92340a,
debugUnreturnedConnectionStackTraces -> false, description -> null, driverClass -> com.mysql.jdbc.Driver, extensions -> {}, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false,
 forceSynchronousCheckins -> false, forceUseNamedDriverClass -> false, identityToken -> z8kflt9d1lligmtu0112v|4e92340a, idleConnectionTestPeriod -> 600, initialPoolSize -> 3, jdbcUrl -> jdbc:mysql:
//127.0.0.1:3306/traccar?allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=ANSI_QUOTES, maxAdministrativeTaskTime -> 0, maxConnectionAge ->
0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 15, maxStatements -> 0, maxStatementsPerConnection -> 0, minPoolSize -> 3, numHelperThreads -> 3, preferredTestQuery -> null,
privilegeSpawnedThreads -> false, properties -> {user=******, password=******}, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> true, testConnectionOnChec
kout -> false, unreturnedConnectionTimeout -> 0, userOverrides -> {}, usesTraditionalReflectiveProxies -> false ]
INFO   | jvm 1    | 2015/12/23 11:04:49 | [WrapperSimpleAppMain] INFO org.eclipse.jetty.util.log - Logging initialized @6950ms
INFO   | jvm 1    | 2015/12/23 11:04:50 | [WrapperSimpleAppMain] INFO org.eclipse.jetty.server.Server - jetty-9.2.14.v20151106
INFO   | jvm 1    | 2015/12/23 11:04:52 | [WrapperSimpleAppMain] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@43b65931{/api,null,AVAILABLE}
INFO   | jvm 1    | 2015/12/23 11:04:52 | [WrapperSimpleAppMain] WARN org.eclipse.jetty.server.handler.AbstractHandler - No Server set for org.traccar.web.WebServer$1@2f705298
INFO   | jvm 1    | 2015/12/23 11:04:52 | [WrapperSimpleAppMain] INFO org.eclipse.jetty.server.ServerConnector - Started ServerConnector@59cbf891{HTTP/1.1}{0.0.0.0:8082}
INFO   | jvm 1    | 2015/12/23 11:04:52 | [WrapperSimpleAppMain] INFO org.eclipse.jetty.server.Server - Started @9763ms
Anton Tananaev8 years ago

I don't see any errors.

cristianormoraes8 years ago

really sorry, was a mistake.

by the way, I have some problem with the web api, I put the traccer in port 80

at http://159.203.123.120

I'm trying to PUT at http://159.203.123.120/api/login

but the response is "not found"

Anton Tananaev8 years ago

The API has changed.

cristianormoraes8 years ago

Have some info about?

Anton Tananaev8 years ago

I am working on the documentation. For now you can look at the JavaScript source code to see how it works.

cristianormoraes8 years ago

checked the javascript, very easy, works fine, thank you

romansson8 years ago

Hello. Can you write some examples of new api requests? For example get list of devices, asyng, archive...

Anton Tananaev8 years ago

As I said, I'm working on the documentation. You can get examples with the default web interface if you need them now.

cristianormoraes8 years ago

I'm trying to post to api/commands

Parameters
deviceId: 1
type: engineStop

get this error:
{
"details": "NullPointerException (CommandResource:36 < ...)",
"message": null
}

Anton Tananaev8 years ago

What do you send as POST body? You are expected to send command in JSON format.

cristianormoraes8 years ago

Yes , sent application/json

just sent the parameters deviceId and type

I'm using firefox httprequester extension to send post

Anton Tananaev8 years ago

The error message indicates that you haven't provided the JSON command entity.

cristianormoraes8 years ago

what is the properties of command entity I need to send to method?

Anton Tananaev8 years ago

Command has following properties: deviceId, type and attributes.