Uploaded image for project: 'Marmotta (Retired)'
  1. Marmotta (Retired)
  2. MARMOTTA-277

Fix the Monitoring (Task) Service

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.0-incubating
    • 3.1-incubating
    • Platform
    • None

    Description

      In some installations, the current tasks list in the admin-ui is filled up with entries that are no longer valid (i.e. tasks that are already finished)

      Now i found the following stacktrace in tomcat's localhost.log:
      Jul 23, 2013 4:40:49 PM org.apache.catalina.core.StandardWrapperValve invoke
      SEVERE: Servlet.service() for servlet [default] in context with path [] threw exception
      org.jboss.resteasy.spi.UnhandledException: java.util.ConcurrentModificationException
      at org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:365)
      at org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:233)
      at org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:209)
      at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:557)
      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:524)
      at org.jboss.resteasy.core.SynchronousDispatcher.invokePropagateNotFound(SynchronousDispatcher.java:169)
      at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:212)
      at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:59)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:186)
      at org.apache.marmotta.platform.core.filters.ModuleResourceFilter.doFilter(ModuleResourceFilter.java:163)
      at org.apache.marmotta.platform.core.filters.ModuleResourceFilter$Proxy$$$_WeldClientProxy.doFilter(ModuleResourceFilter$Proxy$$$_We
      ldClientProxy.java)
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:183)
      at org.apache.marmotta.platform.core.filters.MarmottaServerNameFilter.doFilter(MarmottaServerNameFilter.java:104)
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      at org.apache.marmotta.platform.core.filters.TemplatingFilter.doFilter(TemplatingFilter.java:176)
      at org.apache.marmotta.platform.core.filters.TemplatingFilter$Proxy$$$_WeldClientProxy.doFilter(TemplatingFilter$Proxy$$$_WeldClient
      Proxy.java)
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:183)
      at org.apache.marmotta.platform.security.filters.MarmottaAccessControlFilter.doFilter(MarmottaAccessControlFilter.java:142)
      at org.apache.marmotta.platform.security.filters.MarmottaAccessControlFilter$Proxy$_$$_WeldClientProxy.doFilter(MarmottaAccessControlF
      ilter$Proxy$_$$_WeldClientProxy.java)
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181)
      at org.apache.marmotta.platform.user.filters.MarmottaAuthenticationFilter.doFilter(MarmottaAuthenticationFilter.java:163)
      at org.apache.marmotta.platform.user.filters.MarmottaAuthenticationFilter$Proxy$_$$_WeldClientProxy.doFilter(MarmottaAuthenticationFil
      ter$Proxy$_$$_WeldClientProxy.java)
      [...]
      Caused by: java.util.ConcurrentModificationException
      at java.util.WeakHashMap$HashIterator.nextEntry(WeakHashMap.java:784)
      at java.util.WeakHashMap$ValueIterator.next(WeakHashMap.java:811)
      at org.apache.marmotta.platform.core.services.task.TaskManagerServiceImpl.getTasks(TaskManagerServiceImpl.java:99)
      at org.apache.marmotta.platform.core.services.task.TaskManagerServiceImpl.getTasksByGroup(TaskManagerServiceImpl.java:182)
      at org.apache.marmotta.platform.core.services.task.TaskManagerServiceImpl$Proxy$$$_WeldClientProxy.getTasksByGroup(TaskManagerServiceImpl$Proxy$$$_WeldClientProxy.java)
      at org.apache.marmotta.platform.core.webservices.task.TaskManagerWebService.list(TaskManagerWebService.java:69)
      at org.apache.marmotta.platform.core.webservices.task.TaskManagerWebService$Proxy$$$_WeldClientProxy.list(TaskManagerWebService$Proxy$$$_WeldClientProxy.java)
      at sun.reflect.GeneratedMethodAccessor73.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:616)
      at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:167)
      at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:257)
      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:222)
      at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:211)
      at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:542)
      ... 50 more

      Attachments

        Activity

          People

            wikier Sergio Fernández
            jakob Jakob Frank
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: