Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Timer stopped automatically?

 
Edward Durai
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
shahabas shabeer
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you include more info like OS in both the systems, code snipped where you are scheduling the timer etc..
 
Edward Durai
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to provide more details. Based on the current details I believe your machine is sentient.
 
Edward Durai
Ranch Hand
Posts: 223
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what info. you need. could you please tell me, i think some problem in the system. right? please advise.
 
shahabas shabeer
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic