dflachbart
07-12-2006, 01:22 PM
I noticed that one of my plugins does not work correctly when I import it on my MVP, but the same plugin works fine on my server / clients.
I see the following exception during the import :
Wed 7/12 15:02:02.280 EXCEPTION in getValueAsObject:java.lang.Exception: EvaluatorVisitor.getValue(): Error during evaluation
My guess is that this is caused by passing the wrong UI context to the SageTV.apiUI() method... My import utility library always calls this API with the "SAGETV_PROCESS_LOCAL_UI" context, which is obviously wrong in case of the MVP.
Now, how do I obtain the correct context of the caller ? The java doc lists GetUIContextName(), which will only be available in 5.1, and GetUIContextNames(), which might return more than one context.
I just tried this out and printed the results of this API on my Server machine (running as a service), and on my MVP, and on both it only returned one context name ("SAGETV_PROCESS_LOCAL_UI" on the server, and the MAC address on the MVP). My question is: under which circumstances does the GetUIContextNames() API return multiple contexts, and how can I obtain the caller context in this case (before 5.1 comes out) ?
Thanks,
Dirk
I see the following exception during the import :
Wed 7/12 15:02:02.280 EXCEPTION in getValueAsObject:java.lang.Exception: EvaluatorVisitor.getValue(): Error during evaluation
My guess is that this is caused by passing the wrong UI context to the SageTV.apiUI() method... My import utility library always calls this API with the "SAGETV_PROCESS_LOCAL_UI" context, which is obviously wrong in case of the MVP.
Now, how do I obtain the correct context of the caller ? The java doc lists GetUIContextName(), which will only be available in 5.1, and GetUIContextNames(), which might return more than one context.
I just tried this out and printed the results of this API on my Server machine (running as a service), and on my MVP, and on both it only returned one context name ("SAGETV_PROCESS_LOCAL_UI" on the server, and the MAC address on the MVP). My question is: under which circumstances does the GetUIContextNames() API return multiple contexts, and how can I obtain the caller context in this case (before 5.1 comes out) ?
Thanks,
Dirk