Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Getting Exception jsp.error.overflow

Posted on 2007-11-14
4
Medium Priority
?
1,080 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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

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…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This video teaches viewers about errors in exception handling.
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 …
Suggested Courses

618 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