D
Daisy
I had a problem that I fixed, but aroused my curiosity. I'd appreciate
any insights you have.
I had a Timer (java.util not Swing) cancel in my server over the three
day weekend a week ago. I'll fix the problem by instantiating a new
Timer instance when I catch the IllegalState error. However, I'm
curious why the timer would cancel.
1. There is no call to Timer. cancel() in the code
2. This code has worked well for more than a year
The Java API says," After the last live reference to a Timer object
goes away and all outstanding tasks have completed execution, the
timer's task execution thread terminates gracefully (and becomes
subject to garbage collection). However, this can take arbitrarily long
to occur."
I'm wondering if the 3 days of without a task constitutes arbitrarily
long?
I'm running JRockit 1.5 on SuSE 8.3
Thanks
any insights you have.
I had a Timer (java.util not Swing) cancel in my server over the three
day weekend a week ago. I'll fix the problem by instantiating a new
Timer instance when I catch the IllegalState error. However, I'm
curious why the timer would cancel.
1. There is no call to Timer. cancel() in the code
2. This code has worked well for more than a year
The Java API says," After the last live reference to a Timer object
goes away and all outstanding tasks have completed execution, the
timer's task execution thread terminates gracefully (and becomes
subject to garbage collection). However, this can take arbitrarily long
to occur."
I'm wondering if the 3 days of without a task constitutes arbitrarily
long?
I'm running JRockit 1.5 on SuSE 8.3
Thanks