Hi. I have a JSP that receives a bean from a Struts action (servlet). The bean is a List that is the result of a Hibernate query. The list contains pojos that are received as search results from the back end. These pojos are in a detached state, and the session has been closed after the query. Each pojo contains two attributes that are also lists (i.e. a list of names, and a list of addresses). I am iterating through the list containing the pojo beans, then the attribute of each bean that contains the list of names, then the attribute of each bean that contains the list of addresses. The embedded lists have been loaded with Hibernate.initialize() and the data is being displayed correctly.
I am receiving the exception shown below from the JSP. I looked up the documentation for the exception, but I do not understand what modification the JSP (or another thread) is making to the List(s). Each list is only being displayed by the view. Has anybody experienced this problem with a detached Hibernate pojo that contains embedded lists?
Thanks!
Hibernate version: 3.2
java.util.ConcurrentModificationException java.util.AbstractList$Itr.checkForComodification(Unknown Source) java.util.AbstractList$Itr.next(Unknown Source) org.apache.struts.taglib.logic.IterateTag.doAfterBody(IterateTag.java:356) org.apache.jsp.WEB_002dINF.tiles.quicksearchresults_jsp._jspService(quicksearchresults_jsp.java:477) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:390) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085) org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263) org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398) org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1085) org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263) org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:398) org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318) org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:241) org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) javax.servlet.http.HttpServlet.service(HttpServlet.java:690) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
Name and version of the database you are using: Oracle9i
|