Announcement Announcement Module
Collapse
No announcement yet.
ConcurrentModificationException while retrieving values using hibernate Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ConcurrentModificationException while retrieving values using hibernate

    Hi all ,
    I had an exception while retrieving values using hibernate.

    The Exception is:
    Code:
    javax.servlet.ServletException: Error in EventDAO.findByPK() :: java.util.ConcurrentModificationException
     org.springframework.web.servlet.FrameworkServlet.serviceWrapper(FrameworkServlet.java:402)
     org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:346)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:416)
    
    root cause
    
    com.smartreach.common.exception.DataAccessException: Error in EventDAO.findByPK() :: java.util.ConcurrentModificationException
     com.smartreach.hibernate.DAO.Events.EventsDAO.findByPK(EventsDAO.java:53)
     com.smartreach.spring.service.EventsService.retrieveEvents(EventsService.java:104)
     com.smartreach.spring.controller.ViewEventsController.formBackingObject(ViewEventsController.java:59)
    
     org.springframework.web.servlet.mvc.AbstractFormController.getErrorsForNewForm(AbstractFormController.java:325)
     org.springframework.web.servlet.mvc.AbstractFormController.showNewForm(AbstractFormController.java:306)
     org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:248)
     org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:128)
     org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
     org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:684)
     org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:625)
     org.springframework.web.servlet.FrameworkServlet.serviceWrapper(FrameworkServlet.java:386)
     org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:346)
    
     javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
     javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:416)
    I attached the Mapping file and Persistence class and DAO classes in a Text file named as source files.txt due to space consumption.

    Please help me to resolve the problem.

    thanks in advance,
    Dinesh
Working...
X