Cannot set up server following the doc.

429 views
Skip to first unread message

Yuru Liu

unread,
Mar 12, 2018, 9:27:26 PM3/12/18
to OpenTripPlanner Users
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.
         2. Download the GTFS data using this command(as said in the doc): wget "http://developer.trimet.org/schedule/gtfs.zip" -O trimet.gtfs.zip
         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

FrankP

unread,
Mar 14, 2018, 12:25:30 PM3/14/18
to OpenTripPlanner Users
Hi Yuru,

Looks like there is a Java 9 / GeoTools dependency issue (amongst other version bump issues needed to move to java 9). I've got a TODO to research (https://github.com/opentripplanner/OpenTripPlanner/issues/2538) getting OTP java 9 ready. But it looks like we might ultimately have to wait on GeoTools.

BTW, java version "1.8.0_25" on High Sierra works for me.

Take care,
Frank

Andrew Byrd

unread,
Mar 15, 2018, 2:47:42 AM3/15/18
to FrankP, OpenTripPlanner Users
Oh right, there’s a known incompatibility with Java 9.

Another issue with Geotools: it depends on JTS, which has recently been adopted by Locationtech (apparently with support of the original creator of JTS) so all package and artifact names are now org.locationtech.jts. We are updating some of OTP’s dependencies to use the new JTS, but can’t really migrate OTP over until Geotools also shifts to the new JTS.

Andrew

--
You received this message because you are subscribed to the Google Groups "OpenTripPlanner Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages