openplans/OpenTripPlanner — Issue #595: graph-builder problem with agency data
Author: dannymccaslin
Created: 2012-02-02 17:46:02+00:00
State: open

Hi. I am having difficulty with the "Five Minute Deep-Dive." I was able to get Portland's data to work, but I am not able to get my own agency data to work. I made the changed to graph-builder.xml and tried bin\build-graph.bat, but I get exceptions. I'm not sure where the problem is coming from, but I thought I would share my the text from my cmd session here to see if I could get some guidance. This is using Java 1.7, and this is a 64-bit Windows 7 machine.

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\Information Referral>cd \otp

C:\otp>bin\build-graph.bat

C:\otp>java -Xmx1348m -jar lib/graph-builder.jar graph-builder.xml
2012-02-02 12:32:08,803 INFO [XmlBeanDefinitionReader.java:315] : Loading XML b
ean definitions from class path resource [org/opentripplanner/graph_builder/appl
ication-context.xml]
2012-02-02 12:32:10,188 INFO [XmlBeanDefinitionReader.java:315] : Loading XML b
ean definitions from file [C:\otp\graph-builder.xml]
2012-02-02 12:32:10,737 INFO [DefaultListableBeanFactory.java:618] : Overriding
bean definition for bean 'graphBuilderTask': replacing [Generic bean: class [or
g.opentripplanner.graph_builder.GraphBuilderTask]; scope=; abstract=false; lazyI
nit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=fa
lse; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyM
ethodName=null; defined in class path resource [org/opentripplanner/graph_builde
r/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=nu
ll; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined
in file [C:\otp\graph-builder.xml]]
2012-02-02 12:32:10,745 INFO [AbstractApplicationContext.java:456] : Refreshing
org.springframework.context.support.GenericApplicationContext@6cd0a64a: startup
date [Thu Feb 02 12:32:10 EST 2012]; root of context hierarchy
2012-02-02 12:32:10,857 WARN [CustomEditorConfigurer.java:187] : Passing Proper
tyEditor instances into CustomEditorConfigurer is deprecated: use PropertyEditor
Registrars or PropertyEditor class names instead. Offending key [org.opentrippla
nner.common.model.P2; offending editor instance: org.opentripplanner.graph_build
er.impl.osm.SafetyFeaturesEditor@469d4b24
2012-02-02 12:32:10,859 WARN [CustomEditorConfigurer.java:187] : Passing Proper
tyEditor instances into CustomEditorConfigurer is deprecated: use PropertyEditor
Registrars or PropertyEditor class names instead. Offending key [org.opentrippla
nner.graph_builder.impl.osm.CreativeNamer; offending editor instance: org.opentr
ipplanner.graph_builder.impl.osm.CreativeNamerEditor@18814af5
2012-02-02 12:32:10,860 WARN [CustomEditorConfigurer.java:187] : Passing Proper
tyEditor instances into CustomEditorConfigurer is deprecated: use PropertyEditor
Registrars or PropertyEditor class names instead. Offending key [org.opentrippla
nner.graph_builder.impl.osm.NoteProperties; offending editor instance: org.opent
ripplanner.graph_builder.impl.osm.NotePropertiesEditor@2bce05fc
2012-02-02 12:32:10,874 INFO [DefaultListableBeanFactory.java:555] : Pre-instan
tiating singletons in org.springframework.beans.factory.support.DefaultListableB
eanFactory@648a83fd: defining beans [org.springframework.context.annotation.inte
rnalConfigurationAnnotationProcessor,org.springframework.context.annotation.inte
rnalAutowiredAnnotationProcessor,org.springframework.context.annotation.internal
RequiredAnnotationProcessor,org.springframework.context.annotation.internalCommo
nAnnotationProcessor,graphService,graphBuilderTask,org.springframework.beans.fac
tory.config.CustomEditorConfigurer#0,graphBundle,gtfsBuilder,nedBuilder,osmBuild
er,transitStreetLink,optimizeTransit]; root of factory hierarchy
2012-02-02 12:32:11,017 INFO [GtfsGraphBuilderImpl.java:189] : reading entities
: org.onebusaway.gtfs.model.Agency
2012-02-02 12:32:11,049 INFO [DownloadableGtfsInputSource.java:92] : using alre
ady downloaded gtfs file: path=C:\Users\INFORM~1\AppData\Local\Temp\www.pantran.
com_GoogleTransit_gtfs.zip_gtfs.zip
2012-02-02 12:32:11,070 INFO [GtfsGraphBuilderImpl.java:189] : reading entities
: org.onebusaway.gtfs.model.ShapePoint
2012-02-02 12:32:11,189 INFO [GtfsGraphBuilderImpl.java:189] : reading entities
: org.onebusaway.gtfs.model.Route
2012-02-02 12:32:11,198 WARN [IndividualCsvEntityReader.java:110] : expected an
d actual number of csv fields differ: type=org.onebusaway.gtfs.model.Route line
# 5 expected=7 actual=8
Exception in thread "main" org.onebusaway.csv_entities.exceptions.CsvEntityIOExc
eption: io error: entityType=org.onebusaway.gtfs.model.Route path=java.io.InputS
treamReader@56bb8e5f lineNumber=5
at org.onebusaway.csv_entities.CsvEntityReader.readEntities(CsvEntityRea
der.java:148)
at org.onebusaway.csv_entities.CsvEntityReader.readEntities(CsvEntityRea
der.java:107)
at org.onebusaway.csv_entities.CsvEntityReader.readEntities(CsvEntityRea
der.java:102)
at org.onebusaway.csv_entities.CsvEntityReader.readEntities(CsvEntityRea
der.java:95)
at org.opentripplanner.graph_builder.impl.GtfsGraphBuilderImpl.readGtfs(
GtfsGraphBuilderImpl.java:202)
at org.opentripplanner.graph_builder.impl.GtfsGraphBuilderImpl.buildGrap
h(GtfsGraphBuilderImpl.java:101)
at org.opentripplanner.graph_builder.GraphBuilderTask.run(GraphBuilderTa
sk.java:97)
at org.opentripplanner.graph_builder.GraphBuilderMain.main(GraphBuilderM
ain.java:49)
Caused by: java.lang.IndexOutOfBoundsException: Index: 7, Size: 7
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.onebusaway.csv_entities.IndividualCsvEntityReader.readEntity(Indi
vidualCsvEntityReader.java:123)
at org.onebusaway.csv_entities.IndividualCsvEntityReader.handleLine(Indi
vidualCsvEntityReader.java:96)
at org.onebusaway.csv_entities.CsvEntityReader.readEntities(CsvEntityRea
der.java:144)
... 7 more
2012-02-02 12:32:11,219 INFO [AbstractApplicationContext.java:1002] : Closing o
rg.springframework.context.support.GenericApplicationContext@6cd0a64a: startup d
ate [Thu Feb 02 12:32:10 EST 2012]; root of context hierarchy
2012-02-02 12:32:11,221 INFO [DefaultSingletonBeanRegistry.java:422] : Destroyi
ng singletons in org.springframework.beans.factory.support.DefaultListableBeanFa
ctory@648a83fd: defining beans [org.springframework.context.annotation.internalC
onfigurationAnnotationProcessor,org.springframework.context.annotation.internalA
utowiredAnnotationProcessor,org.springframework.context.annotation.internalRequi
redAnnotationProcessor,org.springframework.context.annotation.internalCommonAnno
tationProcessor,graphService,graphBuilderTask,org.springframework.beans.factory.
config.CustomEditorConfigurer#0,graphBundle,gtfsBuilder,nedBuilder,osmBuilder,tr
ansitStreetLink,optimizeTransit]; root of factory hierarchy

C:\otp>echo
ECHO is on.

C:\otp>echo "IMPORTANT: if you see errors, make sure you're using java 6.0 or gr
eater ... type: java -version "
"IMPORTANT: if you see errors, make sure you're using java 6.0 or greater ... ty
pe: java -version "

C:\otp>echo
ECHO is on.
C:\otp>java -version
java version "1.7.0_02"
Java(TM) SE Runtime Environment (build 1.7.0_02-b13)
Java HotSpot(TM) 64-Bit Server VM (build 22.0-b10, mixed mode)

C:\otp>