opentripplanner / OpenTripPlanner

An open source multi-modal trip planner
http://www.opentripplanner.org
Other
2.2k stars 1.03k forks source link

IndexOutOfBoundsException when planning a trip #510

Closed iugo-robert closed 13 years ago

iugo-robert commented 13 years ago

Getting a consistent error when trying to plan a particular trip.

2011-09-15 09:10:25,046 DEBUG [StreetVertexIndexServiceImpl.java:182] : Looking for/making a vertex near (138.59473032293, -34.936057847495, NaN) 2011-09-15 09:10:25,047 DEBUG [StreetVertexIndexServiceImpl.java:215] : best stop: distance: 41.489233186751136 2011-09-15 09:10:25,049 DEBUG [StreetVertexIndexServiceImpl.java:228] : best street: TurnEdge( <way 22769358 from 9 back (South Terrace)>, <way 22769358 from 8 back (South Terra ce)>) dist: 9.299561641505726 2011-09-15 09:10:25,050 DEBUG [StreetVertexIndexServiceImpl.java:252] : returning split street 2011-09-15 09:10:25,050 DEBUG [StreetVertexIndexServiceImpl.java:182] : Looking for/making a vertex near (138.6621569156, -34.880697329932, NaN) 2011-09-15 09:10:25,051 DEBUG [StreetVertexIndexServiceImpl.java:215] : best stop: distance: 53.72594240621319 2011-09-15 09:10:25,053 DEBUG [StreetVertexIndexServiceImpl.java:228] : best street: TurnEdge( <way 23921704 from 3 back (Lower North East Road)>, <way 23921704 from 2 back (Low er North East Road)>) dist: 5.307804721997317 2011-09-15 09:10:25,053 DEBUG [StreetVertexIndexServiceImpl.java:252] : returning split street 2011-09-15 09:10:25,054 DEBUG [DefaultRemainingWeightHeuristicFactoryImpl.java:26] : Using Euclidean heuristic independent of search type. 2011-09-15 09:10:25,054 DEBUG [ContractionPathServiceImpl.java:156] : Applied A* heuristic: org.opentripplanner.routing.algorithm.strategies.DefaultRemainingWeightHeuristic@26ba d465 2011-09-15 09:10:25,055 DEBUG [ContractionPathServiceImpl.java:194] : BEGIN SEARCH 2011-09-15 09:10:25,209 DEBUG [GenericAStar.java:184] : total vertices visited 23093 2011-09-15 09:10:25,210 DEBUG [ContractionPathServiceImpl.java:196] : END SEARCH 155 msec 2011-09-15 09:10:25,211 DEBUG [ContractionPathServiceImpl.java:207] : Setting max time and weight for subsequent searches. 2011-09-15 09:10:25,211 DEBUG [ContractionPathServiceImpl.java:208] : First path start time: 1316042768 2011-09-15 09:10:25,211 DEBUG [ContractionPathServiceImpl.java:211] : First path duration: 2815 2011-09-15 09:10:25,212 DEBUG [ContractionPathServiceImpl.java:212] : Max time set to: 1316048398 2011-09-15 09:10:25,212 DEBUG [ContractionPathServiceImpl.java:214] : Max weight set to: 7219.659251523471 2011-09-15 09:10:25,212 DEBUG [ContractionPathServiceImpl.java:227] : New trips: [admet_72574, admet_64056] 2011-09-15 09:10:25,213 DEBUG [ContractionPathServiceImpl.java:248] : 1 / 3 itineraries 2011-09-15 09:10:25,213 DEBUG [ContractionPathServiceImpl.java:194] : BEGIN SEARCH 2011-09-15 09:10:25,403 DEBUG [GenericAStar.java:184] : total vertices visited 28728 2011-09-15 09:10:25,404 DEBUG [ContractionPathServiceImpl.java:196] : END SEARCH 191 msec 2011-09-15 09:10:25,405 DEBUG [ContractionPathServiceImpl.java:227] : New trips: [admet_73034, admet_64057] 2011-09-15 09:10:25,405 DEBUG [ContractionPathServiceImpl.java:248] : 2 / 3 itineraries 2011-09-15 09:10:25,406 DEBUG [ContractionPathServiceImpl.java:194] : BEGIN SEARCH 2011-09-15 09:10:25,738 DEBUG [GenericAStar.java:184] : total vertices visited 41580 2011-09-15 09:10:25,739 DEBUG [ContractionPathServiceImpl.java:196] : END SEARCH 332 msec 2011-09-15 09:10:25,739 DEBUG [ContractionPathServiceImpl.java:227] : New trips: [admet_72915, admet_65480, admet_63980] 2011-09-15 09:10:25,739 DEBUG [ContractionPathServiceImpl.java:248] : 3 / 3 itineraries 2011-09-15 09:10:25,740 WARN [DefaultFareServiceImpl.java:197] : No fare for a perfectly good ride: Ride on admet_G10 through null at 1316042768) 2011-09-15 09:10:25,743 WARN [DefaultFareServiceImpl.java:197] : No fare for a perfectly good ride: Ride on admet_W90C through null at 1316043069) 2011-09-15 09:10:25,745 WARN [DefaultFareServiceImpl.java:197] : No fare for a perfectly good ride: Ride on admet_G20 through null at 1316043288) Sep 15, 2011 9:10:25 AM org.opentripplanner.api.ws.Planner getItineraries SEVERE: exception planning trip: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(ArrayList.java:571) at java.util.ArrayList.get(ArrayList.java:349) at org.opentripplanner.api.ws.PlanGenerator.getWalkSteps(PlanGenerator.java:686) at org.opentripplanner.api.ws.PlanGenerator.generateItinerary(PlanGenerator.java:279) at org.opentripplanner.api.ws.PlanGenerator.generatePlan(PlanGenerator.java:156) at org.opentripplanner.api.ws.PlanGenerator.generate(PlanGenerator.java:123) at org.opentripplanner.api.ws.Planner.getItineraries(Planner.java:244) at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:156) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:208) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:75) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:115) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:67) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:724) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:689) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:680) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:324) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:604) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:100) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:78) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:35) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.opentripplanner.api.authentication.WSSEAuthenticationFilter.doFilter(WSSEAuthenticationFilter.java:91) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79) at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380) at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169) at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237) at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Thread.java:636)

