?
Solved

Getting Exception jsp.error.overflow

Posted on 2007-11-14
4
Medium Priority
?
1,061 Views
Last Modified: 2008-02-01
Hi Guys

I am getting the follwoing exception

The following remote exception has occurred during processing: "java.io.IOException: jsp.error.overflow".java.io.IOException: jsp.error.overflow

I get this error when the following code is executed. All this code does is gets the countries and states from a bean and stores into an array. Also if I limit size of foreach to 5, then the code runs fine. Would anyone know anything about this error and how to remove it.

  <wcbase:useBean id="countryBean2" classname="com.ibm.commerce.user.beans.CountryStateListDataBean">
       <c:set target="${countryBean2}" property="countryCode" value="${country.code}"/>
   </wcbase:useBean>
 
<script language="javascript" type="text/javascript">
//get the list of all countries and states available from the database.
function loadCountryStateArray()
{
var countries = new Array();
<c:forEach var="country" items="${countryBean2.countries}" end="3">
      countries["<c:out value="${country.code}"/>"] = new Object();
      countries["<c:out value="${country.code}"/>"].name = "<c:out value="${country.displayName}"/>";
      
      <c:if test="${!empty country.states}">
            <c:forEach var="state" items="${country.states}" varStatus="counter">
                  <c:if test="${counter.index == 0}">
                        countries["<c:out value="${country.code}"/>"].states = new Object();
                  </c:if>
                  countries["<c:out value="${country.code}"/>"].states["<c:out value="${state.code}"/>"] = "<c:out value="${state.displayName}"/>";
            </c:forEach>
      </c:if>
</c:forEach>
}
</script>
0
Comment
Question by:huzefaq
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 28

Accepted Solution

by:
rrz earned 2000 total points
ID: 20286388
It is the buffer overflowing ?  The default is to autoflush. So, maybe I'm guessing wrong.
How big is output of the forEach ?
The default buffer size is 8 kb.  You could use  
<%@page buffer="8kb" autoFlush="true"%>

Open in new window

0
 
LVL 28

Assisted Solution

by:rrz
rrz earned 2000 total points
ID: 20286481
What do these lines print ?
autoFlush is <%=out.isAutoFlush()%><br/>
bufferSize is <%=out.getBufferSize()%>

Open in new window

0
 

Author Comment

by:huzefaq
ID: 20286561
The foreach loop saves country and states in an array but it doesn't print anything. I am not able to access my work computer from home, I will check the output of these lines first thing in the morning tomorrow and will let you know.

Also would you know if it is possible to increase the buffer size of the page and if I do that are there any negative consequences

Thanks for your help
0
 
LVL 28

Expert Comment

by:rrz
ID: 20289584
That was just a guess. Is there anything else to overflow ? Maybe someone will help.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to implement Singleton Design Pattern in Java.
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses
Course of the Month12 days, 21 hours left to enroll

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question