The interface type value "_type" is already null if not given as a parameter. But if given, it's being ignored while constructing the RemoteObject reference that will eventually be proxied. This leads to method invocations failing with "strange" errors (inapplicable instances of "access denied", for instance).
This correction caused the methods to at least be invoked correctly, and a test that verifies that this doesn't happen again by accident.
Added patch and unit test. I had to change some stuff on the test to get it to work - but now it will fail without your patch and pass with your patch.
I also fixed the same issue in DirectConnection.
The interface type value "_type" is already null if not given as a parameter. But if given, it's being ignored while constructing the RemoteObject reference that will eventually be proxied. This leads to method invocations failing with "strange" errors (inapplicable instances of "access denied", for instance).
This correction caused the methods to at least be invoked correctly, and a test that verifies that this doesn't happen again by accident.