Hi guys,--I am NOT a software developer and here is probably not a right place to ask this question and I've tried my best not to, but I couldn't figure it out by myself.I am trying to run OTP in intelliJ on a windows 7 platform and I have downloaded the GTFS and openStreetMap data as well. however I don't know how to pass the parameters to the main class (which I think is the parameters should be the address of these files and also something for JVM configuration). I almost read the all the documents in opentripplanner.org but most of them was about running this on a linux machine using otp.jar file which is not my case. By the way I found this article as well but unfortunately it doesn't answer my question either.this is the part of document that I don't know how to do: " your main class will be org.opentripplanner.standalone.OTPMain, and you may want to specify VM options to increase the JVM heap size (e.g.-Xmx4Gto increase the limit to 4GB). Only the "Program arguments" will be different for building and serving a graph (see "Standalone Graph Build" [article to be completed])."Any help would be appreciated.Kind Regards,Mohammad
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.
For more options, visit https://groups.google.com/d/optout.
Hi Guys,Thank you for your prompt response. I can build the graph right now but when I want to run OTP on server it gives me "GraphNotFoundException" error. I do have the "Graph.obj" and I pass "--graphs d:\OTP/Sydney/ --server" to the main class and it deploys on the server as well. However, when I go to "http://localhost:8080" it gives me this error and although that I can see the main page of OTP, but the drop down lists for "Start" and "End" are empty and nothing has loaded to them. I've also used the GTFS and OSM data for Portland as well but I got the same error. I've copied a part of error message which I got from OTP in below. Any help would be appreciated.Kind Regards,Mohammad22:04:38.722 ERROR (GraphService.java:125) no graph registered with the routerId ''org.opentripplanner.routing.error.GraphNotFoundExceptionat org.opentripplanner.routing.services.GraphService.getRouter(GraphService.java:126)at org.opentripplanner.standalone.OTPServer.getRouter(OTPServer.java:76)at org.opentripplanner.api.resource.Metadata.getMetadata(Metadata.java:39)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:483)at org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory€0.89.invoke(ResourceMethodInvocationHandlerFactory.java:81)at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher€0.89.run(AbstractJavaResourceMethodDispatcher.java:151)at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:171)at org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$TypeOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:195)at org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:104)at org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:384)at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:342)at org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:101)at org.glassfish.jersey.server.ServerRuntime€0.89.run(ServerRuntime.java:271)at org.glassfish.jersey.internal.Errors€0.89.call(Errors.java:271)at org.glassfish.jersey.internal.Errors€0.89.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:254)at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1030)at org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.service(GrizzlyHttpContainer.java:378)at org.glassfish.grizzly.http.server.HttpHandler€0.89.run(HttpHandler.java:219)at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:565)at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:545)at java.lang.Thread.run(Thread.java:745)
On Thursday, February 26, 2015 at 8:32:57 PM UTC+11, Mohammad Haqqani wrote:
Hi guys,I am NOT a software developer and here is probably not a right place to ask this question and I've tried my best not to, but I couldn't figure it out by myself.I am trying to run OTP in intelliJ on a windows 7 platform and I have downloaded the GTFS and openStreetMap data as well. however I don't know how to pass the parameters to the main class (which I think is the parameters should be the address of these files and also something for JVM configuration). I almost read the all the documents in opentripplanner.org but most of them was about running this on a linux machine using otp.jar file which is not my case. By the way I found this article as well but unfortunately it doesn't answer my question either.
this is the part of document that I don't know how to do: " your main class will be org.opentripplanner.standalone.OTPMain, and you may want to specify VM options to increase the JVM heap size (e.g.-Xmx4Gto increase the limit to 4GB). Only the "Program arguments" will be different for building and serving a graph (see "Standalone Graph Build" [article to be completed])."
Any help would be appreciated.Kind Regards,Mohammad