novalis commented 13 years ago

This looks like #509. Are you running head?

novalis commented 13 years ago

sorry, #508.

iugo-robert commented 13 years ago

Yeah it may be related to #508.

novalis commented 13 years ago

Assuming that you are running the most recent version, would you be willing to post (or e-mail) your configuration files and GTFS?

iugo-robert commented 13 years ago

I don't think I'm running the most recent version, I'm running the build from this link: http://maps5.trimet.org/otp-dev/otp.zip

GTFS data I am using is from here: http://www.transport.sa.gov.au/googletransit/google_transit.zip

Yep I'll email through my configuration files, which ones are applicable?

novalis commented 13 years ago

Mostly I want the graph builder XML file.

otp.zip is rebuilt I think every night (I'm not exactly sure). I checked in the fix for that bug last night, so if you downloaded it less recently than then, it's definitely not the current version.

On Wed, 2011-09-14 at 17:04 -0700, flobbit wrote:

I don't think I'm running the most recent version, I'm running the build from this link: http://maps5.trimet.org/otp-dev/otp.zip

GTFS data I am using is from here: http://www.transport.sa.gov.au/googletransit/google_transit.zip

Yep I'll email through my configuration files, which ones are applicable?

iugo-robert commented 13 years ago

Yeah I downloaded that file yesterday, so I wouldn't be running the latest version.

novalis commented 13 years ago

Please do me a favor and try the most recent version (today's otp.zip should do); if it still has the error, I'll look into it tomorrow morning.

iugo-robert commented 13 years ago

Current version seems to have fixed this issue.

Thanks.