Article - CS256473

Internal Server Error when opening SPM pages and WebUI log contains error "java.lang.IndexOutOfBoundsException: Index: 2, Size: 1" in Servigistics Service Parts Management

Modified: 10-May-2019   


Applies To

  • Servigistics Service Parts Management 10.7 to 12.0.1.0

Description

  • When opening iPWS(Interactive Planner Worksheet) page UI displays exception: Internal Server Error
  • Causal Forecast Detail screen displays error: We're sorry, but an unexpected error has occurred
  • iPWS > Orders tab displays error: We're sorry, but an unexpected error has occurred 
  • WebUI.log contains error messages:
ERROR com.svg.req - Request processing failed; nested exception is java.lang.IndexOutOfBoundsException: Index: 2, Size: 1
org.springframework.web.util.NestedServletException: Request processing failed; nested exception is java.lang.IndexOutOfBoundsException: Index: 2, Size: 1
    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:948)
    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:827)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:812)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.svg.core.webapp.filter.SvgFilter.callChainFilter(SvgFilter.java:58)
    at com.svg.core.webapp.filter.LastFilter.callChainFilter(LastFilter.java:18)
    at com.svg.core.webapp.filter.SvgFilter.doFilter(SvgFilter.java:36)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
    at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
    at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
    at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
    at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
    at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
    at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.svg.core.webapp.filter.SvgFilter.callChainFilter(SvgFilter.java:58)
    at com.svg.core.webapp.filter.SecurityAdapterFilter.callSuperChainFilter(SecurityAdapterFilter.java:134)
    at com.svg.core.webapp.filter.SecurityAdapterFilter.access$000(SecurityAdapterFilter.java:22)
    at com.svg.core.webapp.filter.SecurityAdapterFilter$1.execute(SecurityAdapterFilter.java:115)
    at com.svg.core.security.SecurityTemplate.execute(SecurityTemplate.java:60)
    at com.svg.core.webapp.filter.SecurityAdapterFilter.callChainFilter(SecurityAdapterFilter.java:112)
    at com.svg.core.webapp.filter.SvgFilter.doFilter(SvgFilter.java:36)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.svg.core.webapp.filter.SvgFilter.callChainFilter(SvgFilter.java:58)
    at com.svg.core.webapp.filter.SvgFilter.doFilter(SvgFilter.java:36)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.svg.core.webapp.filter.SvgFilter.callChainFilter(SvgFilter.java:58)
    at com.svg.core.webapp.filter.SecurityContextFilter.callSuperChainFilter(SecurityContextFilter.java:124)
    at com.svg.core.webapp.filter.SecurityContextFilter.access$000(SecurityContextFilter.java:24)
    at com.svg.core.webapp.filter.SecurityContextFilter$1.execute(SecurityContextFilter.java:107)
    at com.svg.core.security.SecurityTemplate.execute(SecurityTemplate.java:60)
    at com.svg.core.webapp.filter.SecurityContextFilter.callChainFilter(SecurityContextFilter.java:104)
    at com.svg.core.webapp.filter.SvgFilter.doFilter(SvgFilter.java:36)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:233)
    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.svg.core.webapp.filter.SvgFilter.callChainFilter(SvgFilter.java:58)
    at com.svg.core.webapp.filter.Security.callChainFilter(Security.java:303)
    at com.svg.core.webapp.filter.SvgFilter.doFilter(SvgFilter.java:36)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.svg.core.webapp.filter.SvgFilter.callChainFilter(SvgFilter.java:58)
    at com.svg.core.webapp.filter.SvgFilter.doFilter(SvgFilter.java:36)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.svg.core.webapp.filter.SvgFilter.callChainFilter(SvgFilter.java:58)
    at com.svg.core.webapp.filter.SvgFilter.doFilter(SvgFilter.java:36)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.svg.core.webapp.filter.SvgFilter.callChainFilter(SvgFilter.java:58)
    at com.svg.core.webapp.filter.LoggingFilter.callChainFilter(LoggingFilter.java:41)
    at com.svg.core.webapp.filter.SvgFilter.doFilter(SvgFilter.java:36)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at com.sec.spm.filter.SPMSingSignOnFilter.doFilter(SPMSingSignOnFilter.java:87)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3436)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
    at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)
Caused by: java.lang.IndexOutOfBoundsException: Index: 2, Size: 1
    at java.util.ArrayList.rangeCheckForAdd(ArrayList.java:612)
    at java.util.ArrayList.add(ArrayList.java:426)
    at com.svg.core.model.ui.MruList.addMruItem(MruList.java:77)
    at com.svg.core.service.mru.impl.MruListServiceImplSupport.getMrus(MruListServiceImplSupport.java:73)
    at com.svg.core.service.mru.impl.MruListServiceImplSupport.getMruList(MruListServiceImplSupport.java:44)
    at com.svg.core.service.mru.impl.MruListServiceImplSupport$$FastClassByCGLIB$$32df049.invoke(<generated>)

    at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
    at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
    at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:51)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
    at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
    at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
    at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631)
    at com.svg.core.service.mru.impl.LocationMruListServiceImpl$$EnhancerByCGLIB$$74844a47.getMruList(<generated>)
    at com.svg.core.webapp.mrupicker.MruContext.getMruList(MruContext.java:58)
    at com.svg.core.webapp.mrupicker.MruContext.getMruList(MruContext.java:72)
    at com.svg.core.webapp.mrupicker.MruContext.getMruList(MruContext.java:62)
    at com.svg.core.webapp.mrupicker.MruContext$$FastClassByCGLIB$$2b669df8.invoke(<generated>)
    at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
    at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:132)
    at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:120)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631)
    at com.svg.core.webapp.mrupicker.MruContext$$EnhancerByCGLIB$$3ccbcfae.getMruList(<generated>)
    at com.svg.planning.webapp.controller.pws.PwsController.getCurrentLocId(PwsController.java:501)
    at com.svg.planning.webapp.controller.pws.PwsController.getMruSelectedPartLocPair(PwsController.java:480)
    at com.svg.planning.webapp.controller.pws.PwsController.initializePwsUserRights(PwsController.java:280)
    at com.svg.planning.webapp.controller.pws.PwsController.pwsView(PwsController.java:188)
    at com.svg.planning.webapp.controller.pws.PwsController$$FastClassByCGLIB$$c10d18fb.invoke(<generated>)
    at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
    at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:627)
    at com.svg.planning.webapp.controller.pws.PwsController$$EnhancerByCGLIB$$10e5ed3a.pwsView(<generated>)
  • Or Sometimes the Error message looks like below:
ERROR com.svg.planning.webapp.controller.pws.forecast.parameter.ForecastParameters - 
java.lang.ClassCastException
  • iPWS screen shows Forbidden with some SPM versions
User-added image
This is a printer-friendly version of Article 256473 and may be out of date. For the latest version click CS256473