IllegalMonitorStateException in Timer

Hi,

I have a simple Timer that schedules itself in startApp(). But every time I run the midlet it throws this exception.

java/lang/IllegalMonitorStateException:

at java/util/TimerThread::run()V+10

my code looks like this.

//create the timer task

notificationTask = new NotificationTask();

//create the timer

notificationTimer = new Timer();

//schedule the timer

notificationTimer.schedule(notificationTask, 30000, 60000);

Any help would be greatly appreciated.

[541 byte] By [sunethpra] at [2007-11-27 0:53:34]
# 1
Could you show us the NotificationTask code and kindly make use of the available code formatting tips so that it will be more legible.~Mohan
itsmohana at 2007-7-11 23:25:32 > top of Java-index,Java Mobility Forums,Java ME Technologies...