transitGraphDao is null in ExtendedCalendarServiceImpl

35 views
Skip to first unread message

oscar.j...@gmail.com

unread,
Sep 14, 2020, 2:08:01 AM9/14/20
to onebusaway-developers
Hi all, 

I am creating the data transit bundle OBA for a recent updated GTFS and I'am getting the exception below:

2020-09-14 01:31:59,960 ERROR [FederatedTransitDataBundleCreatorMain.java:220] : error building transit data bundle
java.lang.IllegalStateException: error invoking refresh method=public void org.onebusaway.transit_data_federation.impl.ExtendedCalendarServiceImpl.start() on target object=org.onebusaway.transit_data_federation.impl.ExtendedCalendarServiceImpl@3f67f5ff
at org.onebusaway.container.refresh.RefreshServiceImpl.invokePair(RefreshServiceImpl.java:133)
at org.onebusaway.container.refresh.RefreshServiceImpl.refresh(RefreshServiceImpl.java:45)
at org.onebusaway.transit_data_federation.bundle.tasks.CalendarServiceDataTask.run(CalendarServiceDataTask.java:90)
at org.onebusaway.transit_data_federation.bundle.FederatedTransitDataBundleCreator.run(FederatedTransitDataBundleCreator.java:192)
at org.onebusaway.transit_data_federation.bundle.FederatedTransitDataBundleCreatorMain.run(FederatedTransitDataBundleCreatorMain.java:218)
at org.onebusaway.transit_data_federation.bundle.FederatedTransitDataBundleCreatorMain.main(FederatedTransitDataBundleCreatorMain.java:91)
Caused by: java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.onebusaway.container.refresh.RefreshServiceImpl.invokePair(RefreshServiceImpl.java:131)
... 5 more
Caused by: java.lang.NullPointerException
at org.onebusaway.transit_data_federation.impl.transit_graph.TransitGraphDaoImpl.getAllBlocks(TransitGraphDaoImpl.java:121)
at org.onebusaway.transit_data_federation.impl.ExtendedCalendarServiceImpl.determineAllServiceIds(ExtendedCalendarServiceImpl.java:442)
at org.onebusaway.transit_data_federation.impl.ExtendedCalendarServiceImpl.cacheServiceDatesForServiceIds(ExtendedCalendarServiceImpl.java:415)
at org.onebusaway.transit_data_federation.impl.ExtendedCalendarServiceImpl.start(ExtendedCalendarServiceImpl.java:96)
... 10 more
2020-09-14 01:31:59,960 INFO  [AbstractApplicationContext.java:1002] : Closing org.springframework.context.support.GenericApplicationContext@11531931: startup date [Mon Sep 14 01:31:30 EDT 2020]; root of context hierarchy

It seems the _transitGraphDao object in ExtendedCalendarServiceImpl is null. What may be causing this error?

Thanks
Oscar

Sheldon A. Brown

unread,
Sep 14, 2020, 9:06:50 AM9/14/20
to onebusaway...@googlegroups.com
Sorry Oscar,

I can't say based on that stack trace alone. Does the bundle build if
you use the previous GTFS?

Sheldon
> --
> 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 view this discussion on the web visit https://groups.google.com/d/msgid/onebusaway-developers/53992a66-465b-4cf7-bad3-1e6743cd967dn%40googlegroups.com.

oscar.j...@gmail.com

unread,
Sep 14, 2020, 3:21:01 PM9/14/20
to onebusaway-developers
Hi Sheldon,

I was getting exactly the same error if I used previous GTFS, which is weird because we haven't seen this error before. The only unusual thing we saw this time is the following warning:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.dom4j.io.SAXContentHandler (file:/../../onebusaway-transit-data-federation-builder-2.0.0-withAllDependencies.jar) to method com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser$LocatorProxy.getEncoding()
WARNING: Please consider reporting this to the maintainers of org.dom4j.io.SAXContentHandler
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

We realized that we recently upgraded Java to the latest version, so we reverted to Java 8 and now the error has gone. We need to find a better solution to this issue though.
Thanks

Oscar


oscar.j...@gmail.com

unread,
Sep 14, 2020, 4:46:28 PM9/14/20
to onebusaway-developers
[UPDATE]: I tried two different OBA versions (1.1.14 and 2.0.0) and got the same error. The Java version which seemed to be incompatible with OBA was Java SE 14. There are no compatibility issues with Java SE 8 

Sean Barbeau

unread,
Sep 14, 2020, 10:19:13 PM9/14/20
to onebusaway-developers
This might be the bundle building issue here:

Sean

Reply all
Reply to author
Forward
0 new messages