Data lost after several days running!

data lost after several days running
ENV:
Service Pack 1 for Crystal Reports for Eclipse 2.0
Tomcat5.5
Problem:
There is no problem to export the report as PDF files in the first few days after i upgraded the CR4E.
But after several days running,the problem appeared : the exported PDF file was incomplete!
It's supposed to 3 pages,but only 1 page(the first page) exported actually.
When i restarted the tomcat,the problem disappeared.In several days running,
the problem appeared again...
Code:
reportClientDoc = new ReportClientDocument();
reportClientDoc.open(Messages.getString("tmpltPath")+tmplt_name, OpenReportOptions._discardSavedData);     
RptHelp  rptHelp = new RptHelp();
rptHelp.setDatabaseCtrl(reportClientDoc);
rptHelp.addDiscreteParameterValue(reportClientDoc,"","userName","admin");
rptHelp.addDiscreteParameterValue(reportClientDoc,"","start_date",start_date);
rptHelp.addDiscreteParameterValue(reportClientDoc,"","end_date",end_date);
for(int i=0;i<6;i++){
     if(!p_name<i>.equals("")){
          rptHelp.addDiscreteParameterValue(reportClientDoc,"",p_name<i>,p_value<i>);
String exportPath = Messages.getString("reportExportPath");
String exportName = "test";
rptHelp.export(reportClientDoc, exportPath+exportName, file_extention);
File file = new File(exportPathexportName"."+file_extention);
FileInputStream in = new FileInputStream(file);
int len = (int)file.length();
byte[] data = new byte[len];
int read = 0;
while (read <len) {
    read += in.read(data, read, len-read);
in.close();
response.setContentType("application/x-msdownload");
response.setHeader("Content-Disposition", "attachment; filename="+ URLEncoder.encode(exportName"."file_extention,"ISO-8859-1"));
OutputStream ops = response.getOutputStream();
ops.write(data);
ops.flush();
ops.close();
out.clear();
out = pageContext.pushBody();

What is the data? What is displaying the data (graph or chart)? What does your code look like? Why did you post a 4M image to the forum?
NaN in the data will appear as gaps in plots.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • Dsc why the data lost after two days?

    hi:
    I have found some question about DSC module like the picture you see ,there are two lines. ONE is white ,the other is blue.The white one has lost at some place,but the blue one was continuous.
    As I know,the computer was crashed at August 25,but the data loss occurred in August 23.It's a long time.So can anybody tell me why it happened.
    Attachments:
    untitled.png ‏3915 KB

    What is the data? What is displaying the data (graph or chart)? What does your code look like? Why did you post a 4M image to the forum?
    NaN in the data will appear as gaps in plots.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • VI causes high CPU load after several days of running

    Hello,
    I have a strange problem. I have craeted a test bench control VI and it runs on five PCs, controling five test benches. All PCs have almost the same hardware, same motherboard, same CPU, etc.
    Normaly the CPU load is around 50% when I run the VI, but at one PC the CPU load climbs up to 85% after several days (maybe one week) of continuous running and the PC is almost tied up - the VI execution becomes very slow (10 times slower) and the mouse only moves very slowly.
    First I thought that the PC has a problem but the problem dissapears as soon as I stop and restart the VI!
    I don't even have to terminate LabVIEW - only my VI and then everything is okay again.
    The problem does not seem to occur at the other four PCs, but I can not tell for sure.
    The task manager says only LabVIEW causes the CPU load - swap file utilisation is little.
    Is there a way to analyze what causes the high CPU load?
    I Use LabVIEW 7.1 professional
    Operating System: Win XP (SP 2 or 3 I don't remember)
    P.S. I have no loops without wait-functions.
    Greetings Johannes
    Using LabVIEW 7.1 and 2009 recently
    Solved!
    Go to Solution.

    Do all PCs have the same amount of RAM?
    What is the memory use over time as seen by the windows taks manager. Does it increase gradually?
    An increase in resource usage if often cause by sloppy programming.
    Do you grow arrays forever or constantly resize arrays in memory? (built array, insert into array, delete from array)
    Do you often create new references and never close them?
    What does the program actually do? In my opinion, a constant 50% CPU load seems too high for my taste. It means it would not even be able to keep up on slightly older hardware.
    LabVIEW Champion . Do more with less code and in less time .

  • SharePoint publishing website runs wrong after several days, but return correct after reset IIS

    SharePoint publishing website runs wrong after several days, but return correct after IISReset.
    I have a custom solution on this publishing site, which looks up sharepoint resources, I've changed 
    "List View Lookup Threshold" up to 50 in resource throttling, but this keep occurs sometimes.
    could you give me some clue to solve this permanently?
    Thanks very much in advance!
    ~Rosone

    I am sure you are using BLOB cache. Try to disable it and check. I have seen this issue with BLOB cache.
    Do we see some error in ULS logs and Event viewer
    Use fiddler and check if there is something like 404.
    Try below tool on your code
    https://spdisposecheck2012.codeplex.com/
    If this helped you resolve your issue, please mark it Answered

  • Employee date change after pay roll run

    HI sapiers,
    i have an issue
    one employee join on 10th of the may but in sysytem it was enterd as 13th of the may
    and pay roll was processed to that employee
    now can we change the employe join date now
    if yes how can we do this
    please help me its urrgent
    thanks in advance
    shjish khan

    Hi Shajish,
    There are three scenarios when you may need to change hiring date:
    1) After payroll is run - when hiring date is before actual Hiring date.
    2) After payroll is run when hiring date is after actual Hiring Date.
    3) Before the payroll is run.
    1) PA30 -- Copy actions info type - action type - incorrect entry -- save and come out PA 30 copy actions info type -- action type - correct entry - now correct your entries, save your date is changed.
    2) PA30 - Utilities - change payroll status - delete accounted to field, save and come out - then again utilities change entry leaving date - correct the hiring date - save and come out.
    3) PA30 - Utilities change entry/leaving date change your date and save.
    Try this aslo
    Go to PA30
    Enter personnel number.
    Select action infotype.
    Select subtype hire mini master record.
    Change to new date.
    Under reasons, select new position.
    Click save.
    Please refer the below links:
    http://help.sap.com/saphelp_470/helpdata/en/48/35c5c34abf11d18a0f0000e816ae6e/content.htm
    http://help.sap.com/saphelp_470/helpdata/en/48/35c5c34abf11d18a0f0000e816ae6e/frameset.htm
    http://help.sap.com/saphelp_46c/helpdata/en/1b/3e5c16470f11d295a100a0c9308b52/frameset.htm
    Also we have several threads in the forum related to this.
    http://scn.sap.com/thread/1185695
    http://scn.sap.com/thread/1185695
    http://scn.sap.com/thread/2012142
    http://scn.sap.com/thread/1466306
    Thanks,
    Madhav

  • My book package validated, and delivered, but after several days, I have not been notified that Apple has it, or that it is in the iBooks store. When can I expect to hear something?

    My book package validated, and delivered, but after several days, I have not been notified that Apple has it, or that it is in the iBooks store. When can I expect to hear something?

    Did you check in iTunes Producer if your package really imported correctly?
    While in iTunes Producer, you go to "File" and then click on "Package History", it will fetch the status on the Apple system on-line.
    I have the same problem since I have been trying to update my previsously published book, I keep getting import error messages. I tried omitting the version number and "whats new in this version" but nothing seems to work... Sent emails to Apple through the iTunes producer tool but to no avail - so far.

  • Schedule line date changes after each MRP run

    Dear Experts,
    Clarification needed on how the system plans the MM schedule lines.
    Setting: Start in the past not allowed.
                  3 days for processing of order
    The issue is after each MRP run the system is moving the schedule line to the current date + 3 days for processing + the planned delivery time.
    If the schedule line is not firmed, after each MRP run ( which happens everyday) the system is moving the schedule line and then giving an alert saying the " order has to be rescheduled to the previous day"
    on the second day after the mrp run the system moves the schedule line again by one more day and gives the rescheduling date as " -2 days from today"
    this change is happening every day after the planning run. - because of this there are really no backorders ( schedule line in the past ) in the system. we were not able to know if the vendor is actually delayed in this case.
    can you kindly suggest what went wrong here ??
    we are using strategy 10 for the planning of procured parts. Let me know if more info is needed.
    Note: we are also using stock transfer process for some procured parts. there too the PR date gets changed after each MRP run. There there is no lead time in this case. the order is placed on the same day as the requirement as both plants are nearby. There the PR date is changing everyday to the current date.
    your advice would be of great help
    thanks
    Nagendra Kumar

    Hi Caetano,
    thanks for your suggestion
    Yes, we use firm zone for few of the vendors. there the system don't change the schedule lines.
    Also for the stock transfer PR's there is no firm zone and the lead time is one day. in this case it changes everyday after the MRP run.
    the stock transfer PR's leads to the creation of Schedule lines from the source plant. Since this PR gets changed everyday. the alerts coming out of MD07 gets changed and we really did not know if this order is delayed or not.  In the source plant we use the firm zone to avoid moving the schedule line. But then the alerts are always not correct.
    is there any setting which helps in not moving the PR everyday without using " start in the past"
    thanks
    Nagendra Kumar

  • OutOfMemoryError - happens after several days

    I keep getting the OutOfMemoryError after running a rather large java program over and over for several days. The program has sql statements and creates output files. We stop the program every night for sure along with stopping it a few times in the day. So why would the pc run out of memory after this has ran several times? I thought if the java program was completely stopped all of the memory would be freed up. What can I do to fix this problem?

    There are actually 5 copies of the script running from
    different copied directories and running
    simultaneously in scheduled tasks to keep them
    re-running after each one finishes. Over time they
    seem to eat up the machines memory and get to a point
    where none of them will run anymore. Then we have to
    reboot the pc. The script outputs to a text file and
    updates the database but does not load in from the
    text file.Again, I feel like I'm missing something...Java is usually not considered a scripting language, unless we're talking JavaScript, but I doubt you are. Assuming you mean that 5 Java programs are running simultaneously, am I correct in saying that the JVM, or JVM's if each has it's own, never exits? That's what it sounds like, at least.
    That said, you either have a memory leak (as everyone has already suggested), or you actually don't have enough memory to sustain all 5 Java programs at full capacity. If each program runs in it's own JVM and has a max heap size of 128MB and you only have 512MB on the box, it may take some time for the JVM's to allocate all 128MB for each process and cause the exceptions. JVM's allocate heap space on-demand, up to a maximum size, so you wouldn't see the problems when the programs first start.
    Either way, you'll need to cut back the amount of heap space the programs take, using the suggestions already posted. Sorry to drag on, but memory leaks aren't always the (only) source of memory problems.
    That's my 4cents. Good luck

  • Firefox on Mac OS X gets spinning wheel after several days of use

    I have the latest version of Firefox, 8.0.1 and Mac OS X. After running Firefox for several days to a week or more, Firefox starts to become really slow and I would get the spinning wheel for a few seconds when I click a link or click on a field box. Then I have to reboot my computer and it is fixed for another week or so and the spinning wheel starts up again.

    What is the memory usage of Firefox when this happens?
    You can check the on the about:memory page via the location bar.<br />
    That page also has a button ant the bottom to reduce the memory usage.

  • WRT350N, Loses Internet Connection after several days of working.

    My WRT350N worked fine for 4 days after instalation then stoped communicating with my Linksys modem.  I returned my first WRT350N to Best Buy after a day of troubleshooting, and several calls to Comcast, my cable  provider.. Assuming I had a bad router I got a replacement, and after 3 days the replacement router did the same thing, losing its internet connection.  I found it pecular that I could connect to the router. it looked like it was connected to the modem, but would not make an internet connection, even after restarting my Linksys BEFCMU10 Cable Modem and router several times.   I could only make a connection if I pluged my computer directly into the modem.  I also check for firmware updates and at the time there were no firmware updates.I returned my second WRT350N to Best Buy requesting a refund and re-installed my original WRT54GS.  Does the latest version of firmware resolve this specific problem?  Judging by the inquires on this forum, it would appear that alot of users are experenceing this same problem.  I really like the Idea of the Storage Link, but I think I will wait till they work out there problems with the WRT350N, before I buy another Linksys product.

    I suffer from the exact same problem you describe ever since I bought my WRT350N 3 weeks ago. I do not have a solution for you unfortunately. Maybe if everyone with a WRT350N with this problem chimes in here, Linksys will take note.

  • IPad Data Lost After OS 5 Upgrade

    Hello,
    I recently upgraded to OS 5 on my iPad. Everything went okay EXCEPT I lost data within apps on my iPad. I contacted the app vendor, and although they had some useful suggestions, I cannot locate the lost data.
    When I go to restore from backup, it's the same data as AFTER the upgrade so that doesnt't help me. I use Time Machine on my iMac which I snych with this iPad, but I don't know what file to look for since everything is embedded in iTunes (the backups and files for the iPhone and iPad).
    Any suggestions? I know the data has to be there, but I don't know where to look.
    Thanks very much.

    I am a bit unclear as to what you are saying. iCloud retains the last three backups per device. Are they not available in your case? Please see the attached link in its entirety. If you need more help please give a more detailed account of what has / is happening. http://support.apple.com/kb/HT4859

  • Finder doesn't show some files after several days of uptime

    It is several days my MacBook Pro is turned on:
    $ uptime
    11:08  up 10 days, 12:02, 2 users, load averages: 1.12 0.80 0.60
    and Finder is starting to behave strange...
    the first thing I noticed is that it doesn't show anymore the contents of application packages (ie. right click on a .app and click Show Contents, shows an empty finder window, like there were no files, but from Terminal I'm able to see contents).
    also some other files are not visible. for instance I just downloaded a file in Safari, but I can't see it in its folder with Finder, but I can see it and open it with Terminal.
    before trying a reboot, what could I do to solve this issue?
    perhaps restart Finder? but what is the correct way of restarting it? killall Finder (or some signal other than SIGTERM)?

    To restart Finder, hold the option key whilst "right-clicking" (or two-fingered tap on a trackpad), on the Finder option in the Dock.
    You will see an option to "relaunch".  Select it, and Finder will restart.

  • Sticky Brain data lost after upgrade to 10.4.4

    Sticky Brain can't locate my data file after the upgrade to 10.4.4 and neither can I. Can someone tell me where it might be moved to during that process?

    I can't tell you where it might have moved to but in my case, using 4.0.3 the default backup file is here- HD/Users/yourname/Library/Application Support/Chronos/Backups

  • Blue Screen and data lost after rescue n recovery during F11 operation

    when I start my T61 Laptop, i get complete blue screen with no addition error window. Pl. suggest solution to this problem.
    Moderator edit: problem added to subject line for clarity. 
    Message Edited by Agotthelf on 21-07-2009 10:40 AM

    HI
    Thanx for replying . Now the problem of immedietly solved when i booted my laptop with F8 . But the new problem arises. When I logged in, the system starts fine but when I run rescue n recovery option from thinkvantage button , the laptop restarts and then all errors shown. Like "c_1252.nls" file is missing or corrupted. This is the first messege I got while booting. Then I booted with F11 for rescue n recovery. I recovered file c_1252.nls from backup folder on harddrive. But when i restarted again the new c_0437.nls shown missing and this i got so many times after each n every rescue n recovery options. Then I again rescued all the files in system32 folder and restarted my laptop. Which restarts good uptill it asked for domain password . But when i clicked to enter the password the error messege shown " Diskeeper not present" and subsequently "SQL server is disturbed" like that . But the login successful and when the desktop arises the windows intstaller window shows but no further processing even i waited for 15 min. And above all  I lost all my data saved in one n only drive that the LENEVO provided with OS.  NO partiton. PL. suggest any solution this . Is it possible to recover my data since I didnt make any backup ? 

  • R12.2.4 Data lost after using Dialog Page and return back to calling page.(Help Please! )

    Hi Team,
    I am new to OAF and is working on a requirement to add some custom validations when the user clicks on a Button in a standard seeded page.
    The approach I took was to Extend the seeded Controller object that handled this button press event and put my custom logic in the extended controller and override the standard controller via personalization.
    The standard flow was that upon pressing the Complete Button in Page A ,user was taken to the next seeded page (Page B) to perform certain operations based on the records that were selected in Page A.
    Part of the custom validation requirement was that if certain validations were not met then the user needs to be shown a Pop-up asking if they really wanted to proceed and if they selected Yes then continue with the standard seeded flow(move to page B)  and if they selected NO then just stay on the current page.
    I was able to use OADialogPage and do this partially , the issue I am running into is that once the user selects the one or more records  using a check box from a multi-record (table) region and hits the Complete Button on page A and if the validation fails then a modal page is shown and the user makes a selection i.e.either Yes or No from the modal page and when they return to calling page (i.e. Page A) , All the Data (records ) that they selected previously is lost (Page is refreshed). Based on what I see on this forum I suspect that it is because after clicking on Yes on the modal page and while returning to the original page the processRequest fires again and VO data is queried again and all selections on the page A are lost. Since I am trying to alter the flow in seeded pages based on user intervention I am kind of lost as to how this issue can be fixed. i.e. either prevent the page refresh or preserve the selections that were made prior to navigating to the modal page. Any Help is truly appreciated !!
    My Code :
    public void processFormRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
    if (oapagecontext.getParameter("completeOps") != null) {
    if (warnCount > 0) {
      //OAException message = new OAException("Not in Sequence...", OAException.WARNING);
      //oapagecontext.putDialogMessage(message);
      OAException message = new OAException("Rule XYZ Violated .Do you want continue ?",OAException.WARNING);
      OADialogPage dialogPage = new OADialogPage(OAException.WARNING, message, null, "","");
      String yes = oapagecontext.getMessage("AK", "FWK_TBX_T_YES", null);
      String no = oapagecontext.getMessage("AK", "FWK_TBX_T_NO", null);
      dialogPage.setOkButtonItemName("ConYesButton");
      dialogPage.setNoButtonItemName("ConNoButton");
      dialogPage.setOkButtonToPost(true);
      dialogPage.setNoButtonToPost(true);
      dialogPage.setPostToCallingPage(true);
      dialogPage.setOkButtonLabel(yes);
      dialogPage.setNoButtonLabel(no);
      oapagecontext.redirectToDialogPage(dialogPage);
    if (oapagecontext.getParameter("ConYesButton") != null)   {
              // Write Action code for Yes Button
              oapagecontext.putParameter("completeOps", "Continue");
    if (oapagecontext.getParameter("ConNoButton") != null){
                // Write Action code for No Button
                String errormsg = "Rule Violations have occured ";
                throw new OAException(errormsg);
       super.processFormRequest(oapagecontext, oawebbean);

    I was able to work around this issue by adding a simple check in the processRequest method of my extended Controller to prevent the call to super.processRequest incase when the control returns to the page after the user has made a selection in the Dialog Page
    if((oapagecontext.getParameter("ConYesButton") == null) && (oapagecontext.getParameter("ConNoButton") == null)) {
      super.processRequest(oapagecontext, oawebbean);
    Thanks !

Maybe you are looking for