• Post Reply Bookmark Topic Watch Topic
  • New Topic

Not able to loop through an array list using JSTL <c:forEach ...> tag  RSS feed

 
shradha pandey
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am getting the error NumberFormatException while trying to loop through an Arraylist {Arraylist<AnnouncementUser> ... ()} .
I have highlighted the jsp snippet where the error is throwing (as per my understanding) .

Below is the error description got in console.


5/23/16 12:50:54:930 IST] 0000002e ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet /WEB-INF/jspf/announcementPage.jsp in application EEEMS_EAR. Exception created : java.lang.NumberFormatException: For input string: "eems_user_id"
at java.lang.Throwable.<init>(Throwable.java:67)
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:59)
at java.lang.Integer.parseInt(Integer.java:458)
at java.lang.Integer.parseInt(Integer.java:508)
at javax.el.ListELResolver.toInteger(ListELResolver.java:373)
at javax.el.ListELResolver.getValue(ListELResolver.java:167)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
at org.apache.el.parser.AstValue.getValue(AstValue.java:102)
at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:263)
at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:774)
at com.ibm._jsp._announcementPage._jspx_meth_c_out_12(_announcementPage.java:1797)
at com.ibm._jsp._announcementPage._jspx_meth_fmt_parseNumber_0(_announcementPage.java:1857)
at com.ibm._jsp._announcementPage._jspx_meth_c_forEach_0(_announcementPage.java:2080)
at com.ibm._jsp._announcementPage._jspx_meth_c_if_21(_announcementPage.java:2131)
at com.ibm._jsp._announcementPage._jspService(_announcementPage.java:343)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1694)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:970)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:508)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:262)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:732)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1045)
at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:531)
at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:103)
at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:96)
at org.apache.tiles.renderer.impl.TemplateAttributeRenderer.write(TemplateAttributeRenderer.java:44)
at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106)
at org.apache.tiles.renderer.impl.ChainedDelegateAttributeRenderer.write(ChainedDelegateAttributeRenderer.java:76)
at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:670)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:336)
at org.apache.tiles.template.InsertAttributeModel.renderAttribute(InsertAttributeModel.java:210)
at org.apache.tiles.template.InsertAttributeModel.end(InsertAttributeModel.java:126)
at org.apache.tiles.jsp.taglib.InsertAttributeTag.doTag(InsertAttributeTag.java:311)
at com.ibm._jsp._eemsLayout._jspx_meth_tiles_insertAttribute_4(_eemsLayout.java:378)
at com.ibm._jsp._eemsLayout._jspService(_eemsLayout.java:222)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1694)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:970)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:508)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:262)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:374)
at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:241)
at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:222)
at org.apache.tiles.renderer.impl.TemplateAttributeRenderer.write(TemplateAttributeRenderer.java:44)
at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:670)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:690)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:644)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:627)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:321)
at org.springframework.web.servlet.view.tiles2.TilesView.renderMergedOutputModel(TilesView.java:124)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:262)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1157)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:927)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:827)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1694)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:970)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:508)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3994)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:945)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1592)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:191)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:516)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:307)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:278)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1662)

