opentraffic / traffic-engine-app Goto Github PK
View Code? Open in Web Editor NEWOTv1: Web application for processing and visualizing traffic statistics.
License: GNU General Public License v3.0
OTv1: Web application for processing and visualizing traffic statistics.
License: GNU General Public License v3.0
How can I log in? The http://ec2-54-165-240-44.compute-1.amazonaws.com/ is asking for username and password. how can i access that.
Cold install errors with:
The POM for com.conveyal:traffic-engine:jar:0.3 is missing, no dependency information available
I followed the instructions in the README file, still the code does not run:
ava -jar traffic-engine-app.jar
[main] INFO org.hibernate.annotations.common.Version - HCANN000001: Hibernate Commons Annotations {4.0.4.Final}
[main] INFO org.hibernate.Version - HHH000412: Hibernate Core {4.3.4.Final}
[main] INFO org.hibernate.cfg.Environment - HHH000206: hibernate.properties not found
[main] INFO org.hibernate.cfg.Environment - HHH000021: Bytecode provider name : javassist
[main] INFO org.hibernate.cfg.Configuration - HHH000043: Configuring from resource: /hibernate.cfg.xml
[main] INFO org.hibernate.cfg.Configuration - HHH000040: Configuration resource: /hibernate.cfg.xml
[main] WARN org.hibernate.internal.util.xml.DTDEntityResolver - HHH000223: Recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
[main] INFO org.hibernate.cfg.Configuration - HHH000041: Configured SessionFactory: null
[main] INFO org.hibernate.engine.jdbc.connections.internal.ConnectionProviderInitiator - HHH000130: Instantiating explicit connection provider: org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider
[main] INFO org.hibernate.c3p0.internal.C3P0ConnectionProvider - HHH010002: C3P0 using driver: org.postgresql.Driver at URL: jdbc:postgresql://ec2-52-90-88-198.compute-1.amazonaws.com/opentraffic
[main] INFO org.hibernate.c3p0.internal.C3P0ConnectionProvider - HHH000046: Connection properties: {user=postgres, password=_}
[main] INFO org.hibernate.c3p0.internal.C3P0ConnectionProvider - HHH000006: Autocommit mode: false
Oct 18, 2016 6:59:13 PM com.mchange.v2.log.MLog
INFO: MLog clients using java 1.4+ standard logging.
Oct 18, 2016 6:59:13 PM com.mchange.v2.c3p0.C3P0Registry banner
INFO: Initializing c3p0-0.9.2.1 [built 20-March-2013 10:47:27 +0000; debug? true; trace: 10]
Oct 18, 2016 6:59:13 PM com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource getPoolManager
INFO: Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@65d3e97e [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@1341b0ed [ acquireIncrement -> 3, acquireRetryAttempts -> 30, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 0, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, debugUnreturnedConnectionStackTraces -> false, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, identityToken -> z8kflt9j1ohqq5hcznx7f|74e52303, idleConnectionTestPeriod -> 1000, initialPoolSize -> 7, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 100, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 53, maxStatements -> 50, maxStatementsPerConnection -> 0, minPoolSize -> 7, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@83aeff4e [ description -> null, driverClass -> null, factoryClassLocation -> null, identityToken -> z8kflt9j1ohqq5hcznx7f|72a7c7e0, jdbcUrl -> jdbc:postgresql://ec2-52-90-88-198.compute-1.amazonaws.com/opentraffic, properties -> {user=__, password=_**} ], preferredTestQuery -> null, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false; userOverrides: {} ], dataSourceName -> null, factoryClassLocation -> null, identityToken -> z8kflt9j1ohqq5hcznx7f|294425a7, numHelperThreads -> 3 ]
Oct 18, 2016 6:59:33 PM com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector run
WARNING: com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@150435b8 -- APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending tasks!
Oct 18, 2016 6:59:33 PM com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector run
WARNING: com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@150435b8 -- APPARENT DEADLOCK!!! Complete Status:
Managed Threads: 3
Active Threads: 3
Active Tasks:
com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@5afec353
on thread: C3P0PooledConnectionPoolManager[identityToken->z8kflt9j1ohqq5hcznx7f|294425a7]-HelperThread-#0
com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@6e638441
on thread: C3P0PooledConnectionPoolManager[identityToken->z8kflt9j1ohqq5hcznx7f|294425a7]-HelperThread-#2
com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@6b6e986c
on thread: C3P0PooledConnectionPoolManager[identityToken->z8kflt9j1ohqq5hcznx7f|294425a7]-HelperThread-#1
Pending Tasks:
com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@161981d7
com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@3ad13c1c
com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@4862f68b
com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@57d0ba13
Pool thread stack traces:
Thread[C3P0PooledConnectionPoolManager[identityToken->z8kflt9j1ohqq5hcznx7f|294425a7]-HelperThread-#0,5,main]
also, what should I put in the osm, cache and tiles folders? inside the osm folder, I put an .osm file, what about the others?
Where's the volume data? I see old versions screenshot has a Data Section and showing the volume data.
Hi, I am trying to build from sources (I am .NET programmer, not much exp. in Java), and the build fail because following imports cannot be resolved
import org.opentripplanner.traffic.Segment;
import org.opentripplanner.traffic.SegmentSpeedSample;
import org.opentripplanner.traffic.StreetSpeedSnapshot;
import org.opentripplanner.traffic.StreetSpeedSnapshotSource;
where can I find org.opentripplanner.traffic? It is not in sources I get from https://github.com/opentripplanner/OpenTripPlanner
Can someone help me about this error?
Oct 13, 2016 5:20:30 PM com.mchange.v2.resourcepool.BasicResourcePool forceKillAcquires
WARNING: Having failed to acquire a resource, com.mchange.v2.resourcepool.BasicResourcePool@65fb9ffc is interrupting all Threads waiting on a resource to check out. Will try again in response to new client requests.
[main] WARN org.hibernate.engine.jdbc.spi.SqlExceptionHelper - SQL Error: 0, SQLState: null
[main] ERROR org.hibernate.engine.jdbc.spi.SqlExceptionHelper - Connections could not be acquired from the underlying database!
Exception in thread "main" java.lang.ExceptionInInitializerError
at io.opentraffic.engine.app.TrafficEngineApp.main(TrafficEngineApp.java:101)
Caused by: org.hibernate.exception.GenericJDBCException: Could not open connection
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:54)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:126)
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:112)
at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:235)
at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:171)
at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.connection(StatementPreparerImpl.java:63)
at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$5.doPrepare(StatementPreparerImpl.java:162)
at org.hibernate.engine.jdbc.internal.StatementPreparerImpl$StatementPreparationTemplate.prepareStatement(StatementPreparerImpl.java:186)
at org.hibernate.engine.jdbc.internal.StatementPreparerImpl.prepareQueryStatement(StatementPreparerImpl.java:160)
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1884)
at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1861)
at org.hibernate.loader.Loader.executeQueryStatement(Loader.java:1838)
at org.hibernate.loader.Loader.doQuery(Loader.java:909)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:354)
at org.hibernate.loader.Loader.doList(Loader.java:2553)
at org.hibernate.loader.Loader.doList(Loader.java:2539)
at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2369)
at org.hibernate.loader.Loader.list(Loader.java:2364)
at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:496)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:387)
at org.hibernate.engine.query.spi.HQLQueryPlan.performList(HQLQueryPlan.java:231)
at org.hibernate.internal.SessionImpl.list(SessionImpl.java:1264)
at org.hibernate.internal.QueryImpl.list(QueryImpl.java:103)
at io.opentraffic.engine.app.util.HibernateUtil.buildSessionFactory(HibernateUtil.java:33)
at io.opentraffic.engine.app.util.HibernateUtil.(HibernateUtil.java:20)
... 1 more
Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database!
at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:118)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:689)
at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:140)
at org.hibernate.c3p0.internal.C3P0ConnectionProvider.getConnection(C3P0ConnectionProvider.java:89)
at org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:380)
at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:228)
... 22 more
Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1418)
at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:606)
at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:526)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutAndMarkConnectionInUse(C3P0PooledConnectionPool.java:755)
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:682)
... 26 more
I remove /vex from application.conf , but then instead of 500 I am getting 502 here
Dec 10, 2015 10:18:31 AM com.conveyal.traffic.osm.OSMDataStore loadOSMTile
INFO: loading osm from: http://osm.conveyal.com/?n=13.068776734357701&s=12.897489183755889&e=77.6953125&w=77.51953125
Received response code 502 from vex server
Dec 10, 2015 10:18:31 AM com.conveyal.traffic.app.engine.EngineWorker run
WARNING: Index: 0, Size: 0
Using the initial release jar along
with the csv-uploader release jar.
When I try to upload data I get, in the csv-uploader terminal, 0 records uploading and in the traffic-engine-app terminal the following:
Received response code 500 from vex server
Sep 09, 2015 5:31:55 PM com.conveyal.traffic.app.engine.EngineWorker run
WARNING: Index: 0, Size: 0
Sep 09, 2015 5:31:55 PM com.conveyal.traffic.osm.OSMDataStore loadOSMTile
INFO: loading osm from: http://osm.conveyal.com/vex/?n=-22.917922936146038&s=-23.079731762449885&e=-43.41796875&w=-43.59375
repeated over and over again with slightly different coordinates. The application.conf
file is the one that's currently present in this repository.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.