Focal Point
Running a schedule using Report Caster Webservice

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2491009331

October 21, 2005, 07:07 PM
<Natesh>
Running a schedule using Report Caster Webservice
I am building a asp.net website for ReportCaster5.3.2 WebService. I am able to add a new schedule & retrieve schedules details.

But when I use the "run" method in ScheduleService, I get a java.lang.nullpointer exception. I don't see any information in the log, so I know the schedule did not even execute.

But I am able to execute the same schedule successfully from Java WebStart version.

I am not able to figure out why I am getting this exception. Any help will be greatly appreciated.
October 25, 2005, 09:06 PM
dhagen
Can you post your code? Far easier to debug that way!

Don't you have to recast your scheduleservice with a getscheduleservice() as schedulemanager to perform a schedulemanager.run(logon,schedule_name) ?
October 27, 2005, 03:44 PM
<Natesh>
Thank you very much for your response. Here is my code for running the schedule

public string runSchedule(string schedId)
{
Login ldd = (Login)HttpContext.Current.Session["UserLoginInfo"];
String jobId = " ";
String sectoken = ldd.SecToken;
rcScheduleService.Authenticate auth = new rcScheduleService.Authenticate();
auth.securityToken = sectoken;
auth.user = ldd.UserId;
auth.password = ldd.Password;
try
{

rcScheduleService.Schedule scheduleInfo = rcSchedManager.getSchedule(auth, schedId);
jobId = rcSchedManager.run(auth,scheduleInfo);
}

catch (Exception e)
{
jobId = e.Message;
}
return (jobId);
}
October 27, 2005, 03:46 PM
<Natesh>
I forgot to provide these statements in my previous posting.

rcLogonService.LogonManagerWSService rcLogonManager = new rcLogonService.LogonManagerWSService();
rcUserService.UserManagerWSService rcUserManager = new rcUserService.UserManagerWSService();
rcScheduleService.ScheduleManagerWSService rcSchedManager = new rcScheduleService.ScheduleManagerWSService();