[5/23/16 12:50:54:992 IST] 0000002e LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
[5/23/16 12:50:55:008 IST] 0000002e ServletWrappe E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet /WEB-INF/layout/eemsLayout.jsp in application EEEMS_EAR. Exception created : java.lang.NumberFormatException: For input string: "eems_user_id"
at java.lang.Throwable.<init>(Throwable.java:67)
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:59)
at java.lang.Integer.parseInt(Integer.java:458)
at java.lang.Integer.parseInt(Integer.java:508)
at javax.el.ListELResolver.toInteger(ListELResolver.java:373)
at javax.el.ListELResolver.getValue(ListELResolver.java:167)
at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:143)
at org.apache.el.parser.AstValue.getValue(AstValue.java:102)
at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:263)
at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:774)
at com.ibm._jsp._announcementPage._jspx_meth_c_out_12(_announcementPage.java:1797)
at com.ibm._jsp._announcementPage._jspx_meth_fmt_parseNumber_0(_announcementPage.java:1857)
at com.ibm._jsp._announcementPage._jspx_meth_c_forEach_0(_announcementPage.java:2080)
at com.ibm._jsp._announcementPage._jspx_meth_c_if_21(_announcementPage.java:2131)
at com.ibm._jsp._announcementPage._jspService(_announcementPage.java:343)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1694)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:970)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:508)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:262)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:732)
at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:1045)
at org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:531)
at org.apache.tiles.jsp.context.JspTilesRequestContext.include(JspTilesRequestContext.java:103)
at org.apache.tiles.jsp.context.JspTilesRequestContext.dispatch(JspTilesRequestContext.java:96)
at org.apache.tiles.renderer.impl.TemplateAttributeRenderer.write(TemplateAttributeRenderer.java:44)
at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106)
at org.apache.tiles.renderer.impl.ChainedDelegateAttributeRenderer.write(ChainedDelegateAttributeRenderer.java:76)
at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:670)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:336)
at org.apache.tiles.template.InsertAttributeModel.renderAttribute(InsertAttributeModel.java:210)
at org.apache.tiles.template.InsertAttributeModel.end(InsertAttributeModel.java:126)
at org.apache.tiles.jsp.taglib.InsertAttributeTag.doTag(InsertAttributeTag.java:311)
at com.ibm._jsp._eemsLayout._jspx_meth_tiles_insertAttribute_4(_eemsLayout.java:378)
at com.ibm._jsp._eemsLayout._jspService(_eemsLayout.java:222)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1694)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:970)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:508)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:262)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:374)
at org.apache.tiles.servlet.context.ServletTilesRequestContext.forward(ServletTilesRequestContext.java:241)
at org.apache.tiles.servlet.context.ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java:222)
at org.apache.tiles.renderer.impl.TemplateAttributeRenderer.write(TemplateAttributeRenderer.java:44)
at org.apache.tiles.renderer.impl.AbstractBaseAttributeRenderer.render(AbstractBaseAttributeRenderer.java:106)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:670)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:690)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:644)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:627)
at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:321)
at org.springframework.web.servlet.view.tiles2.TilesView.renderMergedOutputModel(TilesView.java:124)
at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:262)
at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1157)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:927)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:827)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:778)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:718)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1694)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:970)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:508)
at com.ibm.ws.webcontainer.servlet.ServletWrapperImpl.handleRequest(ServletWrapperImpl.java:181)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3994)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:276)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:945)
at com.ibm.ws.webcontainer.WSWebContainer.handleRequest(WSWebContainer.java:1592)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:191)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:454)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewRequest(HttpInboundLink.java:516)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.processRequest(HttpInboundLink.java:307)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:278)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:175)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:138)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:204)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:775)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:905)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1662)





Below is the JSP code snippet:
<%String adminLevel = userSession.getAccessLevel();
String announcementStsCd = userSession.getAnnouncementStatus(); System.out.println("announcementStsCd JSP " +announcementStsCd);
String reasonDescColor = "#00BB00";
AnnouncementBean ab = (AnnouncementBean) session.getAttribute("splashbean"); System.out.println("ab.getannuser" +ab.getAnnUser().size());
System.out.println("ab.getReasonDesc" +ab.getReasonDesc()); System.out.println("ab.getStsCd" +ab.getStsCd());System.out.println("ab.getAnnUser" +ab.getAnnUser());System.out.println("ab.getReasonCd" +ab.getReasonCd());
String announcement = ab.getAnnouncement();
String reasonDesc = ab.getReasonDesc();
StringBuffer reasonDescVisible = new StringBuffer(reasonDesc);
boolean defaultRejectReason = true;
if("RJ".equals(announcementStsCd)){
reasonDescColor="red";
reasonDescVisible.insert(6,"ED");
}
//if ("M".equals(adminLevel)) {
%>

