Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2.0] remote procedure call error #116

Closed
vkrastanov opened this issue Jan 12, 2013 · 3 comments
Closed

[v2.0] remote procedure call error #116

vkrastanov opened this issue Jan 12, 2013 · 3 comments

Comments

@vkrastanov
Copy link

Hello,
I've just installed the new version, clean install with new DB (mySQL).
However I get an error message: "remote procedure call error" at the web page.

Configuration:
com.mysql.jdbc.Driver
jdbc:mysql://localhost/traccar?allowMultiQueries=true&autoReconnect=true

Note that according to the conf, the DB is traccar, however wrapper.log sais it is 'test'
(The DB is completely empty, no tables created by me nor by traccar server)

Here are the log files:
root@traccar:/traccar# cat /opt/traccar/logs/tracker-server.log
2013-01-12 13:58:48 org.traccar.http.WebServer.initDataSource WARNING: null
2013-01-12 13:58:49 org.traccar.Main.main INFO: starting server...
2013-01-12 19:13:14 org.traccar.GenericPipelineFactory$StandardLoggingHandler.log FINE: [5005 - 79.124.4.75] - (HEX: 24504749442c3335313535343035363034373530302a30300d0a)
2013-01-12 19:13:14 org.traccar.protocol.T55ProtocolDecoder.decode WARNING: Unknown device - 351554056047500
2013-01-12 19:13:30 org.traccar.GenericPipelineFactory$StandardLoggingHandler.log FINE: [5005 - 79.124.4.75] - (HEX: 244750524d432c3139313333312e3030302c412c343233392e323936342c4e2c30323332352e363731342c452c312e32352c3133382e30302c3132303131332c2c2a30300d0a)
2013-01-12 19:13:40 org.traccar.GenericPipelineFactory$StandardLoggingHandler.log FINE: [5005 - 79.124.4.75] - (HEX: 244750524d432c3139313334312e3030302c412c343233392e323935352c4e2c30323332352e363736342c452c302e30302c3134392e30302c3132303131332c2c2a30320d0a)
2013-01-12 19:13:50 org.traccar.GenericPipelineFactory$StandardLoggingHandler.log FINE: [5005 - 79.124.4.75] - (HEX: 244750524d432c3139313335312e3030302c412c343233392e323936392c4e2c30323332352e363737342c452c302e30302c382e30302c3132303131332c2c2a30390d0a)
2013-01-12 19:14:00 org.traccar.GenericPipelineFactory$StandardLoggingHandler.log FINE: [5005 - 79.124.4.75] - (HEX: 244750524d432c3139313430312e3030302c412c343233392e333030372c4e2c30323332352e363734352c452c302e30302c3235312e30302c3132303131332c2c2a30370d0a)
2013-01-12 19:14:11 org.traccar.GenericPipelineFactory$StandardLoggingHandler.log FINE: [5005 - 79.124.4.75] - (HEX: 244750524d432c3139313431322e3030302c412c343233392e333035322c4e2c30323332352e363732332c452c302e35302c3334382e30302c3132303131332c2c2a30390d0a)
2013-01-12 19:14:21 org.traccar.GenericPipelineFactory$StandardLoggingHandler.log FINE: [5005 - 79.124.4.75] - (HEX: 244750524d432c3139313432322e3030302c412c343233392e333034382c4e2c30323332352e363731332c452c302e37352c3235342e30302c3132303131332c2c2a30390d0a)
2013-01-12 19:14:31 org.traccar.GenericPipelineFactory$StandardLoggingHandler.log FINE: [5005 - 79.124.4.75] - (HEX: 244750524d432c3139313433322e3030302c412c343233392e333031392c4e2c30323332352e363731302c452c302e30302c3230332e30302c3132303131332c2c2a30660d0a)
2013-01-12 19:14:41 org.traccar.GenericPipelineFactory$StandardLoggingHandler.log FINE: [5005 - 79.124.4.75] - (HEX: 244750524d432c3139313434322e3030302c412c343233392e333033322c4e2c30323332352e363730372c452c302e30302c3333352e30302c3132303131332c2c2a30330d0a)
2013-01-12 19:14:50 org.traccar.TrackerEventHandler.channelDisconnected INFO: Closing connection by disconnect
root@traccar:
/traccar#

