avax.ws.rs.NotFoundException when using transit API

204 views
Skip to first unread message

Luca Faverio

unread,
Oct 17, 2014, 8:35:01 AM10/17/14
to opentrippl...@googlegroups.com
Hi, i've downloaded and installed OTP 0.11.
The planning part is working great, but now i need to access the schedule for a stop. Looking in the API i've found the method 

/routers/{routerId}/transit/stopTimesForStop

that seems exactly what i'm looking for, the only problem is that when i call it i get the following exception:

javax.ws.rs.NotFoundException: HTTP 404 Not Found HTTP 404 Not Found

instead of routerId i've used default (which works well for the plan API)

i've tried to add --analytics but with no results.


Message has been deleted

Franco Base

unread,
Oct 17, 2014, 9:25:04 AM10/17/14
to opentrippl...@googlegroups.com
Hi 
I have the same problem.
and this is terminal output:

javax.ws.rs.NotFoundException: HTTP 404 Not Found
at org.glassfish.jersey.server.ServerRuntime$1.run(ServerRuntime.java:266)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271)
at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:297)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:252)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1023)
at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:364)
at org.glassfish.grizzly.http.server.HttpHandler$1.run(HttpHandler.java:217)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)

Marko Burjek

unread,
Oct 18, 2014, 5:53:22 AM10/18/14
to opentripplanner-users
I tested and I get no 404 exception on branch 0.11.x.

But I do get it on branch 1.0, because Transit REST API isn't finalized yet.

So if you see language icon in frontend anywhere http://www.languageicon.org/ you have development version.

I updated minimal introduction to point to branch 0.11.x now https://github.com/opentripplanner/OpenTripPlanner/wiki/Minimal-Introduction

To switch from master to branch 0.11 you should do:
 mvn clean
git checkout 0.11.x

2014-10-17 15:25 GMT+02:00 Franco Base <frenk...@gmail.com>:
Hi 
I have the same problem.
and this is terminal output:

javax.ws.rs.NotFoundException: HTTP 404 Not Found
at org.glassfish.jersey.server.ServerRuntime€0.78.run(ServerRuntime.java:266)
at org.glassfish.jersey.internal.Errors€0.78.call(Errors.java:271)
at org.glassfish.jersey.internal.Errors€0.78.call(Errors.java:267)
at org.glassfish.jersey.internal.Errors.process(Errors.java:315)
at org.glassfish.jersey.internal.Errors.process(Errors.java:297)
at org.glassfish.jersey.internal.Errors.process(Errors.java:267)
at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:297)
at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:252)
at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1023)
at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:364)
at org.glassfish.grizzly.http.server.HttpHandler€0.78.run(HttpHandler.java:217)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)

Il giorno venerdì 17 ottobre 2014 14:35:01 UTC+2, Luca Faverio ha scritto:
Hi, i've downloaded and installed OTP 0.11.
The planning part is working great, but now i need to access the schedule for a stop. Looking in the API i've found the method 

/routers/{routerId}/transit/stopTimesForStop

that seems exactly what i'm looking for, the only problem is that when i call it i get the following exception:

javax.ws.rs.NotFoundException: HTTP 404 Not Found HTTP 404 Not Found

instead of routerId i've used default (which works well for the plan API)

i've tried to add --analytics but with no results.


--
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.

Luca Faverio

unread,
Oct 20, 2014, 9:24:30 AM10/20/14
to opentrippl...@googlegroups.com
Thanks Marko, i've checked and i have the 1.0 branch, switching to 0.11 fixed the problem.
To unsubscribe from this group and stop receiving emails from it, send an email to opentripplanner-users+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages