Created
May 4, 2012 23:46
-
-
Save mattwigway/2598470 to your computer and use it in GitHub Desktop.
exception building graph
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xmlns:context="http://www.springframework.org/schema/context" | |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd | |
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd"> | |
<bean id="gtfsBuilder" class="org.opentripplanner.graph_builder.impl.GtfsGraphBuilderImpl"> | |
<property name="gtfsBundles"> | |
<bean id="gtfsBundles" class="org.opentripplanner.graph_builder.model.GtfsBundles"> | |
<property name="bundles"> | |
<list> | |
<!-- SF Muni --> | |
<bean class="org.opentripplanner.graph_builder.model.GtfsBundle"> | |
<property name="url" value="http://www.vta.org/dev/data/google_transit.zip" /> | |
<property name="defaultAgencyId" value="VTA" /> | |
<!-- By default, bikes may only be taken along on transit trips if the GTFS data allows them to be. | |
If the GTFS data doesn't contain appropriate data, but the actual transit trips do allows bikes | |
to be taken along, a defaultBikesAllowed property may be specified to allow bikes. | |
--> | |
<property name="defaultBikesAllowed" value="true" /> | |
</bean> | |
<!-- | |
<bean class="org.opentripplanner.graph_builder.model.GtfsBundle"> | |
<property name="url" value="http://www.actransit.org/wp-content/plugins/download-monitor/download.php?id=5" /> | |
<property name="defaultAgencyId" value="ACTransit" /> | |
<property name="defaultBikesAllowed" value="true" /> | |
</bean> | |
--> | |
<!-- Explicitly leaving out SamTrans, GG. AC Transit might be useful. --> | |
</list> | |
</property> | |
</bean> | |
</property> | |
</bean> | |
<bean id="nedBuilder" class="org.opentripplanner.graph_builder.impl.ned.NEDGraphBuilderImpl"> | |
<property name="gridCoverageFactory"> | |
<bean class="org.opentripplanner.graph_builder.impl.ned.NEDGridCoverageFactoryImpl"> | |
<property name="cacheDirectory" value="/otp/cache/ned" /> | |
</bean> | |
</property> | |
</bean> | |
<bean id="osmBuilder" class="org.opentripplanner.graph_builder.impl.osm.OpenStreetMapGraphBuilderImpl"> | |
<!-- Use an OSM provider that reads street data from an .osm file --> | |
<property name="provider"> | |
<bean class="org.opentripplanner.openstreetmap.impl.AnyFileBasedOpenStreetMapProviderImpl"> | |
<property name="path" value="/otp/osm/southbay.osm.pbf" /> | |
</bean> | |
</property> | |
<!-- NOTE: the tutorial uses a single OSM document for the streets of Portland, Oregon. | |
To use OSM streets data for a GTFS feed that's outside of the Portland area, uncomment the following | |
section below (and comment the provider section above that uses the file /otp/cache/osm/or-wa.osm). | |
--> | |
<!-- Use an OSM provider that will download OSM data based on the stops locations (extent of agency) in the GTFS data --> | |
<!-- | |
<property name="provider"> | |
<bean class="org.opentripplanner.graph_builder.impl.osm.RegionBasedOpenStreetMapProviderImpl"> | |
<property name="downloader"> | |
<bean class="org.opentripplanner.graph_builder.impl.osm.OSMDownloader"> | |
<property name="apiBaseUrl" value="http://developer.mapquest.com/web/products/open/xapi/" /> | |
</bean> | |
</property> | |
<property name="regionsSource"> | |
<bean class="org.opentripplanner.graph_builder.impl.TransitStopsRegionsSourceImpl" /> | |
</property> | |
<property name="cacheDirectory" value="/otp/cache/osm" /> | |
</bean> | |
</property> | |
--> | |
<!-- Street Traversal Permisssion and Biking weighting is configurable, but we'll use the defaults for OSM... | |
Street Traversal Permisssion: what modes are allowed on certain road/surface types (e.g., no cars on bike lanes, etc...) | |
Bike weighting: the planner is using a 'shortest path' algorithm to choose one route from another. To prefer certain paths | |
for biking (e.g., bike lanes), we can make the theoretical lenght of a street type shorter or longer, thus | |
more or less attractive to the routing engine. Weights of > 1.0 make a road type shorter (more attactive) | |
@see http://wiki.openstreetmap.org/wiki/OSM_tags_for_routing/Access-Restrictions | |
@see https://github.com/openplans/OpenTripPlanner/blob/master/opentripplanner-graph-builder/src/main/java/org/opentripplanner/graph_builder/impl/osm/DefaultWayPropertySetSource.java | |
--> | |
<property name="defaultWayPropertySetSource"> | |
<bean class="org.opentripplanner.graph_builder.impl.osm.DefaultWayPropertySetSource" /> | |
</property> | |
</bean> | |
<bean id="transitStreetLink" class="org.opentripplanner.graph_builder.impl.TransitToStreetNetworkGraphBuilderImpl" /> | |
<bean id="optimizeTransit" class="org.opentripplanner.graph_builder.impl.OptimizeTransitGraphBuilderImpl" /> | |
<bean id="graphBuilderTask" class="org.opentripplanner.graph_builder.GraphBuilderTask"> | |
<!-- contraction hierarchies --> | |
<!-- commented out | |
<property name="modes"> | |
<list> | |
<bean class="org.opentripplanner.routing.core.TraverseOptions"> | |
<property name="mode" value="BICYCLE" /> | |
<property name="optimize" value="QUICK" /> | |
</bean> | |
<bean class="org.opentripplanner.routing.core.TraverseOptions"> | |
<property name="mode" value="BICYCLE" /> | |
<property name="optimize" value="SAFE" /> | |
</bean> | |
<bean class="org.opentripplanner.routing.core.TraverseOptions"> | |
<property name="mode" value="WALK" /> | |
<property name="optimize" value="QUICK" /> | |
</bean> | |
</list> | |
</property> | |
<property name="contractionFactor" value="0.992" /> | |
--> | |
<!-- typical config --> | |
<property name="path" value="/var/otp/graphs/vta" /> | |
<property name="graphBuilders"> | |
<list> | |
<ref bean="gtfsBuilder" /> | |
<ref bean="osmBuilder" /> | |
<ref bean="transitStreetLink" /> | |
<!-- <ref bean="nedBuilder" /> --> | |
<ref bean="optimizeTransit" /> | |
</list> | |
</property> | |
</bean> | |
</beans> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[matthewc@yardang OpenTripPlanner]$ java -Xmx1754m -jar opentripplanner-graph-builder/target/graph-builder.jar /var/otp/graphs/config/vta.xml | |
2012-05-04 16:45:20,944 INFO [XmlBeanDefinitionReader.java:315] : Loading XML bean definitions from class path resource [org/opentripplanner/graph_builder/application-context.xml] | |
2012-05-04 16:45:22,563 INFO [XmlBeanDefinitionReader.java:315] : Loading XML bean definitions from file [/var/otp/graphs/config/vta.xml] | |
2012-05-04 16:45:23,008 INFO [DefaultListableBeanFactory.java:618] : Overriding bean definition for bean 'graphBuilderTask': replacing [Generic bean: class [org.opentripplanner.graph_builder.GraphBuilderTask]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [org/opentripplanner/graph_builder/application-context.xml]] with [Generic bean: class [org.opentripplanner.graph_builder.GraphBuilderTask]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in file [/var/otp/graphs/config/vta.xml]] | |
2012-05-04 16:45:23,016 INFO [AbstractApplicationContext.java:456] : Refreshing org.springframework.context.support.GenericApplicationContext@3daa57fb: startup date [Fri May 04 16:45:23 PDT 2012]; root of context hierarchy | |
2012-05-04 16:45:23,349 WARN [CustomEditorConfigurer.java:187] : Passing PropertyEditor instances into CustomEditorConfigurer is deprecated: use PropertyEditorRegistrars or PropertyEditor class names instead. Offending key [org.opentripplanner.common.model.P2; offending editor instance: org.opentripplanner.graph_builder.impl.osm.SafetyFeaturesEditor@7c0b6548 | |
2012-05-04 16:45:23,359 WARN [CustomEditorConfigurer.java:187] : Passing PropertyEditor instances into CustomEditorConfigurer is deprecated: use PropertyEditorRegistrars or PropertyEditor class names instead. Offending key [org.opentripplanner.graph_builder.impl.osm.CreativeNamer; offending editor instance: org.opentripplanner.graph_builder.impl.osm.CreativeNamerEditor@76a9b9c | |
2012-05-04 16:45:23,362 WARN [CustomEditorConfigurer.java:187] : Passing PropertyEditor instances into CustomEditorConfigurer is deprecated: use PropertyEditorRegistrars or PropertyEditor class names instead. Offending key [org.opentripplanner.graph_builder.impl.osm.NoteProperties; offending editor instance: org.opentripplanner.graph_builder.impl.osm.NotePropertiesEditor@2c09505f | |
2012-05-04 16:45:23,458 INFO [DefaultListableBeanFactory.java:555] : Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@63deeb40: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,graphService,graphBuilderTask,org.springframework.beans.factory.config.CustomEditorConfigurer#0,gtfsBuilder,nedBuilder,osmBuilder,transitStreetLink,optimizeTransit]; root of factory hierarchy | |
2012-05-04 16:45:23,579 INFO [MavenVersion.java:31] : Parsed Maven artifact version: 0.8.0-SNAPSHOT => MavenVersion(0, 8, 0, SNAPSHOT, 193ad1e89b8cafb03c2e9f02f990b55ad4119d96) UID=-8000 | |
Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException | |
at org.opentripplanner.graph_builder.model.GtfsBundle.checkInputs(GtfsBundle.java:177) | |
at org.opentripplanner.graph_builder.impl.GtfsGraphBuilderImpl.checkInputs(GtfsGraphBuilderImpl.java:342) | |
at org.opentripplanner.graph_builder.GraphBuilderTask.run(GraphBuilderTask.java:130) | |
at org.opentripplanner.graph_builder.GraphBuilderMain.main(GraphBuilderMain.java:49) | |
Caused by: java.io.FileNotFoundException | |
at org.opentripplanner.util.HttpUtils.testUrl(HttpUtils.java:36) | |
at org.opentripplanner.graph_builder.model.GtfsBundle.checkInputs(GtfsBundle.java:173) | |
... 3 more | |
2012-05-04 16:45:25,149 INFO [AbstractApplicationContext.java:1002] : Closing org.springframework.context.support.GenericApplicationContext@3daa57fb: startup date [Fri May 04 16:45:23 PDT 2012]; root of context hierarchy | |
2012-05-04 16:45:25,150 INFO [DefaultSingletonBeanRegistry.java:422] : Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@63deeb40: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,graphService,graphBuilderTask,org.springframework.beans.factory.config.CustomEditorConfigurer#0,gtfsBuilder,nedBuilder,osmBuilder,transitStreetLink,optimizeTransit]; root of factory hierarchy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment