Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Java 1.3 java.util.Timer - issue!

Reply
Thread Tools

Java 1.3 java.util.Timer - issue!

 
 
amy j
Guest
Posts: n/a
 
      10-13-2004
I'm scheduling one-time timer tasks, and occasionally the scheduled
task never executes. I am running Java 1.3 on the server and using
java.util.Timer and java.util.TimerTask. Does ANYONE know why this
might be happening?
Does anyone know of a bug in 1.3 or had this issue before? Any
Suggestions for a cure.
 
Reply With Quote
 
 
 
 
Andrew Thompson
Guest
Posts: n/a
 
      10-13-2004
On 13 Oct 2004 03:43:17 -0700, amy j wrote:

> I'm scheduling one-time timer tasks, ...


And yet posting to two (or more) groups.
Please refrain from multi-posting, Amy.
<http://www.physci.org/codes/javafaq.jsp#xpost>

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane
 
Reply With Quote
 
 
 
 
Alex Hunsley
Guest
Posts: n/a
 
      10-13-2004
amy j wrote:
> I'm scheduling one-time timer tasks, and occasionally the scheduled
> task never executes. I am running Java 1.3 on the server and using
> java.util.Timer and java.util.TimerTask. Does ANYONE know why this
> might be happening?
> Does anyone know of a bug in 1.3 or had this issue before? Any
> Suggestions for a cure.


Not heard of anything. Can you post any code?
e.g. the code that sets up the task, and the code that actually gets
exectued. Gives us more of a chance to look for something going wrong.

alex
 
Reply With Quote
 
Mike Schilling
Guest
Posts: n/a
 
      10-13-2004

"amy j" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> I'm scheduling one-time timer tasks, and occasionally the scheduled
> task never executes. I am running Java 1.3 on the server and using
> java.util.Timer and java.util.TimerTask. Does ANYONE know why this
> might be happening?
> Does anyone know of a bug in 1.3 or had this issue before? Any
> Suggestions for a cure.


If any of the tasks throw an exception, the timer thread will exit. Could
this be what's happening?


 
Reply With Quote
 
Alex Hunsley
Guest
Posts: n/a
 
      10-13-2004
amy j wrote:
> I'm scheduling one-time timer tasks, and occasionally the scheduled
> task never executes. I am running Java 1.3 on the server and using
> java.util.Timer and java.util.TimerTask. Does ANYONE know why this
> might be happening?
> Does anyone know of a bug in 1.3 or had this issue before? Any
> Suggestions for a cure.


Here's a thought: TimerTask only uses one thread to run stuff. So if one
task you are running takes too long, the next scheduled task won't start
till the run() method of the one still running exits. Could it be that?

alex
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hot Requirements: 1.Sr Java Developer,2.Java Developer (Java with EJB) Isaac Java 0 01-20-2011 08:41 PM
hey i am just started java,, can anyone tell me the use ,application, why java , importance of java.. manish sahu Java 3 02-14-2008 12:00 AM
[JAVA] [EVALUATION] - The Java Failure (Sorry: The Java(tm) Failure) Ilias Lazaridis Java 0 02-01-2005 10:32 AM
JAVA VIRTUAL MUCHINE OR SUN JAVA Fernando Kohan Firefox 1 11-14-2004 02:04 AM
Job to convert Java App 1.3.1 to Java Newest of Java Michael Kintner Java 0 11-30-2003 04:42 AM



Advertisments