ERROR: Can't configure: rt --- while configuring Realtime GTFS feed with OTP

55 views
Skip to first unread message

Arif

unread,
Dec 17, 2014, 9:28:30 AM12/17/14
to opentripp...@googlegroups.com
Hi,

I am trying to configure Realtime GTFS feed with OTP using https://github.com/opentripplanner/OpenTripPlanner/wiki/Graph-Updaters guide.

I got this Error:


17:46:50.796 ERROR (GraphUpdaterConfigurator.java:160) Can't configure: rt
java.lang.IllegalArgumentException: Unknown update streamer source type: null
        at org.opentripplanner.updater.stoptime.PollingStoptimeUpdater.configurePolling(PollingStoptimeUpdater.java:98) 
~[otp-1.0.0-SNAPSHOT.jar:1.1]
        at org.opentripplanner.updater.PollingGraphUpdater.configure(PollingGraphUpdater.java:95) ~[otp-1.0.0-SNAPSHOT.j
ar:1.1]
        at org.opentripplanner.updater.GraphUpdaterConfigurator.applyConfigurationToGraph(GraphUpdaterConfigurator.java:
153) [otp-1.0.0-SNAPSHOT.jar:1.1]
        at org.opentripplanner.updater.GraphUpdaterConfigurator.setupGraph(GraphUpdaterConfigurator.java:75) [otp-1.0.0-
SNAPSHOT.jar:1.1]
        at org.opentripplanner.routing.impl.InputStreamGraphSource.loadGraph(InputStreamGraphSource.java:231) [otp-1.0.0
-SNAPSHOT.jar:1.1]
        at org.opentripplanner.routing.impl.InputStreamGraphSource.reload(InputStreamGraphSource.java:140) [otp-1.0.0-SN
APSHOT.jar:1.1]
        at org.opentripplanner.routing.impl.InputStreamGraphSource.<init>(InputStreamGraphSource.java:103) [otp-1.0.0-SN
APSHOT.jar:1.1]
        at org.opentripplanner.routing.impl.InputStreamGraphSource.newFileGraphSource(InputStreamGraphSource.java:83) [o
tp-1.0.0-SNAPSHOT.jar:1.1]
        at org.opentripplanner.routing.impl.GraphScanner.startup(GraphScanner.java:85) [otp-1.0.0-SNAPSHOT.jar:1.1]
        at org.opentripplanner.standalone.OTPConfigurator.makeGraphService(OTPConfigurator.java:111) [otp-1.0.0-SNAPSHOT
.jar:1.1]
        at org.opentripplanner.standalone.OTPConfigurator.getGraphService(OTPConfigurator.java:118) [otp-1.0.0-SNAPSHOT.
jar:1.1]
        at org.opentripplanner.standalone.OTPConfigurator.getServer(OTPConfigurator.java:77) [otp-1.0.0-SNAPSHOT.jar:1.1
]
        at org.opentripplanner.standalone.OTPConfigurator.serverFromParameters(OTPConfigurator.java:246) [otp-1.0.0-SNAP
SHOT.jar:1.1]
        at org.opentripplanner.standalone.OTPMain.main(OTPMain.java:77) [otp-1.0.0-SNAPSHOT.jar:1.1]


Code is looking for "sourceType" but there is no "sourceType" parameter in Graph.properties as documented in Graph-Updater (documentation is not in sync with code)

I have two questions:
1. where to add sourceType parameter and what is its value.
2. How can I add multiple RT feeds for one graph (graph contains multiple agencies), one for each agency.

Thanks for help.


Arif

Arif

unread,
Dec 18, 2014, 12:56:25 AM12/18/14
to opentripp...@googlegroups.com
Hello,

it seems like I fixed configuration error:
I used following configuration 

rt.type=stop-time-updater
rt.frequencySec=60
rt.sourceType=gtfs-http
rt.defaultAgencyId=TA1
 
instead of this (from Graph-Updaters)

rt.type=stop-time-updater
rt.frequencySec=60
rt.source.type=gtfs-http
rt.source.defaultAgencyId=TA1
 
and it is working now.

I think documentation needs some fixes. Please, correct me  if I am wrong. thanks.


Arif

andrew byrd

unread,
Dec 22, 2014, 3:34:27 PM12/22/14
to opentripp...@googlegroups.com
Hi Arif,

Confirmed, the realtime updaters no longer have the nested "source"
element. I see you've already updated the wiki. These docs are in the
process of migrating into the docs/ directory of the OTP repository, so
they will be under version control with the rest of the code and
published at readthedocs.org.

-Andrew

On Thu, Dec 18, 2014, at 06:56, Arif wrote:
> Hello,
>
> it seems like I fixed configuration error:
> *I used following configuration *
>
> rt.type=stop-time-updater
> rt.frequencySec=60
> rt.sourceType=gtfs-http
> rt.url=http://domain.tld/stop-times
> rt.defaultAgencyId=TA1
>
>
> *instead of this (from Graph-Updaters
> <https://github.com/opentripplanner/OpenTripPlanner/wiki/Graph-Updaters>)*
> > <https://github.com/opentripplanner/OpenTripPlanner/blob/master/src/main/java/org/opentripplanner/updater/stoptime/PollingStoptimeUpdater.java#L87>
> > Code is looking for "*sourceType*" but there is no "*sourceType*"
> > parameter in Graph.properties as documented in Graph-Updater
> > <https://github.com/opentripplanner/OpenTripPlanner/wiki/Graph-Updaters> (documentation
> > is not in sync with code)
> >
> > I have two questions:
> > *1. where to add sourceType parameter and what is its value.*
> > *2. How can I add multiple RT feeds for one graph (graph contains multiple
> > agencies), one for each agency.*
> >
> > Thanks for help.
> >
> >
> > Arif
> >
> >
>
> --
> 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.
Reply all
Reply to author
Forward
0 new messages