Jasper report issue report row 65535 but can't generated correctly

Hi All ,
We are trying to create report with jasper report . The issue is sometime generated report can be open.
Below is test case and result .
1.     when dummy all the returned field of procedure to ‘1’ and 20000 rows are to printed in report. The file size is 7564K. The excel can be open after several minutes waiting.
2.     When dummy the procedure only return 5000 rows with actual data, the field type may be char, number. The file size is 2010K. The excel can be open quickly.
3.     When dummy the procedure only return10000 rows with actual data. The file size is 3999K. The excel cannot be open.
What the issue may be?
Below is our code.
     * Generate the the report, currently generate excel report.
     * @param results - data set return from procedure execution
     * @param parameters - input parameters for Jasper Report design
     * @param procName - Jasper file name
     * @param outputFile - used as report file name
     * @throws JRException - Jasper exception
private void ReportGenerator(List<ScriptParameterObject> results,HashMap<String, Object> parameters, String procName,String outputFile) throws JRException, Exception
logger.info("Creating report: " + outputFile + ".xls");
//URL en = ClassLoader.getSystemResource("jasper"+java.io.File.separator+procName + ".jasper");
          URL en = ClassLoader.getSystemResource(procName + ".jasper");
if(en==null)
throw new Exception("Can't find jasper file: " + procName + ".jasper");
logger.debug("Loading jasper file: " + en.getPath());
//InputStream isJasper = ClassLoader.getSystemResourceAsStream("jasper"+java.io.File.separator+procName + ".jasper");
InputStream isJasper = ClassLoader.getSystemResourceAsStream(procName + ".jasper");
JasperReport relatorio = (JasperReport) JRLoader.loadObject(isJasper);
          SapiData sapiData = new SapiData(results);
          logger.debug("Filling report file ..." + results.size());
JasperPrint impressao=null;
try{
          impressao = JasperFillManager.fillReport(relatorio,parameters, sapiData);
catch(Exception ex){
System.out.println(ex); ---never catch error. but not know why the .xls can't open
if (impressao == null) {
logger.debug("impressao == nul.");
logger.debug("Filled report file successfully.");
          impressao.setLocaleCode(Locale.getDefault().getCountry());
          JRAbstractExporter saida = null;
          saida = new JRXlsExporter();
          saida.setParameter(JRExporterParameter.JASPER_PRINT, impressao);
          saida.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, outputFile     + ".xls");
          saida.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET,Boolean.FALSE);
          saida.setParameter(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND,Boolean.TRUE);
          saida.setParameter(JRXlsExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS,Boolean.TRUE);
          saida.setParameter(JRXlsExporterParameter.IS_COLLAPSE_ROW_SPAN,Boolean.TRUE);
          saida.setParameter(JRXlsExporterParameter.MAXIMUM_ROWS_PER_SHEET, Integer.decode("5000"));
logger.debug("Exporting excel report file ...");
          saida.exportReport();
          logger.debug("Generated excel report file successfully: "+outputFile + ".xls");
          /* - used for generate html report
          JRAbstractExporter htmlExp = new JRHtmlExporter();
          htmlExp.setParameter(JRExporterParameter.JASPER_PRINT, impressao);
          htmlExp.setParameter(JRHtmlExporterParameter.OUTPUT_FILE_NAME,outputFile + ".html");
          htmlExp.setParameter(JRHtmlExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS,Boolean.TRUE);
          htmlExp.setParameter(JRHtmlExporterParameter.IS_WRAP_BREAK_WORD,Boolean.TRUE);
          htmlExp.exportReport();
     }

I hava the same problem.Hava you solved it?

Similar Messages

  • Wrong forum, but can't access correct one - need help with Safari

    I'm sorry to post this here, but the link to the Safari discussion forum is broken - I've tried it about 10 times!
    I've been having trouble with Safari 1.3, which quit every time I navigated to a page using a certain type of code (I don't know what it was, maybe Java or Flash?) Anyway, I downloaded the Safari 3 Universal version in the hope of improving it, but unfortunately that has completely killed off both Safari itself and Mail. I couldn't even use Firefox or Internet Explorer, although other programs such as Word and Photoshop were working fine. Trashing Safari and everything I could find related to it meant that Firefox would work (I'm using that now), but I still can't start Mail. I assume Mail needs Safari to be installled in order to work?
    I've tried to download Safari 1 again, but can only find links to download the 1.3 Updater, not the program itself. Of course, the Updater won't install because there's no previous version to load it onto. Can anyone help me with a suggestion as to where I go from here, please? I'd be hugely grateful, I don't mind not having Safari but I do really need to use Mail.
    Thank you!
    - Kitty

    There are many, many millions of defective, nonstandard web sites, as a brody points out. You could, if you wished, make a crusade of asking their developers to make them accessible in every antique web browser: a crusade for which you would be rewarded with a brody's undying admiration, most of those incompetent website developers' annoyance, and nothing else.
    If instead you would rather just visit the sites and see what you can see of them, use Camino or Opera — the only up-to-date browsers that will run in OS X 10.3.9. Mozilla FireFox 2.0.20 will indeed run in your OS version, but it "is no longer supported and contains known security vulnerabilities" according to the Mozilla website. The more recent updates of FireFox (3.0 through 3.0.10) require OS X 10.4 or better.

  • Can't Create Reporting Subscriptions in SSRS 2012 But Can in SCCM 2012

    I did some research before which indicated that SCCM handles all the permissions for SSRS (http://server/Reports - Not sure if SSRS is the correct term but using it anyway). 
    I noticed recently that if I create subscriptions, it will disappear and not work. I could understand that the permissions wouldn't work since I am using role assignments for security but the subscriptions not working is causing me some concern. Is this
    right?
    Kyle

    Yes, I know this is an old post, but I’m trying to clean them up.
    How exactly are you setting up your subscription?
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • I'm on FF beta track; where can I report issues I see so developers can work on them?

    I'm not a developer but I receive beta releases for the desktop version (for Mac) which, of course, sometimes have issues. I'd like to help with Firefox' improvement by letting developers know what I experience. Where are users supposed to post the problems I see?

    See also the mozillaZine Builds forum.
    There is a daily thread to discuss issues with the latest Nightly build on the MozillaZine Builds forum.
    You need to register at the MozillaZine forum site in order to post at that forum.
    See http://forums.mozillazine.org/viewforum.php?f=23

  • MIS Report Issue (Report Painter)

    Hi SAP gurus,
    USERS have been processing critical Management Reports which are developed through Report Painter. In the recent past when ever the USERS are processing the Reports they are getting different figures even though the parameters are same. This Report is for the period closed.
    Please let us know how we can overcome with this problem as this report is critical to the management.
    Awaiting your immediate responseu2026

    Hello Eli,
    Here in my company we are using report painter tool for running report.
    I am running one report is for Cost center wise balances.
    following are the inputs
    Plan Version : P99
    Previous fiscal year : 2009
    Current Fiscal year : 2010
    CY Period from : 1
    PY Period from : 10
    CY Period To : 8
    PY Period To : 12
    Respective Company code  & Cost center
    Here in my company 8th period is closed for posting and there is no any posting happens in this period. when i am running report with the above mentioned input parameters. Every time i am getting different balance figures even though the input parameters are the same. I hope this information will help you to understand the problem.
    regards
    Sagar Ckar
    Edited by: sagarckar on Sep 29, 2010 10:39 AM

  • N97 mini - niggling issues I want fixed but can't ...

    Is there some kind of nokia hotline I can call that isn't going to cost me?
    I am facing a number of niggling little issues (Some i have posted on here with no reply). Biggest ones:
    - Music purchased from Ovi music. If i leave the song on the music widget for a while then come back later and play it, it doesn't play. I have to select a different song then go back and select the song i want to listen to.
    -The phone beeps every now and then. Not often enough to be able to time it but often enough to know it's happening. Could this be the exchange server updating maybe? I don't know cause there's noone to ask. This is particularly noticable when listening to podcasts as the sound on the podcast goes down, phone beeps then the sound comes back up.
    These are the two main issues I am having at the moment and would appreciate any advice anyone has.
    My other problems are Ovi Music software related (the pc one) so I will post those elsewhere. It seems hard to justify to everyone around me why I have a nokia and not an iphone or something. I really don't like the whole iphone thing but all these little issues are things that you don't get on other phones. Seems that nokia's have great hardware but really **bleep** software. Or is that just me?
    Thanks,
    J

    * beep * I have the same problem, already mailed Nokia support team and have no problem with ovi things because I don't use it. I also have no new applications installed or open programs, I rarely use the music features of the phone and only have Sygic Mobile maps 10 installed, but the beep does not come from that program since it is only in use while navigating and switched off to save battery life, no Bluetooth enabled, no gps in use, latest firmware according the SW-upgrade service. The problem came "out of the blue" and no other software is installed. Tried 2 different providers because I also own a HTC Touch Pro 2 with Hi and Telfort so swapped the sim cards but the problem still occurs. The beep also occurs when another profile like "silent" is in use. I am quite frustrated about it since it interrupts me my sleeping hours constantly. When nokia answers my question, I will translate it and post it here since I am from the Netherlands and probably will get a response in Dutch.

  • Dequeue issue with MQ adapter but can enqueue

    I was trying to do a POC for MQ adapter. Even though I was able to write messages into a MQ queue, I could not read from MQ queue. I got the message below in the domain.log.
    <2009-06-05 16:57:48,343> <ERROR> <default.collaxa.cube.activation> <MQSeries Adapter::Inbound>
    ORABPEL-13080
    Error.
    "[QueueProcessor] could not get message from Queue :TEST.EPOS.QUEUE"
    Contact oracle support if error is not fixable.
    at oracle.tip.adapter.mq.inbound.QueueProcessor.dequeueMessage(QueueProcessor.java:598)
    at oracle.tip.adapter.mq.inbound.QueueProcessor.run(QueueProcessor.java:172)
    at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
    at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:272)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2394
    at com.ibm.mq.MQQueue.get(MQQueue.java:1012)
    at oracle.tip.adapter.mq.inbound.QueueProcessor.dequeueMessage(QueueProcessor.java:587)
    ... 4 more
    The steps I have done are
    1.     Created a JNDI entry for MQ Adapter in oc4j_ra.xml (Channel, Queue Manager, Host are all correct)
    2.     Restarted the oc4j_soa only from front end.
    3.     Created a BPEL process to write message to a particular MQ. This was working. I checked the message using a java client.
    4.     Created a BPEL process to receive the message from the same queue (all details were same as earlier one). No instance of the BPEL process instantiated.
    I tried to dequeue the message using a java client and it was working. I was getting MQ reason number 2394. I am not sure about the reason. May be you have faced the same problem. Do you have any idea or suggestion?

    Can you increase the logging? I just wonder if you can get any more information.
    On the surface it looks like you are sending duplicate messges to the adapter? SOA Suite likes the group id / correlation id to be unique every time, otherwise it thinks it has processed that message.
    If you restart SOA Suite does one message get read then stop, if so then this looks to be the issue.
    What you need to do is populate the group id and correclation id with unique values every time.
    To increase the logging, in BPEL Configuration increase the default.collaxa.cube.activation to debug.
    cheers
    James

  • How can i generate correct SOAP-ENV:Fault in ABAP function module?

    We have clients consuming some functions from our SAP server, these functions are made available as web services. When a client passes wrong parameters to our functions we'd like to generate reasonable SOAP fault (using correct error code and error message) but simple raising (and declaring it in the corresponging section of the function module ) an exception gives us general "Internal Server Error" and that is all
    Are there any way to make good SOAP Fault?
    Thanx in advance.

    Hi,
    This might be helpful:
    http://help.sap.com/saphelp_nw04/helpdata/en/5d/a45c3cff8ca92be10000000a114084/frameset.htm
    Eddy

  • Row Headers in Cross Tab Report -Crystal Report XI

    I am trying to create a cross tab report. The report has 4 rows and the columns get generated based on the value of a database field.
    I have 2 questions
    Question 1 : I want the rows to have headers. I insert text objects in the report and when I run the report in crystal, the headers are displaying as required. But when I export to excel, the headers are displayed after the data. How can I create row headers and get them exported to excel as row headers.
    Question 2: I am creating the column based on a database field. The field is of text data type. The sorting for this filed is 1. abc ,10. abc , 11.abc , 2.abc , 3.abc ; etc where abc is a text string. How can I sort the columns so that the columns appear as 1.abc, 2.abc, 3.abc etc.
    I tried using the specified order sorting, but when I check the list of values that it creates to select the values, it is truncating the values. I can only see part of the values from the database.
    Please Help!!!

    I don't have Crystal in front of me so I will try to do this from memory.  If you right click on a report object, there is option on one of the tabs (I think it is General) that says Display String with a corresponding X button.  If you click on that, then you can enter a text expression that overrides the actual value of the report object.
    In your case, if you want to add a static header text to the row data, you could try something like the following:
    if Gender = "M"
         then "Mr. " + CurrentFieldValue
         else "Ms. " + CurrentFieldValue
    where Gender is a field object in the report and CurrentFieldValue is the data object specified for rows in the cross-tab.
    If you wanted to put header on the previous line, you could try something like this:
    "Account ID" + chr(13) + CurrentFieldValue
    where CurrentFieldValue is the account ID string.
    Fuskie
    Who expects this looks nothing like your actual report but hopefully it works as an example...

  • Updateable Report/Pagination - rows found but not displayed

    Bear with me if there is a post that covers this, as the SEARCH facility seems to be hanging when I search on Pagination.
    I have a SQL Query (PL/SQL Function Body Returning SQL Query) which creates an Updatable Report.
    If I run the Query and the selection criteria results in more than one page in the "search results" and then I go to page 2 or page 3, etc and then peform another search that only results in 1 page of "search results", the actual search results will not display, but the pagination will show the number of rows that should be displaying.
    For example, I search on Coroner "John Black", which returns 55 rows. The first 50 are displayed. The next 5 are on page 2. If I then searchon Coroner "Jim Bean", 22 rows are returned (all on page 1). If I then search on "John Black" again, and this time, go to page 2 (to see the final 5 rows in the result set) and then search on "Jim Bean", I won't get any data in the report for Jim Bean, but a message showing that there are 22 rows of data. However, I cannot get that data to show (even if I select NEXT or PREVIOUS for the pages.
    Then if I go back and select on "John Black", get the same problem. I basically have to sign out completely in order to get this reset.
    Note that the problem occurs if you are on a page greater than that of the result set on the next query. For example, if I am on page 3 of 5 pages and perform another selection that has 3 pages, it is fine. But if the result set only has 2 pages, the form becomes confused.
    If the "Layout and Pagination" has a "Pagination Scheme" set to "Row Ranges X to Y of Z (no pagination)" I get an error like "Minimum row requested: 2401, rows found but not displayed: 46".
    If I use "Row ranges 1-15 16-30 (with set pagination)" I get "1-46" as a hyperlink, which if I click on, will show me the report.
    If I use "Row ranges 1-15 16-30 in select list (with pagination) I have a problem.
    If I use "Row Ranges X to Y (no pagination) I have problems.
    If I use "Row Ranges X to Y of Z (no pagination) I have problems.
    If I use "Row Ranges X to Y of Z (with pagination) I have problems.
    Basically, the one one that seems to work is those that have a hyperlink. Uing NEXT, PREVIOUS or a select list does not seem to work.
    Do you know what is causing this problem?

    I have the same issue, but cannot resolve it following above suggestions. I have a report page with search criteria and a "Go" button to submit the search. The branch back to the same page has "reset pagination for this page" checked, but still if run a query that returns just one row after having paged forwards, I get no rows displayed and a pagination link "1-1" that when clicked brings up the selected row.
    I tried adding a "Reset Pagination" process to run on submit (unconditionally), and it made no difference.
    I am using HTMLDB 2.0.

  • Issue with row/column text lengths in report painter

    Hi Gurus,
    I have created a report painter report with formatting of the row/column length text as medium, but for one FS item/GL Account the report when executed still picks up only the short text length. I am not sure how this can be resolved.
    Any ideas is appreciated.
    Regards
    Satish

    Applied OSS Note 360096 and it worked. Thanks for all your help.

  • Financial Reporting Question - Formula row Issue

    Hello,
    I have a financial reporting question and would like to have your inputs in order to achieve what I am trying to do.
    I have a report with two grids – grid 1 & grid 2. And there is a formula row in grid 2 that is “change between the two years” worth of data. The year and period combination is in the page of the grids.
    Formula row (in grid 2) = ((Grid1.[b,6]) - [b,6]) / [b,6]
    The issue is when I change the Page selection in Grid 1 the formula in grid 2 doesn’t get updated values unless and until I make a change in the grid 2 Page selection too. If I don’t make any changes in the page selection in grid 2 it keeps the data (looks like it is still considering the previously retrieved/calculated values) as it is without any update.
    How can I make the formula row in grid 2 dynamic so that it gets updated no matter what combination of page selection I make in either grid 1 or grid 2 or even if I just change something in grid 1 and nothing in grid 2?
    Please let me know your inputs. Any help is appreciated.
    Thanks,
    Krrish
    Edited by: Krrish on Dec 3, 2012 7:45 AM

    Page POV will be specific to the grid.Why can't you try to have the POV at the report level.In the HTML view of the report,the report will give you a Drop Down to select POV for all Grids.Select All Grids option and then set the POV which will be same for both the grids (which you want) and all your formulas will work.

  • Can i  change font  size  in  jasper  exported  Html  report

    how can i change font size in jasper exported Html report.
    i also want table in that html report.

    So when is it going to be possible, I ask, as this is a question I and many others ask after each update!

  • Lost newly purchased Iphone5, Reported complain in police station but not getting proper responce. Can apple help me out for this?

    Lost newly purchased Iphone5, Reported complain in police station but not getting proper responce. Can apple help me out for this?

    Oh, don't worry. I know exactly. I'm a retired law enforcement officer after 30 years. I didn't mean for them to allow you to use the Internet, I meant for them to assign an officer to try and track the device for the victim. Again, that would require the victim to provide their Apple ID and password, which most would not want to provide.
    Pinging the phone as you mention is only when there is probable cause and that is done through the carrier.
    I'm glad to see someone also understand that a stolen cell phone is not as important to law enforcement as it is to the victim. It is unfortunate as smartphones get more expensive. Hopefully as iOS 7 makes it debut later this year, the work Apple has done will have some impact on smartphone theft. Other manufactures and carriers are starting to improve here in the states. It never was something carriers worryed about with blacklisting. This is where they were a step ahead in Europe.

  • Jasper report issue

    HI friends...
    Iam using iReporttool for making jasper file..
    in iReport tool I can generate my report in all files like pdf,xml,html etc that r given in this tool.
    ri8 now I have .jasper and .jrxml file now I want a java code that use these file and convert it into all formate
    as it has available in this tool....ie.want to generate pdf.html,excel and doc file etc using .jasper file or .jrxmml file...
    need help as soon as possible...
    thanks

    Below code can be used to get the output. Below code also uses databse connection. If your report does not need db support, you can ignore it.
    Also, a MAP is passed to report which can be used in the JRXML as parameters.
        public boolean runReport(String databaseName, String userName, String password,String reportFile,String reportPath) {
            try{
                Map paramters = new HashMap();
                paramters.put("CustomerId",new Long("15908"));
                paramters.put("ProductId",new Long("11745"));
                paramters.put("POSS3","POSS3");
                paramters.put("BarCodeEnabled",new Integer(1));
                paramters.put("BarCodeProduct","TST 0%PVZNOS 024W");
                paramters.put("BarCode","98765432102");
                paramters.put("POSSU3","POSSU3");
                paramters.put("POSSU10","POSSU10");
                paramters.put("POSSU12","POSSU12");
                paramters.put("POSSU13",new Date());
                paramters.put("ANUAL",new BigDecimal(4000));
                paramters.put("RATE",new BigDecimal(5));
                paramters.put("ShopId","40201");
                paramters.put("DateFrom",getDate(1,1,2000));
                paramters.put("DateTo",getDate(1,1,2009));
                paramters.put("ProductTypeCode","YOUR_LOAN");
                paramters.put("City","Jamshedpur");
                paramters.put("rev","Version 1.0");
                paramters.put("version","Version 1.0");
                JasperDesign jasperDesign = JRXmlLoader.load(reportPath);
                JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
                //to generate .class file
                JasperCompileManager.compileReportToFile(jasperDesign,reportFile);
                Connection jdbcConnection = connectDB(databaseName, userName, password);
                JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, paramters, jdbcConnection);
                JasperExportManager.exportReportToPdfFile(jasperPrint ,reportFile+".pdf");
                return true;
            catch(Exception ex) {
                ex.printStackTrace();
            return false;
        }

Maybe you are looking for