wood burning stoves 2.0*
The moose likes Threads and Synchronization and the fly likes Timer stopped automatically? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "Timer stopped automatically?" Watch "Timer stopped automatically?" New topic
Author

Timer stopped automatically?

Edward Durai
Ranch Hand

Joined: Oct 09, 2004
Posts: 223
I am using Java java.util.Timer in my application. i have given the time duration 1 minute. In my system, it is working. but i have tried in the other system, it's automatically stopped after 1 minutes.

the problem is in system or program (but i did not get any error/problem in my system. it is working good)
Please advise.


Thank You<br />Edward
shahabas shabeer
Ranch Hand

Joined: Feb 23, 2004
Posts: 49
Can you include more info like OS in both the systems, code snipped where you are scheduling the timer etc..


The greatest pleasure in life is doing what peoples say you can not do.
Edward Durai
Ranch Hand

Joined: Oct 09, 2004
Posts: 223
Both system OS IS, WINDOWS XP 2000 Professional Edition
In properties file, I have configured the time duration.

thanks please let me know
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

You'll need to provide more details. Based on the current details I believe your machine is sentient.
Edward Durai
Ranch Hand

Joined: Oct 09, 2004
Posts: 223
what info. you need. could you please tell me, i think some problem in the system. right? please advise.
shahabas shabeer
Ranch Hand

Joined: Feb 23, 2004
Posts: 49
Hard code the time duration and try in both the systems again. This way you can verify that if the value is read from the properties file properly.

Not sure whether you have tried this already. If not this is worth giving a try.

Please post the code snippet if you are still having issues.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Timer stopped automatically?
 
Similar Threads
Checkbox Issue
No suitable driver
Eclipse "Build Automatically" Not Working
Run class file error
Disqus Implementation on Rails