root@traccar:/opt/traccar/logs# cat wrapper.log
STATUS | wrapper | 2013/01/12 13:58:47 | --> Wrapper Started as Daemon
STATUS | wrapper | 2013/01/12 13:58:47 | Java Service Wrapper Community Edition 64-bit 3.5.15
STATUS | wrapper | 2013/01/12 13:58:47 | Copyright (C) 1999-2012 Tanuki Software, Ltd. All Rights Reserved.
STATUS | wrapper | 2013/01/12 13:58:47 | http://wrapper.tanukisoftware.com
STATUS | wrapper | 2013/01/12 13:58:47 |
STATUS | wrapper | 2013/01/12 13:58:47 | Launching a JVM...
INFO | jvm 1 | 2013/01/12 13:58:48 | WrapperManager: Initializing...
INFO | jvm 1 | 2013/01/12 13:58:49 | 2013-01-12 13:58:49.008:INFO:oejs.Server:jetty-8.1.8.v20121106
INFO | jvm 1 | 2013/01/12 13:58:49 | 2013-01-12 13:58:49.075:INFO:oejw.WebInfConfiguration:Extract jar:file:/opt/traccar/traccar-web.war!/ to /tmp/jetty-0.0.0.0-8082-traccar-web.war--any-/webapp
INFO | jvm 1 | 2013/01/12 13:58:51 | 2013-01-12 13:58:51.970:INFO:oejw.StandardDescriptorProcessor:NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
INFO | jvm 1 | 2013/01/12 13:58:52 | Null identity service, trying login service: null
INFO | jvm 1 | 2013/01/12 13:58:52 | Finding identity service: null
INFO | jvm 1 | 2013/01/12 13:58:52 | 2013-01-12 13:58:52.064:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/,file:/tmp/jetty-0.0.0.0-8082-traccar-web.war-
-any-/webapp/},/opt/traccar/traccar-web.war
INFO | jvm 1 | 2013/01/12 13:58:52 | 2013-01-12 13:58:52.064:INFO:oejsh.ContextHandler:started o.e.j.w.WebAppContext{/,file:/tmp/jetty-0.0.0.0-8082-traccar-web.war-_-any-/webapp/},/opt/traccar/traccar-web.war
INFO | jvm 1 | 2013/01/12 13:58:52 | 2013-01-12 13:58:52.191:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8082
INFO | jvm 1 | 2013/01/12 14:12:25 | Jan 12, 2013 2:12:25 PM org.hibernate.annotations.common.Version
INFO | jvm 1 | 2013/01/12 14:12:25 | INFO: HCANN000001: Hibernate Commons Annotations {4.0.1.Final}
INFO | jvm 1 | 2013/01/12 14:12:25 | Jan 12, 2013 2:12:25 PM org.hibernate.Version logVersion
INFO | jvm 1 | 2013/01/12 14:12:25 | INFO: HHH000412: Hibernate Core {4.1.9.Final}
INFO | jvm 1 | 2013/01/12 14:12:25 | Jan 12, 2013 2:12:25 PM org.hibernate.cfg.Environment
INFO | jvm 1 | 2013/01/12 14:12:25 | INFO: HHH000206: hibernate.properties not found
INFO | jvm 1 | 2013/01/12 14:12:25 | Jan 12, 2013 2:12:25 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO | jvm 1 | 2013/01/12 14:12:25 | INFO: HHH000021: Bytecode provider name : javassist
INFO | jvm 1 | 2013/01/12 14:12:27 | Jan 12, 2013 2:12:27 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO | jvm 1 | 2013/01/12 14:12:27 | INFO: HHH000402: Using Hibernate built-in connection pool (not for production use!)
INFO | jvm 1 | 2013/01/12 14:12:27 | Jan 12, 2013 2:12:27 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO | jvm 1 | 2013/01/12 14:12:27 | INFO: HHH000115: Hibernate connection pool size: 20
INFO | jvm 1 | 2013/01/12 14:12:27 | Jan 12, 2013 2:12:27 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO | jvm 1 | 2013/01/12 14:12:27 | INFO: HHH000006: Autocommit mode: true
INFO | jvm 1 | 2013/01/12 14:12:27 | Jan 12, 2013 2:12:27 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO | jvm 1 | 2013/01/12 14:12:27 | INFO: HHH000401: using driver [com.mysql.jdbc.Driver] at URL [jdbc:mysql://localhost/test]
INFO | jvm 1 | 2013/01/12 14:12:27 | Jan 12, 2013 2:12:27 PM org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl configure
INFO | jvm 1 | 2013/01/12 14:12:27 | INFO: HHH000046: Connection properties: {user=root, password=****, autocommit=true, release_mode=auto}
INFO | jvm 1 | 2013/01/12 14:12:27 | Jan 12, 2013 2:12:27 PM org.hibernate.engine.jdbc.internal.JdbcServicesImpl configure
INFO | jvm 1 | 2013/01/12 14:12:27 | WARN: HHH000342: Could not obtain connection to query metadata : Unknown database 'test'
INFO | jvm 1 | 2013/01/12 14:12:27 | 2013-01-12 14:12:27.621:WARN:/:unavailable
INFO | jvm 1 | 2013/01/12 14:12:27 | javax.persistence.PersistenceException: [PersistenceUnit: debug] Unable to build EntityManagerFactory
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
INFO | jvm 1 | 2013/01/12 14:12:27 | at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
INFO | jvm 1 | 2013/01/12 14:12:27 | at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.traccar.web.server.model.DataServiceImpl.init(DataServiceImpl.java:62)
INFO | jvm 1 | 2013/01/12 14:12:27 | at javax.servlet.GenericServlet.init(GenericServlet.java:244)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:519)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:402)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:642)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.Server.handle(Server.java:365)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
INFO | jvm 1 | 2013/01/12 14:12:27 | at java.lang.Thread.run(Thread.java:636)
INFO | jvm 1 | 2013/01/12 14:12:27 | Caused by:
INFO | jvm 1 | 2013/01/12 14:12:27 | org.hibernate.HibernateException: Connection cannot be null when 'hibernate.dialect' not set
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:97)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:67)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:170)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:77)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2283)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2279)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1748)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.ejb.EntityManagerFactoryImpl.(EntityManagerFactoryImpl.java:94)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
INFO | jvm 1 | 2013/01/12 14:12:27 | at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
INFO | jvm 1 | 2013/01/12 14:12:27 | at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.traccar.web.server.model.DataServiceImpl.init(DataServiceImpl.java:62)
INFO | jvm 1 | 2013/01/12 14:12:27 | at javax.servlet.GenericServlet.init(GenericServlet.java:244)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:519)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:402)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:642)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.Server.handle(Server.java:365)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
INFO | jvm 1 | 2013/01/12 14:12:27 | at java.lang.Thread.run(Thread.java:636)
INFO | jvm 1 | 2013/01/12 14:12:27 | 2013-01-12 14:12:27.634:WARN:oejs.ServletHandler:/traccar/dataService
INFO | jvm 1 | 2013/01/12 14:12:27 | javax.persistence.PersistenceException: [PersistenceUnit: debug] Unable to build EntityManagerFactory
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:915)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
INFO | jvm 1 | 2013/01/12 14:12:27 | at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
INFO | jvm 1 | 2013/01/12 14:12:27 | at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.traccar.web.server.model.DataServiceImpl.init(DataServiceImpl.java:62)
INFO | jvm 1 | 2013/01/12 14:12:27 | at javax.servlet.GenericServlet.init(GenericServlet.java:244)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:519)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:402)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:642)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.Server.handle(Server.java:365)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
INFO | jvm 1 | 2013/01/12 14:12:27 | at java.lang.Thread.run(Thread.java:636)
INFO | jvm 1 | 2013/01/12 14:12:27 | Caused by:
INFO | jvm 1 | 2013/01/12 14:12:27 | org.hibernate.HibernateException: Connection cannot be null when 'hibernate.dialect' not set
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:97)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.service.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:67)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:170)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.service.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:75)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:159)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:131)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:77)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2283)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2279)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1748)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.ejb.EntityManagerFactoryImpl.(EntityManagerFactoryImpl.java:94)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:905)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:890)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
INFO | jvm 1 | 2013/01/12 14:12:27 | at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
INFO | jvm 1 | 2013/01/12 14:12:27 | at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:47)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.traccar.web.server.model.DataServiceImpl.init(DataServiceImpl.java:62)
INFO | jvm 1 | 2013/01/12 14:12:27 | at javax.servlet.GenericServlet.init(GenericServlet.java:244)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:519)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHolder.getServlet(ServletHolder.java:402)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:642)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:560)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1072)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:382)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1006)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.Server.handle(Server.java:365)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:485)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:937)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:998)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:856)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
INFO | jvm 1 | 2013/01/12 14:12:27 | at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
INFO | jvm 1 | 2013/01/12 14:12:27 | at java.lang.Thread.run(Thread.java:636)
root@traccar:/opt/traccar/logs#
root@traccar:/opt/traccar/logs#

