what's the max-side for in request.setAtttibute(Object), using Tomcat 4.1

Discussion in 'Java' started by John_Woo, Jul 20, 2005.

  1. John_Woo

    John_Woo Guest

    Hi

    Tomcat 4.x is used as Web Server, in a jsp, there is a method

    //result is type LIST of maps element,
    //each of map represents a row-record from sql
    List list = (List)request.getAttribute("SQL");
    if (list == null)
    {
    List o = (List)sql.getResult();//getting result
    session.setAttribute("SQL",o);
    }


    when browsering this servlet, the following error message pops up:

    exception

    org.apache.jasper.JasperException
    at
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
    at
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
    ....
    root cause

    javax.servlet.ServletException
    at
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:533)
    at
    org.apache.jsp.GetChecksList_jsp._jspService(GetChecksList_jsp.java:916)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
    at
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    ....


    Can any one tell how to deal with it? this jsp used to display all the
    records in disfferent manners.

    or any other idea on what's the max-side for the object in
    session.setAtttribute()

    what's better useing session.setAttribute() or request.setAttribute()?

    BTW, the following has been inserted in tomcat catalina.bat
    set JAVA_OPTS=-Xmx1024m


    --
    Thanks lots
    John
    Toronto
     
    John_Woo, Jul 20, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Brian Birtle
    Replies:
    2
    Views:
    2,194
    John Saunders
    Oct 16, 2003
  2. Hema S via DotNetMonster.com

    Max Request Length Exceeded while postback

    Hema S via DotNetMonster.com, Oct 14, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    4,496
    Hema S via DotNetMonster.com
    Oct 17, 2005
  3. Summercool
    Replies:
    9
    Views:
    928
    dorayme
    Oct 23, 2007
  4. Greg Ferris

    Textarea max rows and max characters per row

    Greg Ferris, Jan 16, 2004, in forum: Javascript
    Replies:
    2
    Views:
    630
    Greg Ferris
    Jan 16, 2004
  5. kriton
    Replies:
    0
    Views:
    371
    kriton
    Apr 22, 2005
Loading...

Share This Page