OneBusAway/onebusaway-vdv-modules

Error After compiling

sebastiano242196 opened this issue · 1 comments

After compiling the program and run it from command line, with the following command

java -jar onebusaway-vdv452-to-gtfs-converter-cli/target/onebusaway-vdv452-to-gtfs-converter-cli.jar /path/to/vdv.zip /destination/

the program throws the following exception:

2014-08-21 15:13:16,720 INFO [Vdv452Reader.java:100] : reading entities: org.onebusaway.vdv452.model.BaseVersion
org.onebusaway.csv_entities.exceptions.MissingRequiredEntityException: missing required entity: type=org.onebusaway.vdv452.model.BaseVersion filename=MENGE_BASIS_VERSIONEN.x10
at org.onebusaway.csv_entities.CsvEntityReader.openInputStreamForEntityClass(CsvEntityReader.java:197)
at org.onebusaway.csv_entities.CsvEntityReader.readEntities(CsvEntityReader.java:113)
at org.onebusaway.vdv452.Vdv452Reader.run(Vdv452Reader.java:101)
at org.onebusaway.vdv452.Vdv452Reader.run(Vdv452Reader.java:94)
at org.onebusaway.vdv452.Vdv452ToGtfsConverter.run(Vdv452ToGtfsConverter.java:43)
at org.onebusaway.vdv452.Vdv452ToGtfsConverterMain.runApplication(Vdv452ToGtfsConverterMain.java:83)
at org.onebusaway.vdv452.Vdv452ToGtfsConverterMain.run(Vdv452ToGtfsConverterMain.java:50)
at org.onebusaway.vdv452.Vdv452ToGtfsConverterMain.main(Vdv452ToGtfsConverterMain.java:39)

Is it a problem in the code or of the zip provided?

After off-line discussion, I think we can close this issue. There were a number of things going on:

  1. Files were not in the root of the zip file, but instead in a sub-folder. Parser does not support this.
  2. Files had extension .X10, not .x10. The spec seems to mention only the lower-case .x10 version, so I'm not sure who is right here, but we only support .x10 for now.
  3. Parser had some bugs around double-quoting in the parser. Fixed
  4. General support for VDV-452 has been beefed up, since I had another feed to play and test with ;)