Skip to main content

Grin and Ocap-ri

3 replies [Last post]
jydrolet
Offline
Joined: 2009-06-12
Points: 0

Hi,

Is there a "recipe" to get Grin to run on the OCAP-RI ? I am aware of the OCAP branch of Grin, this is what I used.

But I get to the point where all "compiles" and "builds" fine in Eclipse, but when I lauch the Simulator I get the following errors and nothing comes-up. The other ocap example run fine...

ERROR RI.Stack - <> nativeGetAllServices - mpe_siGetTotalNumberOfServices() not successful = 0x4006

ERROR RI.Stack - DownloadManagerImpl_nRegisterAsync couldn't register async listener: err 0x65
ERROR RI.Stack - 2313 [main] ERROR event.SystemEventManager - Couldn't register a listener for native async CommonDownload events
ERROR RI.Stack - RRMgrImpl::nAddCallback: could not register Callback
ERROR RI.Stack - RRMgrImpl::nAddCallback: could not register Callback
ERROR RI.Stack - RRMgrImpl::nAddCallback: could not register Callback

ERROR RI.Stack - 8391 [main] ERROR service.ServicesDatabaseImpl - ServicesDatabaseImpl got IllegalArgumentExceptionnull

INFO RI.Stack - 8391 [xait] INFO event.SystemEventManager - SysInfoEvent[4000000,2/22/10 6:20 PM] XAIT.properties read/parsed
INFO RI.Stack - 8406 [System-1] INFO appstorage.AppStorageImpl - AppStorage: maxBytes=104857600 dir=/syscwd/persistent/app
INFO RI.Stack - 8422 [System-1] INFO appstorage.StorageEntrySerializer - Initialized: org.cablelabs.impl.manager.appstorage.StorageEntrySerializer@3beca012[baseDir=/syscwd/persistent/app,prefix=dat,lastId=0]
INFO RI.Stack - 8422 [System-1] INFO appstorage.AppStorageImpl - Database loaded 0 bytes
ERROR RI.Stack - 8438 [main] ERROR service.ServicesDatabaseImpl - ServicesDatabaseImpl got IllegalArgumentExceptionnull

Thanks for any help in advance !

Best regards

/Jean

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
chihiro_saito
Offline
Joined: 2006-11-08
Points: 0

Hi Jean,

Do we have a OCAP branch for GRIN? I didn't know that!

As for your question, I don't think there is a 'recipe" for running grin app on ocap yet, but it should be fairly easy to make it work. The library probably needs minimal tweaking to get rid of org.bluray API calls (like GrinXHelper's RegisterAccess), after that it should just work. The error you're quoting from OCAP-RI, as far as I can tell, doesn't seem to be pointing to a grin problem directly.

Best,
Chihiro

jydrolet
Offline
Joined: 2009-06-12
Points: 0

Hi,

Thanks, I will post this request on the ocap-ri forum then.

Cheers !

/Jean

jydrolet
Offline
Joined: 2009-06-12
Points: 0

Hi,

Just to let you know that I was finally able to get the HelloGrinWorld to run on the ocap-ri.

I just need to have an appId in the 4000 range and copy the relevant javaME grin classes and resources into the bin directory (or target directory if you prefer).

Best Regards

/Jean