Solved

Getting Exception jsp.error.overflow

Posted on 2007-11-14
4
954 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

914 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

17 Experts available now in Live!

Get 1:1 Help Now