1 Reply Latest reply on Jul 24, 2015 10:50 AM by fac586

    java.util.ConcurrentModificationException

    user7107537

      Hey,

      I got this Interval Server Error 500 from Apex Listener with following Exception Stack.

      Can you help me with understanding what exact part of listener is causing it and how to avoid it?

      I understand that something is making List Iterator to fail fast but I don't know what.

       

      WebException [statusCode=500]

      at oracle.dbtools.rt.web.WebException.webException(WebException.java:326)
          at oracle.dbtools.rt.web.WebException.internalError(WebException.java:245)
          at oracle.dbtools.rt.web.WebErrorResponse.internalError(WebErrorResponse.java:101)
          at oracle.dbtools.rt.web.WebErrorResponse.error(WebErrorResponse.java:75)
          at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:132)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
          at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
          at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
          at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
          at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184)
          at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3732)
          at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
          at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
          at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
          at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
          at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
          at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
          at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
          at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
      Caused by: java.util.ConcurrentModificationException
          at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
          at java.util.AbstractList$ListItr.set(AbstractList.java:409)
          at java.util.Collections.sort(Collections.java:121)
          at oracle.dbtools.apex.statistics.Statistics.toString(Statistics.java:227)
          at oracle.dbtools.apex.statistics.Statistics.print(Statistics.java:174)
          at oracle.dbtools.apex.statistics.Statistics.finishRequest(Statistics.java:141)
          at oracle.dbtools.apex.ModApexContext.close(ModApexContext.java:324)
          at oracle.dbtools.common.util.Closeables$2.closeType(Closeables.java:157)
          at oracle.dbtools.common.util.Closeables$2.closeType(Closeables.java:151)
          at oracle.dbtools.common.util.Closeables$BaseCloser.close(Closeables.java:241)
          at oracle.dbtools.common.util.Closeables.close(Closeables.java:97)
          at oracle.dbtools.apex.ModApex.close(ModApex.java:177)
          at oracle.dbtools.apex.ModApex.doPost(ModApex.java:167)
          at oracle.dbtools.apex.ModApex.service(ModApex.java:304)
          at oracle.dbtools.rt.web.HttpEndpointBase.modApex(HttpEndpointBase.java:337)
          at oracle.dbtools.rt.web.HttpEndpointBase.service(HttpEndpointBase.java:130)
      

          ... 14 more

       

      regards,

      George.