I installed tdk-2.1.zip. It still doesn't work. It even can't allow me to
add a job.
I used the following code:
new TurbineConfig("mypath", "TurbineResources.properties").init();
ScheduleService ss =
(ScheduleService)TurbineServices.getInstance().getService(ScheduleService.SE
RVICE_NAME);
JobEntry je = new JobEntry(second,minute,hour,weekday,dom,task_classname);
ss.addJob(je);
The error in the log is:
ERROR -- Problem saving new Scheduled Job: java.lang.NullPointerException
I looked into the source code of JobEntry.java,the following coding is in
the save() mothod
long key = ((NumberKey)getPrimaryKey()).getBigDecimal().longValue();
For a new job entry, the getPrimaryKey() will return NULL, so I got the
above exception.
Is IT A Bug?
-----Original Message-----
From: Jason van Zyl [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 3:32 PM
To: [EMAIL PROTECTED]
Subject: Re: scheduler service problem
On 6/27/01 3:26 PM, "Yong Jiao" <[EMAIL PROTECTED]> wrote:
> I a new user. I downloaded turbine-2.1b4.jar, and use it as standalone
First get the turbine-2.1.jar, that's a beta you downloaded.
>
> When I use the following TurbinSchedulerService methods, I always got
> NullPointerException:
> addJob(), getJob()
> I looked into the source code. It is related with the comparison of
> NumberKey objects.
>
> Are there any bugs in the scheduler service or I didn't setup properly?
> I appreciate Any advice.
What's the error you're getting. Post the stack trace, or a bit
of the log.
>
>
--
jvz.
Jason van Zyl
http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]