Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error handling for sync invocations in Java
28-11-2011, 03:51 PM (This post was last modified: 29-11-2011 08:51 AM by simonc.)
Post: #4
RE: Error handling for sync invocations in Java
(28-11-2011 03:44 PM)simoncn Wrote:  Thanks! I can edit my proxies to correct this temporarily, assuming that I know what the code should be doing. My guess is that I should change:

sync.waitToComplete();
try
{
sync.reportError();
}
catch (ProxyError pe) { }
return sync.getSearchCaps();

to the following:

sync.waitToComplete();
sync.reportError();
return sync.getSearchCaps();

Does this sound OK?

That sounds ideal. Would you mind confirming that this does work for you?

The easiest way to test this out will be to edit around line 381 of ohnet/Openhome/Net/T4/Templates/CpUpnpJava.tt

If you're using standard services, then run make CpJava uset4=yes. If you're using custom services you've defined, re-running ohNetGen should have the same effect.
Find all posts by this user


Messages In This Thread
RE: Error handling for sync invocations in Java - simonc - 28-11-2011 03:51 PM

Forum Jump: