JSP file is too large to run in TOMCAT 4.1.18

When updating TOMCAT from 3.2.3 to 4.1.18, I got an error message .
After trying, I find TOMCAT 4.1.18 will crash if the .class file is too large.
(These files will run well in TOMCAT 3.2.3)
Test data:(bye adding the code "<!--Hello-->" into JSP file)
binary code is 209 KB (214,477 ������) -->ok.
binary code is 216 KB (222,079 ������) -->ok.
binary code is 224 KB (230,270 ������) -->false.
The web shows message as below. After I downsize the crash JSP.
It will run perfectly.
But I hope to keep the source "completely".
How could I do for it?
HTTP Status 500 - Internal Server Error
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 5,688 in the jsp file: /html/customer.jsp
Generated servlet error:
[javac] Compiling 1 source file
C:\jakarta-tomcat-4.1.18\work\Tice_Adm\localhost\_\html\customer_jsp.java:8164: code too large for try statement
}catch(SQLException e){
^
An error occurred at line: -1 in the jsp file: null
Apache Tomcat/4.1.18

A Simple solution,
Modulize this JSP page. If you have 5,000+ lines of code in your jsp page, well you might want to consider moving alot of this logic into Beans and or multiple jsp pages and do jsp:includes to the other pages.
I personally recommend that you review your design and break it down into multiple Beans. There really shouldn't be too much code in your JSP pages.
Look into Struts or Web work to get a better understanding of what I am talking about.
Look into MVC designs and Model 2 designs.
I hope this helps.
-Richard Burton

Similar Messages

  • JSP compilation: code too large on SP14

    Hello,
    I developed EP application based on JSPDynPage on SP13 with big jsp file. This application was running on SP13 without problem.
    Later, we upgraded to SP14 and application logged exception: "code too large" when compiling jsp.
    I tried to devide the big jsp to several jsp, but problems remains the same.
    I searched SDN. I tried set jsp.bigmode.delimit.size to 10000, 20000 and 1. Nothing helps.
    I followed OSS Note:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/bc-jas/~form/handler{5f4150503d3030323030363832353030303030303031393732265f4556454e543d444953504c4159265f4e4e554d3d383230323832}
    Best regards,
    Josef Motl

    Hi Detlev,
    the OSS number is 820282. But I was unable to wiew this message on http://service.sap.com. So below I put snapshot of this message.
    Regards,
    Josef
    Portal JSP compiler fails when code generated is too long
    SAP Note Number: 820282
    Symptom
    In a few cases, the compilation of jsp files fails (if their size is very large) because the generated Java code exceeds the 65K limitation (per method) of SUN JVM or the system crashes when it tries to load a class file that was not correctly constructed (method size > 65K).
    Other terms
    JSP, Portal, too long, compilation, compiler, over size, try
    Reason and Prerequisites
    SUN JVM and othes do not support a method which has more than 65K of byte code.
    Solution
    The fix is available in +SP2 PL 31 and +EP6 SP11 Patch 2.
    Once you have installed the fix, you need to edit the file irj\root\WEB-INF\portal\system\properties\prtCentral.properties.bak.
    Check if the property "jsp.bigmode.delimit.size" is present. Otherwise add the line "jsp.bigmode.delimit.size=10000", rename the file to "prtCentral.properties" and restart the server.
    The number is the limit size in bytes when the big jsp mode is enabled (you should therefore change the Java template generated from the jsp file to a size larger than the limit)
    In rear cases where JSP files are including sources prior to their compilation you should set the parameter to a lower value. In the extreme case you can use jsp.bigmode.delimit.size=1 and enable the big mode jsp optimization for all files.
    To deactive the big jsp mode, set jsp.bigmode.delimit.size=-1
    Header Data
    Release Status         Released for Customer
    Released on            21.07.2005
    Priority               Correction with medium priority
    Category               Advance development
    Primary Component      BC-JAS-PIN-PRT Portal Runtime

  • ERROR : OpenDoc CR to PDF - File is too large for attachment.

    We are getting the following error in 3.1 using an OpenDoc call when we call a large Crystal Report to PDF format...
    Error : 52cf6f8f4bbb6d3.pdf File is too large for attachment.
    It runs OK from BOE when given parameters that returned 44 pages. (PDF = 139 KB)
    We get the error on a parameter-set that returns 174 pages when run via CR Desktop or as a SCHEDULED Instance. (PDF = 446 KB).
    Client application can't use the SDKs to SCHEDULE Instances - only configured for OpenDoc calls.....
    The BOE server is running on SOLARIS - and it's is a 2 Server CMS-Cluster.
    The problem is SPORADIC, so I am thinking the issue is related to a specific setting on one of the servers.
    Any thoughts on where to start looking...?

    Problem is _not _with the number of Rows returned - it is an issue with the size of the PDF file that it is trying to move.
    Found a possible WINDOWS solution on BOB - need to find if there is an equivalent for SOLARIS...
    Check the dsws.properties on web server D:\Program Files\Business Objects\Tomcat55\webapps\dswsbobje\WEB-INF\classes
    See if you can change any parameter to remove size limitation.
    #Security measure to limit total upload file size
    maximumUploadFileSize = 10485760

  • ReportExportControl  -- File is too large for attachment

    Hi all,
    Back with a exception again.
    Few reports deployed on BOXIR2 SP4 comes with an error as following
    com.crystaldecisions.report.web.viewer.ReportExportControl
    15bf5ea9377e1c1.rtf File is too large for attachment.
    Few reports take date range as input and generates result based on that. When date range is small report is generated without any problem. If is large and has large set of records(approx above 10K records) then comes up with the above error.
    Another set of reports whatever be the case throws this error.
    But when the parameters are set in CMS console and run in console report is generated without any problem what ever be the date range.
    After searching a lot no solutions in hand!!
    Please suggest solutions/possible scenarios / checklist to solve this issue.
    Thanks & Regards
    lnarayanan

    It turns out the report was so large it was basically overloading everything (disk space, cache sizes, timeouts, etc.) ... Here's the solution from the case:
    1) For page server and cache server
    Make sure location of Temp Files/Cache files has enough free space (more than 500 MB)
    2) For page server and cache server
    Minutes Before an Idle Connection is Closed = 90
    3) For page server
    Minutes Before an Idle Report Job is Closed = 90
    4) For cache server
    Maximum Simultaneous Processing Threads = automatic
    5) In the command line of page server and cache server, add
    "-requestTimeout 5400000" [without " "]
    6) Maximum Cache Size Allowed (KBytes) = set it to an appropriate value (for e.g. for 500 Mb, value should be 500*1024 = 512000)
    (This setting limits the amount of hard disk space used to store cached pages. If we need to handle large reports, a large cache size is needed. Maximum allowed is 2048 GB)
    After all this, an "Error 500 - Java heap space" happened.  The amount of memory allocated to a JVM application can be set using the options -Xms (the initial size) and -Xmx (the maximum size).
    Regards,
    Bryan

  • Error: f14627469cba51.pdf file is too large for attachment

    Hi,
    Recently we migrated lot of crystal reports from BO XI R2 environment to BO 3.1 SP2 FP 2.5 environment, these crystal reports are integrated with the application.
    Input parameters are given through the application using the Open Document URL and the report will open through the infoview.
    This particular error arises when we try to open the report as PDF using Open Document URL,
    Please find the URL below
    http://bodev.com/OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=AUwcueYTQwtLhWDlil29Nvc&sOutputFormat=P&lsS@INVOICEDATE=1/31/2010&lsS@REFSERVICEID=1&lsS@BILLINGCYCLE=1&lsS@INVPREFIX=SC1001&lsS@GUID=99b18bcb-9470-4a49-948d-73961c149f5e
    But we are getting the following error
    "f14627469cba51.pdf file is too large for attachment"
    Please help me out to resolve the issue.
    Thank You,
    Palani Kumar
    +91-9840865865

    Hi Jeff,
    Did you figure out the solution to this problem?
    I also getting the same problem while refreshing crystal report from 3rd party tool using dswsbobje service session
    "Failed to retrieve binary view of the report. 14546ada1c151418.pdf File is too large for attachment. (WRE 02527)"
    Please let me know if you find any solution.

  • How can I insert a number of photos in a numbers doc without the file becoming too large?

    How can I insert a number of photos into a numbers doc without the file becoming too large?

    Use smaller photos.
    Seriously, reduce the file size of the photos in Preview, PhotoShop, iPhoto or other application before inserting tehem into the Numbers document.
    Regards,
    Barry

  • My mac will not copy more than one file at a time and gets locked up if the file is too large, my mac will not copy more than one file at a time and gets locked up if the file is too large

    my mac will not copy more than one file at a time and gets locked up if the file is too large, my mac will not copy more than one file at a time and gets locked up if the file is too large

    So now that you have repeated the same thing three times that doesn't make things any clearer at all.
    You are copying files from where to where?
    How are you attempting to copy files, software or click and drag?
    Any other detail would be helpful.
    Allan

  • "File is too large for attachment." using the Viewer SDK

    Post Author: CBurger
    CA Forum: JAVA
    I'm using the Viewer SDK to retrieve a report from BOE XI 2 SR2.
    This is done via the a piece of Java code ...
    ReportExportControl exportControl = new ReportExportControl();
    ExportOptions exportOptions = new ExportOptions();
    IReportSourceFactory psReportSourceFactory = (IReportSourceFactory) enterpriseSession.getService(ReportConstants.REPORT_PSREPORT_FACTORY);
    Object reportSource = psReportSourceFactory.openReportSource(report.getID(), Locale.ENGLISH);
    exportControl.setReportSource(reportSource);
    exportControl.setURI(reportPath.toString());
    exportControl.setExportOptions(exportOptions);
    exportControl.setExportAsAttachment(true);
    exportOptions.setExportFormatType(exportFormat);
    exportControl.setParameterFields(reportParameters);
    exportControl.processHttpRequest(request, response, getServlet().getServletConfig().getServletContext(), null);
    exportControl.dispose();
    The report is generated as an Excel file.
    If I call for a small Excel - no problem: a dialog pops up asking me to "save as ..."
    If I call for a larger Excel (about 20MB) - PROBLEM "File is too large for attachment."
    Unfortunatly I don't find any information in the log files.
    Any ideas?

    Has this ever been resolved?  We are having a similar issue.
    Thanks!

  • The flash builder 4.5 export released webapp file is too large

    now i am starting a web project of realizing live webcast. i developed a videoplayer based on OSMF.
    the problem is when i deploy my web app on BlazeDS, the released file is too large.
    below is the file list in my BlazeDS server.
    then what shall i do to futher reduce the total size of the webapp released file or what is the unnecessary swf file for my webapp?

    OK. Then it's not an Android sim but just an AIR sim...
    I wish it's possible to debug on the Android emulator. Flash Develop can do that.

  • "This text file is too large to edit" for a very small file

    Hi all,
    I uploaded a small JS script file, less than 2K,  into the Shared Components/Static Files. When I was trying to edit it, I got the error "this text file is too large to edit".
    Anybody experiences this ? Any solutions ?
    My Apex version is 4.2.2.00.11.
    Thanks,
    Vu

    Interesting. I have an SQL file that is about 4K. I copy this file to two files, one with extension .CSS and one JS then upload these three files into the Shared Components/Static Files. I can then edit the SQL and CSS, but I cannot edit the JS file.
    I guess this has something to do with the extension ?
    Thanks,
    Vu

  • .War file size too large on Sun One WebServer 6.1

    We are using Sun One Web Server 6.1. I am trying to deploy a .war file thru the admin interface, and it fails due to the .war file being too large (over 10 megs). I am new to this server and have been looking around to see if there is a config setting somewhere I can modify, but I can't find anything.
    Can anyone tell me if I can change the max size, and if so where?
    Thanks very much.

    Try this:
    Go to $SERVER_ROOT/bin/https/webapps/admin-app/WEB-INF/web.xml file and make a backup copy. Edit this file and in the servlet webappdeploy, insert an init param named maxUploadSize with a value in bytes specifying the maximum upload size. Example:
    <init-param>
    <param-name>maxUploadSize</param-name>
    <param-value>20000000</param-value>
    </init-param>
    Let us know how it goes.
    Thanks
    Manish

  • HT5731 how can I cancel or delete a movie i downloaded to my iPhone?  The file is too large and it is hung up during the download process

    How can I cancel or delete a movie I tried to download to my iPhone?  The file is too large and iTunes is hung up during the process of downloading.  I've tried to swipe from right to left but that doesn't produce a delete button....

    Slide your finger across the videos' listing in your iPhone Videos App and tap the red "Delete" button that appears.

  • What can I do for "File size too large"?

    Spent 9 hrs creating a slideshow that I saved.  Closed PSE 11 and reopened and can no longer find the slideshow.  When I select Find, Media type, Project, nothing appears, but there is a gray box in my grid that says "File size too large".  Is this my slideshow and if so how can I recover it?  I am sick as this was a large time investment for my daughter's wedding which is very soon!  Please help if you can.

    I don't know anything about slide shows but if a picture is too large this is just a warning message, if I click a pic with this message it does show up. Have you tried clicking the thumbnail?

  • The jar file is too large..........

    sorry^^|
    I have a problem....
    when I use the wtk to postting my code to be a .jar file.
    I detect the .jar file is too large (184k)
    it's include all midp package but i was not use all of them
    how can i do to solve this problem^^"

    Remove what you don't need, use smaller files/images/sound files etc. And of course try to use obfuscator - it can decrease size of the file to 1/3 in some cases.

  • File is too large for attachment - BO Integration Error

    I developed Crystal reports (using Universe)in CR XIR2 and deployed in BO XIR 2 Repository.
    Reports database is -DB2.
    I am able to preview the reports in CMC/Infoview.
    But when we are integrating our Application(Called GBS) to BO ,and when I am trying to open CR reprots from BO repository,it is throwing error " File is too large for attachment " .
    The report is not too big even ,it is having only 100 records.
    I am not sure why it is throwing this error?Did anyone faced the same error ever?
    Please let me know any resolution for this,as it is blockign for me.
    is it something related to the application (GBS) or  any Pagerserver/Cacheserver issue ?
    Will wait for any response.
    Nitin

    Has this ever been resolved?  We are having a similar issue.
    Thanks!

Maybe you are looking for

  • Can i input a Video or Tv signal into my laptop to burn to DVD?

    I Want to know if i can record out of our sky plus box into my laptop and burn to DVD.

  • Print Preview in Reader

    Under Acrobat, I have a custom PDAnnotHandler subclass which defines the print appearance of an annotation via callback.  There is no way to register a PDAnnotHandler under Reader however.  Currently, I can update the AP/N COS object directly by grab

  • How do I insert Greek characters from the character viewer in Lion?

    In Lion, the Character Viewer shows many more options for different characters than SL.  Of course, it displays Latin, but, as I scientist I often need to insert Greek characters, but I cannot find Greek characters in the Character Viewer.  I don't o

  • Hi, unable to unlock my i pod touch,

    Hi, unable to unlock my i pod touch, the pod says connect to itunes, but wen connected to itunes it says unabe to connect without passcode

  • My Posts still has layout trouble

    Posted below is the source of a line that came out of alignment. I am using (lt) to indicated less than, and (gt) to indicate greater than symbols: (lt)tr(gt) (lt)td width="1%"(gt)5.(lt)/td(gt) (lt)td width="1%"(gt) (lt)img src="http://a772.g.akamai.