@vkrastanov
Copy link
Author

Creating DB called 'test' using phpmyadmin solved the issue... however it is quite strange that no matter what the conf sais the DB should be always called test.. at least acording to the wrapper.log

Another strange thing... even though the uniqueId is the same as my phone's IMEI (yep, I am using traccar android app), the device is not being recognized:

2013-01-12 23:11:58 org.traccar.GenericPipelineFactory$StandardLoggingHandler.log FINE: [5005 - 79.124.4.75] - (HEX: 24504749442c3335313535343035363034373530302a30300d0a)
2013-01-12 23:11:58 org.traccar.protocol.T55ProtocolDecoder.decode WARNING: Unknown device - 351554056047500
2013-01-12 23:12:16 org.traccar.GenericPipelineFactory$StandardLoggingHandler.log FINE: [5005 - 79.124.4.75] - (HEX: 244750524d432c3233313231372e3030302c412c343233392e333030382c4e2c30323332352e363531392c452c332e31332c3233332e30302c3132303131332c2c2a30650d0a)
2013-01-12 23:12:26 org.traccar.GenericPipelineFactory$StandardLoggingHandler.log FINE: [5005 - 79.124.4.75] - (HEX: 244750524d432c3233313232372e3030302c412c343233392e323934322c4e2c30323332352e363633302c452c302e30302c3230302e30302c3132303131332c2c2a30320d0a)
2013-01-12 23:12:36 org.traccar.GenericPipelineFactory$StandardLoggingHandler.log FINE: [5005 - 79.124.4.75] - (HEX: 244750524d432c3233313233372e3030302c412c343233392e333030372c4e2c30323332352e363636352c452c302e30302c3239362e30302c3132303131332c2c2a30350d0a)
2013-01-12 23:12:46 org.traccar.GenericPipelineFactory$StandardLoggingHandler.log FINE: [5005 - 79.124.4.75] - (HEX: 244750524d432c3233313234372e3030302c412c343233392e333034302c4e2c30323332352e363730302c452c302e30302c372e30302c3132303131332c2c2a30390d0a)

@tananaev
Copy link
Member

You need to add following line to your config:

<entry key="database.dataSource">com.mysql.jdbc.jdbc2.optional.MysqlDataSource</entry>

@vkrastanov
Copy link
Author

Works like a charm!
Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants