[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Getting Exception jsp.error.overflow

Posted on 2007-11-14
4
Medium Priority
?
1,105 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 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone 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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month18 days, 18 hours left to enroll

834 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