retrieveCurrentProgramEvent, DATA_UNAVAILABLE. and ReadPermission

I've got this kind of code in my SIRequestor implementation:

publicvoid notifySuccess(SIRetrievable[] result){

String info =null;

if (result[0]instanceof ServiceDetails){

try{

((ServiceDetails)result[0]).getProgramSchedule().

retrieveCurrentProgramEvent(this);

}catch (SIException e){

e.printStackTrace();

}

}elseif (result[0]instanceof ProgramEvent){

ProgramEvent e = (ProgramEvent)result[0];

info = e.getName()

System.out.println("info"+info);

}

}

First I want to get ServiceDetails (for one Service) and it works fine. But when I call (or rather when my notifySuccess method calls) retrieveCurrentProgramEvent each time I get SIRequestFailureType with DATA_UNAVAILABLE reason.

I found something like this in JavaDoc for ProgramSchedule:

If the caller does not have javax.tv.service.ReadPermission(d.getLocator()) (where d is the current data event), this method will result in an SIRequestFailureType of DATA_UNAVAILABLE.

Is there any way I can fix this problem? Cause I'm lack of ideas.

Please help.

[1822 byte] By [el_chea] at [2007-10-2 7:43:10]
# 1

greetz...i have the same problem, as you read my "thread". do you use a thread in which you wait for the events or how do you manage to get events? do you know anything about time-interval in which such events occure? what LOCATOR do you use for your request, because thats my roblem...

...thanx bye tom.

TommyFIa at 2007-7-16 21:27:51 > top of Java-index,Java Mobility Forums,Consumer and Commerce...
# 2

void getPrograms(Service s) {

try {

si_manager.retrieveServiceDetails(s.getLocator(), this);

} catch (Exception e) {

e.printStackTrace();

}

}

That's how I get ServiceDetails. Service s is just one entry from collection retrieved by

ServiceList collection = si_manager.filterServices(filter);

I don't use a thread. Actually I'm just trying to run modified example of

SvcDispXlet from http://java.sun.com/developer/technicalArticles/javatv/apiintro/

I know that this example works fine because I've seen it in action on different STB.

el_chea at 2007-7-16 21:27:51 > top of Java-index,Java Mobility Forums,Consumer and Commerce...