cancel
Showing results for 
Search instead for 
Did you mean: 

Scheduler task not getting executed

Former Member
0 Kudos

Hi,

I am trying to schedule a task using https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1515.

I have written some code in the run( ) to update existing resource.

I have scheduled task for every 10 minutes and It is not getting executed at all.

I don't see any log pertaining to this task in default trace.

I have tested the code written in run( ) by placing in AbstractPortalComponent and it is working fine there.

I am able to see that this task is running Sys Admin -> Monitoring -> KM ->Component Monitor.

When I get the target URL from the properties of this task in Component Monitor and place that in another window I get the message

501

Method not implemented

Could some one please guide me to achieve scheduling of task.

Regards,

Nagaraju Donikena

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Nagaraju,

navigate to: System Administration -> System Configuration -> Knowledge Management -> Content Management -> Global Services -> Scheduler Tasks -> pick your SchedulerTask (identify by given name), point it to a CM system and fill the timetable with appropriate values for scheduling.

Without these settings it will do nothing...

I suggest Debugging the Scheduler with NWDS, this might take some time but setting the Scheduler to executing every 5 minutes will make it easiert.

regards,

Christian

Former Member
0 Kudos

Hi Christian,

I have scheduled the job and I have selected CM systems at that time.

Can we debug the scheduler?Please let me know how to do it or providing any document which helps me in setting up debugging would be helpful.

Regards,

Nagaraju Donikena

Answers (3)

Answers (3)

Former Member
0 Kudos

My task is getting executed.

Thank you Henn.

Thank you Nguyen.

--Naga

THNguyen
Participant
0 Kudos

Hi,

I also encountered this problem in the past. Make sure that you have an empty constructor declared..somethine like this:

public class SchedulerTest implements ISchedulerTask {

public SchedulerTest() {

super();

}

public void run( String id, Properties properties ) {

...your code here...

}

}

Hope this help.

Regards,

The Hung Nguyen

Former Member
0 Kudos

Hi Nagaraju,

i'm using NWDS 7.0.13, so here's how I'm debugging it:

Go to Run -> Debug ...

Pick "Remote Java Application" -> New (context menu)

Pick a name, a project in the NWDS workspace, Connection type standard (Socket Attach), use your EP host as host and port 50021 for port.

The settings for host and port must be asked for at your administrator.

Attention: The server must be debug enabled, which you can see in the Web Dynpro perspective of NWDS under J2EE engine. Check if your server instance is green (Running) and debug mode is ON.

If you start debugging by clicking the debug sign in the NWDS the debugger jumps in when the Scheduler is executed. You can debug it just as you would with a standard java app.

Hope I could help you!

regards,

Christian