generated servlet error :65535 size limit reached //jsp

Discussion in 'JSP' started by sakthi.abdullah, Jul 25, 2007.

  1. sakthi.abdullah

    sakthi.abdullah New Member

    Joined:
    Mar 15, 2007
    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    0
    While loading a jsp page in Tomcat , I get this error:
    Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error:
    The code of method _jspService(HttpServletRequest, HttpServletResponse) is exceeding the 65535 bytes limit"



    Anyone tell me how to overcome this:
    Plz consider this things

    a)this is the problem with tomcat,since weblogic is able to load the same page

    b)the jsp file is generated dynamically from other server.So size varies,unpredictable

    c)if u tell me to split the jsp file,plz anyone tell me how to do it(consider that jsp file is dynamic)


     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
  3. sakthi.abdullah

    sakthi.abdullah New Member

    Joined:
    Mar 15, 2007
    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    0
    Thanks pradeep for the reply..


    I tried to change memory settings by adjusting the
    Tomcat memory pool minimum and maximum setting values... but that doesn't work..

    @# Can someone tell me if OC4J.jar( oracle jar file) can be used in tomcat ... bcoz it has few parameters to finetune the jsp settings..But i dont know if we can use here in tomcat ..if so HOW?

    plz refr : http://download.oracle.com/docs/cd/A97329_03/web.902/a95882/getstart.htm#1019100 for this.

    Thanks
     
  4. sakthi.abdullah

    sakthi.abdullah New Member

    Joined:
    Mar 15, 2007
    Messages:
    29
    Likes Received:
    1
    Trophy Points:
    0
    Thinking of splitting jsp

    I am thinking of splitting that jsap file///

    But Behold!! the file is generated dynamic (means other server generates and put the file in the path)...

    I have identifed a few things from this jsp which I suspect cause the jsp file size to increase :

    Array Name -- Start Line -- End line -- No of lines
    var xArray=new Array(" ") -- 1380 -- 3525 -- 2145
    var yArray=new Array(" ") -- 3525 -- 12302 -- 8777
    var zArray=new Array(" ") -- 12415 -- 21186 -- 8771
    var mArray=new Array(" ") -- 21192 -- 22697 -- 1505

    Total No of lines ( for arrray declaration only) -->21198

    So the arrary declaration itself spans a total of ~ 22K lines of code which is pretty large...

    At this point ...How to split the method ???array declaration wise (or) some x no of lines wise ..It ll be helpful if someone can give more ideas and if possible the code segment..

    Thanks
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice