Timer Task Mysteriously exiting.

Hello I have a server up and running and it has some timer tasks which was started by the following command:
timer = new Timer(false);
timer.schedule(myTimerClass, 1200, 1200);
This task has been running fine for years, but now sometimes appearingly at random it would all of a sudden without any exceptions stop ( so the logs are no help! ). ( which resulted in me suddenly finding a lot of data not being processed )...... it would not start up again until I restarted the application.
I am having a very hard time to know how to even begin to analyze this error. I cannot run any analyze tools in production server where it happens. However I have access to test environment... but I am unable to recreate it there.
Does anyone have any clue how I could even begin to analyze this? or did anyone have a simular problem with timers ?? Other timer tasks by the same timer was still running!!!
Regards,
Dak

It is just like this I do not own the prod machine so it is not my rules...
I think I got what happens after some more investigation though! I think that some very special condition causes the timer task to not finish running, and after looking at some source code of timer... if it does not get a proper "signal" that the timer task finished, it would keep waiting forever for it to finish without starting a new timer taks. Without any messages or exception.
So this must be what happens, now all I need to do is to figure out why the timer task hanged without finishing. Maybe a deadlock or infite while?? or siimiliar?
Thank you for your advice kajbj!
Dak.

Similar Messages

  • When i try to export my videos using quick time conversion FCE exits out on me. why does it do that?

    When i try to export my videos using quick time conversion FCE exits out on me. why does it do that?

    Does it always happen at the same time during the export?
    Can you play through the entire Sequence in FCE without any problems?
    What are your Sequence settings in FCE>
    Have you rendered fully prior to exporting?
    Which export settings did you use?
    -DH

  • Xi real time tasks

    Hi Xi Guru's!
    I need any technical specification in xi as i have done basic scenarios, I want know how the real time objects will be in Xi, could any one send me the real time tasks spec or objects, So that it will be more help full to me to get acquainted with real time tasks.
    Thank you guru's,
    Mark...
    [email protected]

    Markiv,
    Check this weblog for all the documents in XI:
    /people/michal.krawczyk2/blog/2005/04/09/xi--saps-document-templates
    Regards,
    ---Satish

  • Synchronizing the read of two timer tasks (Period and Two Edge Separation)

    Hello,
    I am using labview 2011 and need to latch the data from two timer tasks of a 6602 board at the same time and then perform the read. One task is a period measurement the other is a two edge speration.  It sounds pretty simple and I am sure it is, I just haven't located the correct information yet,  If someone would point point me in the correct direction.
    Thanks,
    Mike

    While it's true that a digital edge arm start trigger can help to sync the tasks to begin together, the nature of the measurements you're making also have a big impact on whether you can depend on the buffered data remaining "synced."   Both measurement types will latch measurement data at times determined by the signal(s) being characterized.  You cannot configure either task type to sample at a known constant rate.  You can only accept samples at the rate dictated by the signals' own edges.
    Ok, so having said all that, here are some implications:
    1. a cumulative sum of all your period data will effectively give you timestamps for all the active edges, with t=0 set by the arm start trigger edge.
    2. there is no information inherent in a two edge separation measurement that can identify the time relative to the arm start trigger.  You'll get a bunch of measured interval times with completely unknown times between those intervals
    3. caveat: if you are somehow using the same signal edge for both measurements AND getting one measurement of two-edge separation for each and every period measurement, ONLY then would you be able to reconstruct the timestamps relative to the arm start trigger edge.
    So I'd caution you that the idea of latching readings in sync or reconstructing relative edge times between the measurements is pretty unlikely to work except under some very specific circumstances.
    -Kevin P

  • Need help on Task Scheduling  using Timer task

    Hi all,
    Does any body know how to schedule a task at any given time using Timertask. Say i want to execute a task at 4:00 AM. but the timer task is executing the task at 4:00 AM and as well as at 4:00 PM also. But i don't want to execute the task at 4:00 PM. So how to specify the start time exactly as 4:00 AM only. How to specify the exact start time for timer task . please refer the following code how i have implemented
    Looking for any kind of help or hints or suggestions.
    Thanks in advance
    Date startTime = getExecutionTime(4,0);
    timer=new java.util.Timer();
    ImportingTask task = new ImportingTask();
    timer.scheduleAtFixedRate(task,startTime,interval);
    private Date getExecutionTime(int hours,int minutes ){
    GregorianCalendar present_Cal = new GregorianCalendar();
    GregorianCalendar result = new GregorianCalendar(
    present_Cal.get(Calendar.YEAR),
    present_Cal.get(Calendar.MONTH),
    present_Cal.get(Calendar.DATE),
    hours,
    minutes );
    return result ;
    class ImportingTask extends TimerTask{
    public void run(){
    executeScheduledJob();
    }

    I also have a similar problem.
    I used timer.scheduledAtFixedRate(MyTimerTask, start date, period). The start date is today 6:00AM and the period is 24 hours. It works fine. My problem is that I would like the user to enter a specific number of minutes or hours before it should start again.
    The current program starts initially at 6:00AM then it stops after 24 hours (which is 6:00AM the next day) and runs again.
    What I would like is that after 24 hours, the user can input, say, 5 mins......thus, the program should run at 6:05AM. Then it should run again at 6:10AM the next day and so forth.
    Can scheduledAtFixedRate handle this? Thanks in advance!

  • Firefox hand every time when laptop exit from sleep mode. Tested on 5 laptops with windows 7.

    Firefox hand every time when laptop exit from sleep mode. Tested on 5 laptops with windows 7.

    Same exactly problem here, very annoying when the computer goes to sleep mode and then Firefox locks up.

  • How to detect window close event and do some task before exiting

    Hi 
    Anyone knows how to detect window close event and do some task before exiting ?
    Sridhar
    Solved!
    Go to Solution.
    Attachments:
    window close event.JPG ‏34 KB

    Yes .You can discard the panel close event by passing "TRUE" boolean value to the "discard ?" terminal which is lied in the right side of that panel close(filter) event.& It will work in executables.  See attached picture.
    Attachments:
    Panel Close.JPG ‏12 KB

  • Undeployment timer task

    I have a Timer class that performs a TimerTask periodically, however even after undeployment of the application the tasks continues to be performed. How can I solve this problem?
    I also noticed that when I undeploy my application, the number of classes doesn't decrease. Moreover when I redeploy the application the number of classes increases again.

    @sarat
    Look at the API doc of Timer....
    http://java.sun.com/j2se//1.4.2/docs/api/java/util/Timer.html
    Look at the 2nd paragraph <thanx ejp>
    >
    Corresponding to each Timer object is a single background thread that is used to execute all of the timer's tasks, sequentially. Timer tasks should complete quickly. If a timer task takes excessive time to complete, it "hogs" the timer's task execution thread. This can, in turn, delay the execution of subsequent tasks, which may "bunch up" and execute in rapid succession when (and if) the offending task finally completes.
    If you still don't understand it... Hmm.... Words fail me!!!!!!

  • Urgent---Timer and timer tasks

    Hi ,
    I need to poll some devices on the network...
    I have a method exposed in my class for this purpose.
    I have a timer and a timer task to do this job for me at regular intervals..
    I understand that the timer will spawn a separate thread for this purpose..But if there are multiple requests fot the poll,then each request will spawn off a new thread as i have understood...
    Wont it clog the system with too many threads?
    How do i acheive this task?Is there any other alternative?
    Please help....
    Regards

    Additionally, if you start a timer and can't reuse it, for whatever reason, you ought to stop it and free its resources in order to not clog up the system. Does the spawned thread run on, or does it stop after returning? Maybe the system isn't clogged up after all?

  • Use Timer Task to run a loop at a certain time

    import java.util.*;
    class Run30Sec {
    public static void main( String args[] )
    int numberOfMillisecondsInTheFuture = 10000; // 10 sec
    Date timeToRun = new Date(System.currentTimeMillis()+numberOfMillisecondsInTheFuture);
    Timer timer = new Timer();
    timer.schedule(new TimerTask() {
    public void run() {
    // Task here ...
    for (; ;;) {
    System.out.println("Run 10 secs");
    }, timeToRun);
    }

    It starts after ten seconds delay and runs for five seconds.
    import java.util.*;
    class Run5Sec {
      static boolean go = true;
      public static void main( String args[] ){
        int numberOfMillisecondsInTheFuture = 10000; // 10 sec
        // you could use schedule(TimerTask task, long delay)
        // instead of Date
        Date timeToRun
          = new Date(System.currentTimeMillis() + numberOfMillisecondsInTheFuture);
        Timer timer = new Timer();
        timer.schedule(new TimerTask(){
          public void run(){
            Timer ttimer = new Timer();
            ttimer.schedule(new TimerTask(){
              public void run(){
                go = false;
            }, 5000); // exit the timer after five seconds
            while (go) {
              System.out.println("I will run only for 5 secs.");
            System.exit(0);
        }, timeToRun);
    }

  • Record Working Time task merging multiple employees into a single task

    Hi Everyone,
    I'm going to check our configuration again to see if this is standard behaviour, config, or a problem with EHP 3's version of record working time.
    So if employee A submits to manager A 1 task is created.  Then when employee B submits to manager A we were expecting 2 tasks.  However, we've been noticing manager A is getting 1 task with several line times. 
    We are ok with it merging tasks for employee A over multiple weeks.  That is ideal actually.
    The problem is that employee B's task should be separate.
    Is there a quick fix?
    Thanks,
    Doug Robbins

    I did try 31000007 and noticed the same behavior.  Are you saying I should use an older version of the task to get back to grouped by employee number and not merging everything? 
    Well this causing us issues for a few reasons. The main one we developed a work around because we had to make sure emails were not being sent to 1 person for all the employees with their data.  That would cause obvious security concerns. 
    But when forward tasks out managers want to be able to forward a specific employee's requests and not all of them.  If some customers want this it should be a configurable option.  To allow companies that want 1 single task or companies that want 1 task/employee/week.
    This is inconsistent with the other portal applications.  It would be nice if Germany picked 1 way of doing things or provided more configuration options.  I'm hoping that OSS gives us something because merging everything into a single task for all employees is not the behaviour we want or expected.
    I always appreciate your input because you have been very helpful as I learn about portal.
    Thanks,
    Doug R
    Thanks you

  • Options Startup Show my Windows & Tabs from last time,but upon exit FF doesn't ask to save tabs & windows. When restarting FF I have a home pape,but no Bookmark tabs show. Why

    Upon starting FF and going to my Home Page, I have no Bookmarks or Tabs showing. I have to Re-load the Bookmark Tabs. My options at Startup are "Show my Windows & Tabs from last time" Also using the Firefox exit,it does not ask to save tabs & windows on Exit. I'm getting tired of adding Bookmark Tabs each time I want to use FF.

    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    * http://kb.mozillazine.org/sessionstore.js
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.<br />
    Deleting sessionstore.js will cause App Tabs and Tab Groups to get lost, so you will have to create them again (make a note).
    See:
    * http://kb.mozillazine.org/Session_Restore

  • Task Flow Exit Using contextual Events ??

    I am using Jdeveloper 11.1.1.5.
    My application has a page which has two regions in it.
    First region has a bounded task flow with just one fragment in it(Just with a button)
    and Second region has a BTF which has five fragments in it(which is a kind of train process).
    On clicking the button in the first region I want to exit and reenter the bounded Taskflow in the second region.I am trying to do this using contextual events but the exit and reentry doesn’t happen as expected.
    For example - if the user is in the third fragment of the second region and clicks the button in the first region, then the task flow should exit and the control should go to the first fragment in the second region.
    In the consumer method I am returning the “action” string which will call the “TaskFlow Return call” activity but the “TaskFlow return call is not being called.
    Could some one help me resolve this issue.
    Thanks in advance.
    - Pani

    I am using Jdeveloper 11.1.1.5.
    My application has a page which has two regions in it.
    First region has a bounded task flow with just one fragment in it(Just with a button)
    and Second region has a BTF which has five fragments in it(which is a kind of train process).
    On clicking the button in the first region I want to exit and reenter the bounded Taskflow in the second region.I am trying to do this using contextual events but the exit and reentry doesn’t happen as expected.
    For example - if the user is in the third fragment of the second region and clicks the button in the first region, then the task flow should exit and the control should go to the first fragment in the second region.
    In the consumer method I am returning the “action” string which will call the “TaskFlow Return call” activity but the “TaskFlow return call is not being called.
    Could some one help me resolve this issue.
    Thanks in advance.
    - Pani

  • How to make the Convert task to exit if there is Rejected data

    Hello,
    I try to develop a DTSX package for SQL 2005, with BPC 7.0 SP6.
    The package contains Convert step.
    I want to exit package execution if during the Convert step there is at least one Rejected data
    Problem: Convert task exists On Failure only if All data rows is rejected.
    Do you know how I can make the Convert task exist with Failure if there is at least one row of Rejected data?
    Or maybe there is some Expression I can check which contains the number of rejected data?
    Thank you, Alex

    Hi Alex,
    Perhaps you can use a Transformation file, similar to the Import Data Package, to check the integrity of the data before the conversion.
    Regards,
    Jason

  • Slow start up time and mystery 20 gigs???

    Hi,
    My mother asked me to check her MacBook saying it was slow in starting up.
    I checked it and it takes about 1 minute 15 seceonds (approx.) each time to start up - it used to be much quicker - and alsosome applications "bounce" in the Dock a lot more than they used to.
    I've also realized that my iMac has been behaving like that too.
    What could cause this slower performance?
    How do I check System Preferences for any items that slow the start up process?
    Also, of the 64 GB of Used space on my mother's MacBook, I can only account for 42 GB.
    There is a mysterious 22 gigs that I cannot figure out?
    Any ideas how I can sort this?
    Cheers.

    Hi - thanks for the response.
    I downloaded a program called OmniDiskSweeper and it is showing me what that 22 gigs is being used for.
    Trying to figure it out now.

Maybe you are looking for