2010-11-02 73 views
1

我有一個簡單的Spring MVC應用程序,帶有類似REST的Web服務。當我加載測試這個應用程序時 - 它會引發以下異常。我不知道爲什麼會發生這種情況,但它僅在負載測試期間發生 - 因此在負載下。加載的Spring MVC IndexOutOfBounds

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0  
    java.util.ArrayList.rangeCheck(ArrayList.java:571) 
    java.util.ArrayList.get(ArrayList.java:349) 
    org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$RequestMappingInfo.bestMatchedPattern(AnnotationMethodHandlerAdapter.java:1017) 
    org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$ServletHandlerMethodResolver.resolveHandlerMethod(AnnotationMethodHandlerAdapter.java:613) 
    org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:422) 
    org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:415) 
    org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:788) 
    org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:717) 
    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644) 
    org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:637) 
    javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 

這種異常的原因是什麼?

回答