Solved

Getting Exception jsp.error.overflow

Posted on 2007-11-14
4
945 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
  • 3
4 Comments
 
LVL 27

Accepted Solution

by:
rrz earned 500 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 27

Assisted Solution

by:rrz
rrz earned 500 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 27

Expert Comment

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

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

708 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now