Hi all,
I tried to set up the server following the
doc. But I keep receiving the error message below. May I have someone to help me out? Thanks a lot.
What I did:
1. Get the otp jar package from the link in the doc. Definitely the shaded version.
3. Download the pdf data using this link(the link given in the doc expired):
http://download.bbbike.org/osm/bbbike/Portland/Portland.osm.pbf 4. Run this command and then meet the error java -Xmx2G -jar otp-0.19.0-shaded.jar --build /home/username/otp --inMemory
Configuration:
1. OS X High Sierra 10.13.3
2. Java version 9.0.4
Here is the error message:
16:03:43.037 INFO (OTPServer.java:38) Wiring up and configuring server.
16:03:43.041 INFO (GraphBuilder.java:183) Wiring up and configuring graph builder task.
16:03:43.063 INFO (GraphBuilder.java:190) Searching for graph builder input files in /Users/aaron.liu/Workspace/OpenTripPlannerRunnable
16:03:43.063 INFO (OTPMain.java:210) File '/Users/aaron.liu/Workspace/OpenTripPlannerRunnable/build-config.json' is not present. Using default configuration.
16:03:43.068 INFO (OTPMain.java:210) File '/Users/aaron.liu/Workspace/OpenTripPlannerRunnable/router-config.json' is not present. Using default configuration.
16:03:43.071 INFO (GraphBuilder.java:201) Summarizing GraphBuilderParameters
DEFAULT_SUBWAY_ACCESS_TIME = 2.0
htmlAnnotations = false
maxHtmlAnnotationsPerFile = 1000
transit = true
useTransfersTxt = false
parentStopLinking = false
stationTransfers = false
subwayAccessTime = 2.0
streets = true
embedRouterConfig = true
areaVisibility = false
platformEntriesLinking = false
matchBusRoutesToStreets = false
fetchElevationUS = false
elevationBucket = null
fareServiceFactory = DefaultFareServiceFactory
customNamer = null
wayPropertySet = org.opentripplanner.graph_builder.module.osm.DefaultWayPropertySetSource@78ffe6dc
staticBikeRental = false
staticParkAndRide = true
staticBikeParkAndRide = false
maxInterlineDistance = 200
pruningThresholdIslandWithoutStops = 40
pruningThresholdIslandWithStops = 5
banDiscouragedWalking = false
banDiscouragedBiking = false
maxTransferDistance = 2000.0
16:03:43.072 WARN (GraphBuilder.java:221) Skipping unrecognized file '/Users/aaron.liu/Workspace/OpenTripPlannerRunnable/otp-1.2.0-shaded.jar'
16:03:43.072 INFO (GraphBuilder.java:205) Found GTFS file /Users/aaron.liu/Workspace/OpenTripPlannerRunnable/trimet.gtfs.zip
16:03:43.072 INFO (GraphBuilder.java:209) Found OSM file /Users/aaron.liu/Workspace/OpenTripPlannerRunnable/Portland.osm.pbf
16:03:43.096 INFO (OpenStreetMapModule.java:174) Gathering OSM from provider: AnyFileBasedOpenStreetMapProviderImpl(/Users/aaron.liu/Workspace/OpenTripPlannerRunnable/Portland.osm.pbf)
16:03:53.892 ERROR (GeometryUtils.java:43) Unable to create longitude-first WGS84 CRS
java.lang.IllegalArgumentException: org.opengis.referencing.datum.DatumFactory is not an ImageIO SPI class
at java.desktop/javax.imageio.spi.ServiceRegistry.checkClassAllowed(ServiceRegistry.java:745) ~[na:na]
at java.desktop/javax.imageio.spi.ServiceRegistry.<init>(ServiceRegistry.java:140) ~[na:na]
at org.geotools.factory.FactoryRegistry.<init>(FactoryRegistry.java:155) ~[otp-1.2.0-shaded.jar:1.1]
at org.geotools.factory.FactoryRegistry.<init>(FactoryRegistry.java:146) ~[otp-1.2.0-shaded.jar:1.1]
at org.geotools.factory.FactoryCreator.<init>(FactoryCreator.java:82) ~[otp-1.2.0-shaded.jar:1.1]
at org.geotools.referencing.ReferencingFactoryFinder.getServiceRegistry(ReferencingFactoryFinder.java:115) ~[otp-1.2.0-shaded.jar:1.1]
at org.geotools.referencing.ReferencingFactoryFinder.getFactories(ReferencingFactoryFinder.java:180) ~[otp-1.2.0-shaded.jar:1.1]
at org.geotools.referencing.ReferencingFactoryFinder.getCRSAuthorityFactories(ReferencingFactoryFinder.java:455) ~[otp-1.2.0-shaded.jar:1.1]
at org.geotools.referencing.DefaultAuthorityFactory.getBackingFactory(DefaultAuthorityFactory.java:88) ~[otp-1.2.0-shaded.jar:1.1]
at org.geotools.referencing.DefaultAuthorityFactory.<init>(DefaultAuthorityFactory.java:69) ~[otp-1.2.0-shaded.jar:1.1]
at org.geotools.referencing.CRS.getAuthorityFactory(CRS.java:257) ~[otp-1.2.0-shaded.jar:1.1]
at org.opentripplanner.common.geometry.GeometryUtils.<clinit>(GeometryUtils.java:41) ~[otp-1.2.0-shaded.jar:1.1]
at org.opentripplanner.graph_builder.module.osm.Ring.toJtsPolygon(Ring.java:91) [otp-1.2.0-shaded.jar:1.1]
at org.opentripplanner.graph_builder.module.osm.Area.toJTSMultiPolygon(Area.java:97) [otp-1.2.0-shaded.jar:1.1]
at org.opentripplanner.graph_builder.module.osm.Area.<init>(Area.java:90) [otp-1.2.0-shaded.jar:1.1]
at org.opentripplanner.graph_builder.module.osm.OSMDatabase.processMultipolygonRelations(OSMDatabase.java:665) [otp-1.2.0-shaded.jar:1.1]
at org.opentripplanner.graph_builder.module.osm.OSMDatabase.doneThirdPhaseNodes(OSMDatabase.java:306) [otp-1.2.0-shaded.jar:1.1]
at org.opentripplanner.openstreetmap.impl.BinaryFileBasedOpenStreetMapProviderImpl.readOSM(BinaryFileBasedOpenStreetMapProviderImpl.java:56) [otp-1.2.0-shaded.jar:1.1]
at org.opentripplanner.openstreetmap.impl.AnyFileBasedOpenStreetMapProviderImpl.readOSM(AnyFileBasedOpenStreetMapProviderImpl.java:41) [otp-1.2.0-shaded.jar:1.1]
at org.opentripplanner.graph_builder.module.osm.OpenStreetMapModule.buildGraph(OpenStreetMapModule.java:175) [otp-1.2.0-shaded.jar:1.1]
at org.opentripplanner.graph_builder.GraphBuilder.run(GraphBuilder.java:157) [otp-1.2.0-shaded.jar:1.1]
at org.opentripplanner.standalone.OTPMain.run(OTPMain.java:111) [otp-1.2.0-shaded.jar:1.1]
at org.opentripplanner.standalone.OTPMain.main(OTPMain.java:86) [otp-1.2.0-shaded.jar:1.1]
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.opentripplanner.graph_builder.module.osm.Ring.toJtsPolygon(Ring.java:91)
at org.opentripplanner.graph_builder.module.osm.Area.toJTSMultiPolygon(Area.java:97)
at org.opentripplanner.graph_builder.module.osm.Area.<init>(Area.java:90)
at org.opentripplanner.graph_builder.module.osm.OSMDatabase.processMultipolygonRelations(OSMDatabase.java:665)
at org.opentripplanner.graph_builder.module.osm.OSMDatabase.doneThirdPhaseNodes(OSMDatabase.java:306)
at org.opentripplanner.openstreetmap.impl.BinaryFileBasedOpenStreetMapProviderImpl.readOSM(BinaryFileBasedOpenStreetMapProviderImpl.java:56)
at org.opentripplanner.openstreetmap.impl.AnyFileBasedOpenStreetMapProviderImpl.readOSM(AnyFileBasedOpenStreetMapProviderImpl.java:41)
at org.opentripplanner.graph_builder.module.osm.OpenStreetMapModule.buildGraph(OpenStreetMapModule.java:175)
at org.opentripplanner.graph_builder.GraphBuilder.run(GraphBuilder.java:157)
at org.opentripplanner.standalone.OTPMain.run(OTPMain.java:111)
at org.opentripplanner.standalone.OTPMain.main(OTPMain.java:86)
Caused by: java.lang.RuntimeException: Could not create longitude-first WGS84 coordinate reference system.
at org.opentripplanner.common.geometry.GeometryUtils.<clinit>(GeometryUtils.java:44)
... 11 more