GraphHopper.com | Forum | GitHub | Maps | Blog

Pubic Transit Routing 500 Error


#1

Hello @michaz and @karussell,

I recently came across an issue with GraphHopper. I am experiencing a 500 error.
Here are my parameters for the request:

`{"vehicle":"pt","weighting":"short_fastest","point":["42.4448765,-76.4808143","42.4301429,-76.5082167"],"points_encoded":false,"pt.arrive_by":false,"ch.disable":true,"pt.walk_speed":3,"pt.earliest_departure_time":"2018-03-15T14:49:15.303Z","pt.profile":true,"pt.limit_solutions":6}`

OSM Map: https://github.com/cuappdev/tcat-map

GTFS Data: https://s3.amazonaws.com/tcat-gtfs/tcat-ny-us.zip

Do you have any reason why I would get a 500 error? Other routes work normally.

Best,

Austin


#2

Would you mind to post the error message and if available a stack trace?


#3
java.lang.NullPointerException\n\tat com.graphhopper.reader.gtfs.Label$1$1.next(Label.java:120)\n\tat 
com.graphhopper.reader.gtfs.Label$1$1.next(Label.java:105)\n\tat 
java.lang.Iterable.forEach(Iterable.java:74)\n\tat 
com.graphhopper.reader.gtfs.TripFromLabel.getTrip(TripFromLabel.java:130)\n\tat 
com.graphhopper.reader.gtfs.GraphHopperGtfs$RequestHandler.parseSolutionsAndAddToResponse(GraphHopperGtfs.java:219)\n\tat 
com.graphhopper.reader.gtfs.GraphHopperGtfs$RequestHandler.route(GraphHopperGtfs.java:162)\n\tat 
com.graphhopper.reader.gtfs.GraphHopperGtfs.route(GraphHopperGtfs.java:370)\n\tat 
com.graphhopper.http.GraphHopperServlet.doGet(GraphHopperServlet.java:146)\n\tat 
javax.servlet.http.HttpServlet.service(HttpServlet.java:687)\n\tat 
javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\n\tat 
com.google.inject.servlet.ServletDefinition.doServiceImpl(ServletDefinition.java:286)\n\tat 
com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:276)\n\tat 
com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:181)\n\tat 
com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:91)\n\tat 
com.graphhopper.http.IPFilter.doFilter(IPFilter.java:60)\n\tat 
com.graphhopper.http.CORSFilter.doFilter(CORSFilter.java:38)\n\tat 
com.graphhopper.http.HeadFilter.doFilter(HeadFilter.java:37)\n\tat 
com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120)\n\tat 
com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:135)\n\tat 
org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1621)\n\tat 
org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:541)\n\tat 
org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)\n\tat 
org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1239)\n\tat
 org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)\n\tat 
org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:481)\n\tat 
org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)\n\tat 
org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1141)\n\tat 
org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\n\tat org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)\n\tat 
org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:561)\n\tat 
org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)\n\tat 
org.eclipse.jetty.server.Server.handle(Server.java:564)\n\tat 
org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)\n\tat 
org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)\n\tat 
org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)\n\tat 
org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)\n\tat 
org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)\n\tat 
org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:672)\n\tat 
org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:590)
java.lang.Thread.run(Thread.java:745)

Here is what gets printed out! @boldtrn


#4

Thanks for posting this. This looks like a bug. Have created: https://github.com/graphhopper/graphhopper/issues/1311


#5

Should be fixed with 24bf137. Not tested a lot, though.