-
Notifications
You must be signed in to change notification settings - Fork 38.2k
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
Synchronization in AnnotationMethodHandlerAdapter [SPR-7525] #12183
Comments
Juergen Hoeller commented Indeed, due to a change in ServletHandlerMethodResolver's internal caching, we have to perform extended caching when creating those resolver instances. Fixed for 3.0.5, for the Servlet as well as for the Portlet case. This will be available in tonight's 3.0.5 snapshot. Feel free to give it a try and check whether you cannot reproduce the issue anymore... Juergen |
dave sinclair commented Hi Juergen, I got the snapshot and still saw this problem. Same stack trace java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 |
Juergen Hoeller commented As part of #10040, we did actually revisit that code once more just earlier today, exactly with respect to bestMatchedPattern storage. As a consequence, I expect this to really be fixed now - in the next 3.0.5 snapshot, coming up in a few hours. Please give it a try... Juergen |
dave sinclair commented That did it! Thanks Juergen dave |
Jozef Hovan commented It seems ok in version 3.0.5. Thanks. |
Jozef Hovan opened SPR-7525 and commented
After upgrade from Spring framework 3.0.3 to 3.0.4 our web application started to throw IndexOutOfBoundsExceptions.
SEVERE: Servlet.service() for servlet ebroker threw exception
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$RequestMappingInfo.bestMatchedPattern(AnnotationMethodHandlerAdapter.java:1017)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$ServletHandlerMethodResolver.resolveHandlerMethod(AnnotationMethodHandlerAdapter.java:613)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:422)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:415)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:788)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:717)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
Affects: 3.0.4
Issue Links:
Referenced from: commits e035477
The text was updated successfully, but these errors were encountered: