Error running OTP on localhost

29 views
Skip to first unread message

bucch...@fbk.eu

unread,
Sep 9, 2021, 9:19:33 AM9/9/21
to OpenTripPlanner Developers
Hi Dears,
I am trying to run OTP locally to my MAC. Opening the http://localhost:8080/ link I see the Map and i can plan for a trip.

While calling the planner clicking on "Plan your trip" I see the following error in the console. What should be the problem?

Thanks a lot
Antonio

15:06:50.731 INFO (GrizzlyServer.java:144) Grizzly server running.

15:07:26.972 ERROR (PlannerError.java:62) exception planning trip: 

java.net.NoRouteToHostException: No route to host (Host unreachable)

at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0_241]

at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[na:1.8.0_241]

at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0_241]

at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0_241]

at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_241]

at java.net.Socket.connect(Socket.java:606) ~[na:1.8.0_241]

at java.net.Socket.connect(Socket.java:555) ~[na:1.8.0_241]

at sun.net.NetworkClient.doConnect(NetworkClient.java:180) ~[na:1.8.0_241]

at sun.net.www.http.HttpClient.openServer(HttpClient.java:463) ~[na:1.8.0_241]

at sun.net.www.http.HttpClient.openServer(HttpClient.java:558) ~[na:1.8.0_241]

at sun.net.www.http.HttpClient.<init>(HttpClient.java:242) ~[na:1.8.0_241]

at sun.net.www.http.HttpClient.New(HttpClient.java:339) ~[na:1.8.0_241]

at sun.net.www.http.HttpClient.New(HttpClient.java:357) ~[na:1.8.0_241]

at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226) ~[na:1.8.0_241]

at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162) ~[na:1.8.0_241]

at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056) ~[na:1.8.0_241]

at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990) ~[na:1.8.0_241]

at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1570) ~[na:1.8.0_241]

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) ~[na:1.8.0_241]

at java.net.URL.openStream(URL.java:1067) ~[na:1.8.0_241]

at org.apache.commons.io.IOUtils.toString(IOUtils.java:659) ~[SmartJP.jar:1.1]

at org.apache.commons.io.IOUtils.toString(IOUtils.java:644) ~[SmartJP.jar:1.1]

at org.opentripplanner.api.common.RoutingResource.takeChangedRoutesFromUrl(RoutingResource.java:662) ~[SmartJP.jar:1.1]

at org.opentripplanner.api.common.RoutingResource.buildRequest(RoutingResource.java:440) ~[SmartJP.jar:1.1]

at org.opentripplanner.api.resource.PlannerResource.plan(PlannerResource.java:82) ~[SmartJP.jar:1.1]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_241]

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_241]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_241]

at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_241]

at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory$1.invoke(ResourceMethodInvocationHandlerFactory.java:81) [SmartJP.jar:1.1]

at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:144) [SmartJP.jar:1.1]

at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:161) [SmartJP.jar:1.1]

at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:205) [SmartJP.jar:1.1]

at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:99) [SmartJP.jar:1.1]

at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:389) [SmartJP.jar:1.1]

at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:347) [SmartJP.jar:1.1]

at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:102) [SmartJP.jar:1.1]

at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:308) [SmartJP.jar:1.1]

at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) [SmartJP.jar:1.1]

at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) [SmartJP.jar:1.1]

at org.glassfish.jersey.internal.Errors.process(Errors.java:315) [SmartJP.jar:1.1]

at org.glassfish.jersey.internal.Errors.process(Errors.java:297) [SmartJP.jar:1.1]

at org.glassfish.jersey.internal.Errors.process(Errors.java:267) [SmartJP.jar:1.1]

at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) [SmartJP.jar:1.1]

at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:291) [SmartJP.jar:1.1]

at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1140) [SmartJP.jar:1.1]

at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:375) [SmartJP.jar:1.1]

at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:224) [SmartJP.jar:1.1]

at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565) [SmartJP.jar:1.1]

at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545) [SmartJP.jar:1.1]

at java.lang.Thread.run(Thread.java:748) [na:1.8.0_241]



Andrew Byrd

unread,
Sep 10, 2021, 2:07:43 AM9/10/21
to bucch...@fbk.eu, OpenTripPlanner Developers, OpenTripPlanner Users
Hi Antonio,

The topmost frame in your stack trace that is from org.opentripplanner package is:
org.opentripplanner.api.common.RoutingResource.takeChangedRoutesFromUrl(RoutingResource.java:662) ~[SmartJP.jar:1.1]

I took a quick look at the 1.5 tag and 2.x branch of OTP and I do not see any method called takeChangedRoutesFromUrl. This is also in a file called SmartP.jar which would not be part of a usual OTP distribution.

You have not stated which version of OTP you are using, but it looks to me like this is a customized fork and the error is happening in code that was added or modified. I am not sure if anyone will be able to help you with this, but you’d need to at least provide a complete description of what fork you are running as well as complete configuration information.

Regards,
Andrew

--
Le informazioni contenute nella presente comunicazione sono di natura privata e come tali sono da considerarsi riservate ed indirizzate esclusivamente ai destinatari indicati e per le finalità strettamente legate al relativo contenuto. Se avete ricevuto questo messaggio per errore, vi preghiamo di eliminarlo e di inviare una comunicazione all’indirizzo e-mail del mittente.
--
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If you received this in error, please contact the sender and delete the material.

--
You received this message because you are subscribed to the Google Groups "OpenTripPlanner Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/opentripplanner-dev/b9fe11b5-55aa-4ec2-b770-b9a76fe424efn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages