Error with GTFS-RT feed: schedule_relationship: NO_DATA at a stop

41 views
Skip to first unread message

Nicolas Derive

unread,
May 23, 2018, 4:49:58 PM5/23/18
to onebusaw...@googlegroups.com, onebusaway...@googlegroups.com
Using a GTFS-RT feed with OBA (version doesn't matter), I got this error:
2018-05-23 22:44:56,795 WARN  [GtfsRealtimeTripLibrary.java:235] : unknown/total trips= 73/940
2018-05-23 22:44:56,797 WARN  [GtfsRealtimeSource.java:401] : Error updating from GTFS-realtime data sources
java.lang.IllegalStateException: expected at least an arrival or departure time or delay for update: stop_id: "StopPoint:40:47"
schedule_relationship: NO_DATA

        at org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeTripLibrary.getTimeForStopTimeUpdate(GtfsRealtimeTripLibrary.java:534)
        at org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeTripLibrary.getBlockStopTimeForStopTimeUpdate(GtfsRealtimeTripLibrary.java:492)
        at org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeTripLibrary.applyTripUpdatesToRecord(GtfsRealtimeTripLibrary.java:411)
        at org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeTripLibrary.createVehicleLocationRecordForUpdate(GtfsRealtimeTripLibrary.java:158)
        at org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeSource.handleCombinedUpdates(GtfsRealtimeSource.java:275)
        at org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeSource.handeUpdates(GtfsRealtimeSource.java:265)
        at org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeSource.refresh(GtfsRealtimeSource.java:244)
        at org.onebusaway.transit_data_federation.impl.realtime.gtfs_realtime.GtfsRealtimeSource$RefreshTask.run(GtfsRealtimeSource.java:399)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

But, I think that when schedule_relationship is NO_DATA for a stop, it means that you have no data, so no delay, departure or arrival time to provide, don't you think? Is this really an error regarding GTFS-RT spec?

Thanks for your help.

Nicolas

Sean Barbeau

unread,
May 25, 2018, 11:43:57 AM5/25/18
to onebusaway-developers
Nicolas,
This looks like a bug in how OBA handles NO_DATA in GTFS-realtime.


 If schedule_relationship is NO_DATA, arrival and departure must be empty.


Could you please open a Github issue for this?

If you can provide a snippet of the GTFS-realtime data that triggered this it would be great too.

Thanks,
Sean

Nicolas Derive

unread,
May 25, 2018, 6:11:44 PM5/25/18
to onebusaway...@googlegroups.com
Sean,


Thanks for looking for a fix.

Best regards,

Nicolas

--
You received this message because you are subscribed to the Google Groups "onebusaway-developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onebusaway-devel...@googlegroups.com.
To post to this group, send email to onebusaway...@googlegroups.com.
Visit this group at https://groups.google.com/group/onebusaway-developers.
For more options, visit https://groups.google.com/d/optout.

Nicolas Derive

unread,
Jul 22, 2018, 6:38:41 PM7/22/18
to onebusaway...@googlegroups.com
Dear all,

Is there still a http://nexus.onebusaway.org equivalent somewhere to download latest dev builds?

The more recent dev build I found on it is from January... and that was especially useful to grab latest onebusaway-quickstart-assembly to perform tests...


Best regards,


Nicolas

Sheldon A. Brown

unread,
Jul 23, 2018, 8:00:06 AM7/23/18
to onebusaway...@googlegroups.com
Yes,

are you having issues with it?

Here is a link to the latest quickstart assembly:

http://nexus.onebusaway.org/nexus/content/groups/public/org/onebusaway/onebusaway-quickstart-assembly/2.0.0-SNAPSHOT/

Sheldon

Nicolas Derive

unread,
Jul 23, 2018, 8:43:24 AM7/23/18
to onebusaway...@googlegroups.com
Yep, I got an error (sorry for not being more specific, I'm not at home with my setup) when loading the database generated with it using a given GTFS file (http://ratp.spiralo.net/stif_gtfs_enhanced_rer_latest.zip) when it was properly working using stable 1.1.18 one.

Is there some more recent prebuilt OBA version, even if it's API only? Maybe I encounter a bug that has been fixed since January, 6th (latest quickstart 2.0.0 snapshot on Nexus)

Nicolas

Sheldon A. Brown

unread,
Jul 23, 2018, 1:43:21 PM7/23/18
to onebusaway...@googlegroups.com
Sorry, there is the 1.1.18 release, or the 2.0.0 snapshot. Those are
your best bets.

But do post the error you received on the 2.0.0 snapshot, and I'll take a look.

Sheldon

Nicolas Derive

unread,
Jul 23, 2018, 3:13:14 PM7/23/18
to onebusaway...@googlegroups.com
Ok, so let's deal with this. Here is the message I have:

nicolas@caius-bonux:~/transports/oba/dev$ java -Xmx9G -server -Duser.timezone=Europe/Paris -jar ./onebusaway-quickstart-assembly-2.0.0-20180106.065216-46-api-webapp.war -webapp -port=5003 ./

Extracting the bootstrap classpath.  This may take a few moments...
2018-07-23 21:04:20.288:INFO::jetty-7.4.1.v20110513
2018-07-23 21:04:20.344:INFO::Extract jar:file:/home/nicolas/transports/oba/dev/onebusaway-quickstart-assembly-2.0.0-20180106.065216-46-api-webapp.war!/ to /tmp/jetty-0.0.0.0-5003-onebusaway-quickstart-assembly-2.0.0-20180106.065216-46-api-webapp.war-_-any-/webapp
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/tmp/jetty-0.0.0.0-5003-onebusaway-quickstart-assembly-2.0.0-20180106.065216-46-api-webapp.war-_-any-/webapp/WEB-INF/lib/onebusaway-gtfs-transformer-cli-1.3.17.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/tmp/jetty-0.0.0.0-5003-onebusaway-quickstart-assembly-2.0.0-20180106.065216-46-api-webapp.war-_-any-/webapp/WEB-INF/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/tmp/jetty-0.0.0.0-5003-onebusaway-quickstart-assembly-2.0.0-20180106.065216-46-api-webapp.war-_-any-/webapp/WEB-INF/lib/slf4j-simple-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
2018-07-23 21:04:22.451:INFO:/:Initializing Spring root WebApplicationContext
=== BootstrapWebApplicationContext! ============================
2018-07-23 21:04:23.102:WARN::Failed startup of context o.e.j.w.WebAppContext{/,file:/tmp/jetty-0.0.0.0-5003-onebusaway-quickstart-assembly-2.0.0-20180106.065216-46-api-webapp.war-_-any-/webapp/},file:/home/nicolas/transports/oba/dev/onebusaway-quickstart-assembly-2.0.0-20180106.065216-46-api-webapp.war
java.lang.ClassCastException: org.apache.commons.cli.CommandLine cannot be cast to org.apache.commons.cli.CommandLine
        at org.onebusaway.quickstart.webapp.BootstrapWebApplicationContext.loadBeanDefinitions(BootstrapWebApplicationContext.java:54)
        at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
        at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
        at org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.java:640)
        at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:229)
        at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1197)
        at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:586)
        at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:449)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
        at org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:224)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
        at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:89)
        at org.eclipse.jetty.server.Server.doStart(Server.java:258)
        at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:58)
        at org.onebusaway.quickstart.bootstrap.WebappBootstrapMain.run(WebappBootstrapMain.java:118)
        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:498)
        at org.onebusaway.quickstart.bootstrap.BootstrapMain$1.run(BootstrapMain.java:199)
        at java.lang.Thread.run(Thread.java:748)
2018-07-23 21:04:23.152:INFO::Started SocketC...@0.0.0.0:5003 STARTING
=============================================================
=
= Your OneBusAway instance has started.  Browse to:
=
= http://localhost:5003/
=
= to see your instance in action.
=
= When you are finished, press return to exit gracefully...
=============================================================

So OBA starts, but it loads nothing, whereas database generation seemed to happen normally (similar debug/info messages
 in console... obj files generated...)

Thanks for your help


Nicolas
Reply all
Reply to author
Forward
0 new messages