<c:set var="ab" value='${sessionScope["splashbean"]}' />
<c:set var="adminLevel" value="${userSession.accessLevel}" />
<c:set var="announcement" value="${ab.announcement }" />
<c:set var="announcementStsCd" value="${announcementStsCd }" />
<c:set var="checked" value="checked" />
<c:set var="defaultRejectReason" value="true" />
<c:if test="${RJ == announcementStsCd}"> <c:set var="reasonDescColor" value="red" /><c:set var="reasonDescVisible" value="('6',ED)" /> </c:if>
<c:set var="reasonDesc" value="${ab.reasonDesc}" />


<c:set var="lau" value="${ab.annUser}" />
<c:if test="${!empty lau}">
<c:forEach items="${lau}" var="userObj" >
<cut value="abcd" /> <cut value="efgh"/>
<tr bgcolor="#BBDDFF">

<%-- <fmt:parseNumber var="i" integerOnly="true" value="${lau.eems_user_id}" /> --%>

<c:if test="${ '1' == userObj.acss_lvl_cd}" >
<td align="center" class="text"><input type="radio" name="rgroup" value="1" checked="<cut value="${checked }" />" />1 </td>
</c:if>
<c:if test="${ '2' == userObj.acss_lvl_cd}" >
<td align="center" class="text"><input type="radio" name="rgroup" value="2" checked="<cut value="${checked }" />" />2</td>
</c:if>
<c:if test="${ 'M' == userObj.acss_lvl_cd}" >
<td align="center" class="text"><input type="radio" name="rgroup" value="M" checked="<cut value="${checked }" />" />Admin</td>
</c:if>
<td align="center" class="text"><input type="checkbox" name="modify" id="modify" onClick="checkOther(1)"></td>
<td align="center" class="text"><input type="checkbox" name="delete" id="delete" onClick="checkOther(2)"></td>
</tr>
</c:forEach>
</c:if>



The list of values obtained from Database is which i have to loop thru in the JSP page using JSTL are as below :
[5/23/16 12:50:54:571 IST] 0000002e SystemOut O acss lvl cd M
[5/23/16 12:50:54:571 IST] 0000002e SystemOut O eems usr id jpuniya
[5/23/16 12:50:54:571 IST] 0000002e SystemOut O acss lvl cd 1
[5/23/16 12:50:54:571 IST] 0000002e SystemOut O eems usr id kanasur
[5/23/16 12:50:54:571 IST] 0000002e SystemOut O acss lvl cd M
[5/23/16 12:50:54:571 IST] 0000002e SystemOut O eems usr id pmattam
[5/23/16 12:50:54:571 IST] 0000002e SystemOut O acss lvl cd M
[5/23/16 12:50:54:571 IST] 0000002e SystemOut O eems usr id pkandi4
[5/23/16 12:50:54:571 IST] 0000002e SystemOut O acss lvl cd M
[5/23/16 12:50:54:571 IST] 0000002e SystemOut O eems usr id ehuang1
[5/23/16 12:50:54:571 IST] 0000002e SystemOut O acss lvl cd 2
[5/23/16 12:50:54:571 IST] 0000002e SystemOut O eems usr id pmatta1
[5/23/16 12:50:54:571 IST] 0000002e SystemOut O acss lvl cd M
[5/23/16 12:50:54:571 IST] 0000002e SystemOut O eems usr id vaedave
[5/23/16 12:50:54:571 IST] 0000002e SystemOut O acss lvl cd M
[5/23/16 12:50:54:571 IST] 0000002e SystemOut O eems usr id spande14



Please help.

Regards
Srada
 
Paul Clapham
Sheriff
Posts: 22527
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

I think you have mis-diagnosed your problem. The error message says this:

Exception created : java.lang.NumberFormatException: For input string: "eems_user_id"


This doesn't have anything to do with looping through a list. It has something to do with trying to interpret a string as a number, except that "eems_user_id" isn't a number. That would probably be this code:

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!