struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shashikiran M" <shashikira...@mphasis.com>
Subject RE: ArrayIndexOutOfBoundsException while using <logic:iterate>
Date Tue, 03 Sep 2002 06:07:07 GMT
Thanks John,

Will try to check the code on a different engine. After some debugging,
i guess that the EvermindJSPWriter might be skipping the bounds of the
string[] containing the static HTMLs.

--Shashi.

-----Original Message-----
From: John Raley [mailto:jb_raley@mindspring.com]
Sent: Tuesday, September 03, 2002 12:08 AM
To: Struts Users Mailing List
Subject: Re: ArrayIndexOutOfBoundsException while using <logic:iterate>


Looks to me like it's originating in EvermindJSPWriter, not from struts.

Shashikiran M wrote:

>Hi John,
>
>I'm stil not able to figure it out.
>
>I've put in the stack trace if you might want to take a look. Apart
from
>the <logic:iterate> tag, i'm using <logic:equal>, <logic:notEqual>,
><logic:present>.
>
>/*********** stack trace starts here ******************/
>java.lang.ArrayIndexOutOfBoundsException
>	at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
>J2EE].server.http.EvermindJSPWriter.print(EvermindJSPWriter.java:632)
>	at
>org.apache.struts.util.ResponseUtils.writePrevious(ResponseUtils.java:1
8
>1)
>	at
>org.apache.struts.taglib.logic.IterateTag.doAfterBody(IterateTag.java:4
0
>2)
>	at
>_jsp._OrderEntryDetails._jspService(_OrderEntryDetails.java:1936)
>	[SRC:/jsp/Details.jsp:483]
>	at com.orionserver[Oracle9iAS (9.0.3.0.0) Containers for
>J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
>	at
>oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:510
)
>	at
>oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:257)
>	at
>oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:423)
>	at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:346)
>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
>	at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
>J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatc
h
>er.java:674)
>	at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
>J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletReque
s
>tDispatcher.java:276)
>	at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
>J2EE].server.http.ServletRequestDispatcher.forward(ServletRequestDispat
c
>her.java:188)
>	at
>org.apache.struts.action.ActionServlet.processActionForward(ActionServl
e
>t.java:1759)
>	at
>org.apache.struts.action.ActionServlet.process(ActionServlet.java:1596)
>	at
>org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:195)
>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
>	at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
>	at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
>J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatc
h
>er.java:674)
>	at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
>J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletReque
s
>tDispatcher.java:276)
>	at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
>J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.
j
>ava:736)
>	at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
>J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:244)
>	at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for
>J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
>
>/*********** stack trace ends here ***********/
>
>--Shashi.
>
>
>-----Original Message-----
>From: John Raley [mailto:jb_raley@mindspring.com]
>Sent: Sunday, September 01, 2002 10:09 PM
>To: Struts Users Mailing List
>Subject: Re: ArrayIndexOutOfBoundsException while using <logic:iterate>
>
>
>Hi Shashi,
>
>Where does the page generation stop?  I don't think logic:iterate
itself
>
>will walk off the end of a list (and even if it did that would throw 
>IndexOutOfBounds, not ArrayIndexOutOfBounds).  It might be thrown from 
>some other code.
>
>John
>Shashikiran M wrote:
>
>  
>
>>Hi All,
>>
>>Has any one faced with "ArrayIndexOutOfBoundsException" while using
>>nested <logic:iterate> tags?
>>Presently my implementation is as follows:
>>
>><logic:iterate id="ambiguityDet" name="OrderEntryFormBean"
>>property="ambiguityList"
>>type="com.tycoelectronics.usosp.order.util.AmbiguityDetail" >
>>
>>	<logic:iterate id="errMsg" name="ambiguityDet" property="errors"
>>type="java.lang.String">
>>		{... my code to display errors in id="errMsg" ...}
>>           </logic:iterate>
>>
>>           <logic:iterate id="partSearchResult" name="ambiguityDet"
>>property="partList"
>>type="com.tycoelectronics.usosp.part.util.PartSearchResult">
>>		{... my code to display data in id="partSearchResult"
>>...}
>>           </logic:iterate>
>>
>></logic:iterate>
>>
>>The properties "ambiguityList", "errors" and "partList" are
ArrayLists.
>>
>>Please let me know your experience with <logic:iterate>.
>>
>>Thanks in advance.
>>
>>Regards,
>>Shashi.
>>
>>--
>>To unsubscribe, e-mail:
>>    
>>
><mailto:struts-user-unsubscribe@jakarta.apache.org>
>  
>
>>For additional commands, e-mail:
>>    
>>
><mailto:struts-user-help@jakarta.apache.org>
>  
>
>> 
>>
>>    
>>
>
>
>  
>


-- 
Check it out: Map -> JavaBean
http://dynclass.sourceforge.net/




--
To unsubscribe, e-mail:
<mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message