Opening VS gives the error "Your Virtual Service edit session has become invalid because of the following error: {"error":{"type":"IndexOutOfBoundsException","message":"Index: 12, Size: 12"}}."
search cancel

Opening VS gives the error "Your Virtual Service edit session has become invalid because of the following error: {"error":{"type":"IndexOutOfBoundsException","message":"Index: 12, Size: 12"}}."

book

Article ID: 204915

calendar_today

Updated On:

Products

CA Cloud Test Mobile CA Application Test

Issue/Introduction

When opening VS from DevTest Portal-->Manage-->Virtual Services-->Any VS gives the error "Your Virtual Service edit session has become invalid because of the following error: {"error":{"type":"IndexOutOfBoundsException","message":"Index: 12, Size: 12"}}."

VSE log doesn't show the error but registry log shows the below errors multiple times:

2020-12-08 13:00:14,233Z (07:00) [ServerRequestResponder 8233] ERROR com.itko.lisa.dradis.comm.DradisRestStrategy - Failed sending component '[email protected]:2010', saving to dradis cache.
2020-12-08 13:00:14,233Z (07:00) [ServerRequestResponder 8233] ERROR com.itko.lisa.dradis.comm.DradisRestStrategy - Exception: timeout

and below error when Portal throws the reported error.

2020-12-09 18:29:35,166Z (12:29) [qtp1742259874-805561] ERROR com.ca.sv.invoke.controller.v2.BuilderSessionController - Index: 12, Size: 12
java.lang.IndexOutOfBoundsException: Index: 12, Size: 12
        at java.util.ArrayList.rangeCheck(ArrayList.java:653)
        at java.util.ArrayList.get(ArrayList.java:429)
        at java.util.Collections$SynchronizedList.get(Collections.java:2417)
        at org.mapdb.StoreWAL.walGetData(StoreWAL.java:416)
        at org.mapdb.StoreWAL.get2(StoreWAL.java:638)
        at org.mapdb.Store.get(Store.java:253)
        at org.mapdb.Engine$CloseOnJVMShutdown.get(Engine.java:453)
        at org.mapdb.DB.commit(DB.java:2602)
        at com.ca.devtest.util.collections.FileBackedMap.doMapAction(FileBackedMap.java:619)
        at com.ca.devtest.util.collections.FileBackedMap.readAction(FileBackedMap.java:580)
        at com.ca.devtest.util.collections.FileBackedMap.get(FileBackedMap.java:264)
        at com.ca.devtest.util.collections.FileBackedMap.lambda$put$7(FileBackedMap.java:275)
        at com.ca.devtest.util.collections.FileBackedMap.doMapAction(FileBackedMap.java:618)
        at com.ca.devtest.util.collections.FileBackedMap.writeAction(FileBackedMap.java:588)
        at com.ca.devtest.util.collections.FileBackedMap.put(FileBackedMap.java:273)
        at java_util_Map$put$11.call(Unknown Source)
        at com.ca.sv.invoke.service.v2.mapping.MappingService.addOrUpdateSessionMapping(MappingService.groovy:36)
        at com.ca.sv.invoke.service.v2.mapping.MappingService$addOrUpdateSessionMapping$3.call(Unknown Source)
        at com.ca.sv.invoke.service.v2.mapping.BuilderSessionMappingService.generateBuilderSessionPublicId(BuilderSessionMappingService.groovy:28)
        at com.ca.sv.invoke.service.v2.mapping.BuilderSessionMappingService$generateBuilderSessionPublicId$0.call(Unknown Source)
        at com.ca.sv.invoke.service.v2.BuilderSessionService.addBuilderSession(BuilderSessionService.groovy:101)
        at com.ca.sv.invoke.service.v2.BuilderSessionService$addBuilderSession$0.call(Unknown Source)
        at com.ca.sv.invoke.controller.v2.BuilderSessionController.addBuilderSession(BuilderSessionController.groovy:153)
        at com.ca.sv.invoke.controller.v2.BuilderSessionController.addBuilderSession(BuilderSessionController.groovy)
        at org.grails.core.DefaultGrailsControllerClass$MethodHandleInvoker.invoke(DefaultGrailsControllerClass.java:223)
        at org.grails.core.DefaultGrailsControllerClass.invoke(DefaultGrailsControllerClass.java:188)
        at org.grails.web.mapping.mvc.UrlMappingsInfoHandlerAdapter.handle(UrlMappingsInfoHandlerAdapter.groovy:90)
        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:967)
        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:901)
        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:970)
        at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:872)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:595)
        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:846)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
        at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1689)
        at com.ca.devtest.http.XSSFilter.doFilter(XSSFilter.java:72)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
        at org.springframework.boot.web.filter.ApplicationContextHeaderFilter.doFilterInternal(ApplicationContextHeaderFilter.java:55)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
        at com.ca.devtest.acl.servlet.filters.RemoteAuthenticationFilter.doFilter(RemoteAuthenticationFilter.java:241)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
        at org.springframework.boot.actuate.trace.WebRequestTraceFilter.doFilterInternal(WebRequestTraceFilter.java:111)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
        at org.grails.web.servlet.mvc.GrailsWebRequestFilter.doFilterInternal(GrailsWebRequestFilter.java:77)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
        at org.grails.web.filters.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:67)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
        at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
        at org.springframework.web.filter.CorsFilter.doFilterInternal(CorsFilter.java:96)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
        at org.springframework.boot.actuate.autoconfigure.MetricsFilter.doFilterInternal(MetricsFilter.java:103)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
        at org.springframework.boot.web.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:130)
        at org.springframework.boot.web.support.ErrorPageFilter.access$000(ErrorPageFilter.java:66)
        at org.springframework.boot.web.support.ErrorPageFilter$1.doFilterInternal(ErrorPageFilter.java:105)
        at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
        at org.springframework.boot.web.support.ErrorPageFilter.doFilter(ErrorPageFilter.java:123)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1676)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:581)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
        at org.eclipse.jetty.server.Server.handle(Server.java:524)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:319)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:253)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
        at org.eclipse.jetty.io.ssl.SslConnection.onFillable(SslConnection.java:202)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
        at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
        at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
        at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
        at java.lang.Thread.run(Thread.java:745)

Environment

Release : 10.5

Component : CA Service Virtualization

Cause

Looks like some issue between Enterprise Dashboard and Registry caused the issue.

Resolution

Clearing/Renaming vseRecording/VSE_2013, vsBuilderSessions/VSE_2013 folders and restarting Registry and VSE resolved the issue.