Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ServiceAreaServiceImpl deadlocks when calculating default search area #132

Closed
sheldonabrown opened this issue May 6, 2015 · 1 comment
Closed

Comments

@sheldonabrown
Copy link
Member

The call to the _transitDataService takes place before the TDS has been initialized, and causes a deadlock on startup.

@PostConstruct
  public void setup() {

    if (_calculateDefaultBoundsFromAgencyCoverage) {
      List<AgencyWithCoverageBean> agenciesWithCoverage = _transitDataService.getAgenciesWithCoverage();
      CoordinateBounds bounds = new CoordinateBounds();
....
}
@sheldonabrown
Copy link
Member Author

The quick fix is to turn off the default bounds calculation in data-sources.xml

  <bean id="serviceAreaServiceImpl" class="org.onebusaway.presentation.impl.ServiceAreaServiceImpl">
    <property name="defaultBounds">
      <bean class="org.onebusaway.geospatial.model.CoordinateBounds">
        <property name="minLat" value="xx.xxx" />
        <property name="minLon" value="yy.yyy" />
        <property name="maxLat" value="xx.xxx" />
        <property name="maxLon" value="yy.yyy" />
      </bean>
    </property>
    <property name="calculateDefaultBoundsFromAgencyCoverage" value="false" />
  </bean>

The longer term fix may be moving this to a background thread.

sheldonabrown added a commit to camsys/onebusaway-application-modules that referenced this issue May 6, 2015
sheldonabrown added a commit that referenced this issue May 6, 2015
sheldonabrown pushed a commit that referenced this issue Jan 1, 2024
…rminal

Wmata 578 sort order issues at terminal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant