java.util.ConcurrentModificationException

Spring JIRA | Felix Kurth | 3 years ago
  1. 0

    If the first request(s) to a repository after starting the application server comes in multithreaded, a Concurentmodification exception is thrown. All subsequent requests are working. Seems releated to: DATACMNS-362 SEVERE: Servlet.service() for servlet [yes] in context with path [/yes] threw exception [Request processing failed; nested exception is java.util.ConcurrentModificationException] with root cause java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:926) at java.util.HashMap$KeyIterator.next(HashMap.java:960) at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1067) at org.springframework.data.repository.support.Repositories.getRepoInfoFor(Repositories.java:183) at org.springframework.data.repository.support.Repositories.getRepositoryInformationFor(Repositories.java:130) at org.springframework.data.repository.support.DomainClassConverter.matches(DomainClassConverter.java:86) at org.springframework.core.convert.support.GenericConversionService$ConvertersForPair.getConverter(GenericConversionService.java:617) at org.springframework.core.convert.support.GenericConversionService$Converters.getRegisteredConverter(GenericConversionService.java:523) at org.springframework.core.convert.support.GenericConversionService$Converters.find(GenericConversionService.java:507) at org.springframework.core.convert.support.GenericConversionService.getConverter(GenericConversionService.java:240) at org.springframework.core.convert.support.GenericConversionService.canConvert(GenericConversionService.java:135) at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:159) at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:93) at org.springframework.beans.TypeConverterSupport.doConvert(TypeConverterSupport.java:64) at org.springframework.beans.TypeConverterSupport.convertIfNecessary(TypeConverterSupport.java:47) at org.springframework.validation.DataBinder.convertIfNecessary(DataBinder.java:582) at org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.resolveArgument(AbstractNamedValueMethodArgumentResolver.java:102) at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:79) at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:157) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:124) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:748) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:689) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:876) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:931) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:822) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)

    Spring JIRA | 3 years ago | Felix Kurth
    java.util.ConcurrentModificationException
  2. 0

    If the first request(s) to a repository after starting the application server comes in multithreaded, a Concurentmodification exception is thrown. All subsequent requests are working. Seems releated to: DATACMNS-362 SEVERE: Servlet.service() for servlet [yes] in context with path [/yes] threw exception [Request processing failed; nested exception is java.util.ConcurrentModificationException] with root cause java.util.ConcurrentModificationException at java.util.HashMap$HashIterator.nextEntry(HashMap.java:926) at java.util.HashMap$KeyIterator.next(HashMap.java:960) at java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1067) at org.springframework.data.repository.support.Repositories.getRepoInfoFor(Repositories.java:183) at org.springframework.data.repository.support.Repositories.getRepositoryInformationFor(Repositories.java:130) at org.springframework.data.repository.support.DomainClassConverter.matches(DomainClassConverter.java:86) at org.springframework.core.convert.support.GenericConversionService$ConvertersForPair.getConverter(GenericConversionService.java:617) at org.springframework.core.convert.support.GenericConversionService$Converters.getRegisteredConverter(GenericConversionService.java:523) at org.springframework.core.convert.support.GenericConversionService$Converters.find(GenericConversionService.java:507) at org.springframework.core.convert.support.GenericConversionService.getConverter(GenericConversionService.java:240) at org.springframework.core.convert.support.GenericConversionService.canConvert(GenericConversionService.java:135) at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:159) at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:93) at org.springframework.beans.TypeConverterSupport.doConvert(TypeConverterSupport.java:64) at org.springframework.beans.TypeConverterSupport.convertIfNecessary(TypeConverterSupport.java:47) at org.springframework.validation.DataBinder.convertIfNecessary(DataBinder.java:582) at org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.resolveArgument(AbstractNamedValueMethodArgumentResolver.java:102) at org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:79) at org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:157) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:124) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:748) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:689) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:876) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:931) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:822) at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)

    Spring JIRA | 3 years ago | Felix Kurth
    java.util.ConcurrentModificationException
  3. 0

    ConcurrentModificationException in HttpClientRetrieveFileTransfer.cancel

    Eclipse Bugzilla | 3 years ago | sw
    java.util.ConcurrentModificationException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    java.util.ConcurrentModificationException

    GitHub | 2 years ago | wgent
    java.util.ConcurrentModificationException

  1. Cezary Draus 1 times, last 6 months ago
1 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.util.ConcurrentModificationException

    No message provided

    at java.util.HashMap$HashIterator.nextEntry()
  2. Java RT
    Collections$UnmodifiableCollection$1.next
    1. java.util.HashMap$HashIterator.nextEntry(HashMap.java:926)
    2. java.util.HashMap$KeyIterator.next(HashMap.java:960)
    3. java.util.Collections$UnmodifiableCollection$1.next(Collections.java:1067)
    3 frames
  3. Spring Data Core
    DomainClassConverter.matches
    1. org.springframework.data.repository.support.Repositories.getRepoInfoFor(Repositories.java:183)
    2. org.springframework.data.repository.support.Repositories.getRepositoryInformationFor(Repositories.java:130)
    3. org.springframework.data.repository.support.DomainClassConverter.matches(DomainClassConverter.java:86)
    3 frames
  4. Spring Core
    GenericConversionService.canConvert
    1. org.springframework.core.convert.support.GenericConversionService$ConvertersForPair.getConverter(GenericConversionService.java:617)
    2. org.springframework.core.convert.support.GenericConversionService$Converters.getRegisteredConverter(GenericConversionService.java:523)
    3. org.springframework.core.convert.support.GenericConversionService$Converters.find(GenericConversionService.java:507)
    4. org.springframework.core.convert.support.GenericConversionService.getConverter(GenericConversionService.java:240)
    5. org.springframework.core.convert.support.GenericConversionService.canConvert(GenericConversionService.java:135)
    5 frames
  5. Spring Beans
    TypeConverterSupport.convertIfNecessary
    1. org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:159)
    2. org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:93)
    3. org.springframework.beans.TypeConverterSupport.doConvert(TypeConverterSupport.java:64)
    4. org.springframework.beans.TypeConverterSupport.convertIfNecessary(TypeConverterSupport.java:47)
    4 frames
  6. Spring Context
    DataBinder.convertIfNecessary
    1. org.springframework.validation.DataBinder.convertIfNecessary(DataBinder.java:582)
    1 frame
  7. Spring
    InvocableHandlerMethod.invokeForRequest
    1. org.springframework.web.method.annotation.AbstractNamedValueMethodArgumentResolver.resolveArgument(AbstractNamedValueMethodArgumentResolver.java:102)
    2. org.springframework.web.method.support.HandlerMethodArgumentResolverComposite.resolveArgument(HandlerMethodArgumentResolverComposite.java:79)
    3. org.springframework.web.method.support.InvocableHandlerMethod.getMethodArgumentValues(InvocableHandlerMethod.java:157)
    4. org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:124)
    4 frames
  8. Spring MVC
    FrameworkServlet.doGet
    1. org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
    2. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:748)
    3. org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:689)
    4. org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)
    5. org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945)
    6. org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:876)
    7. org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:931)
    8. org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:822)
    8 frames
  9. JavaServlet
    HttpServlet.service
    1. javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
    1 frame