0

MethodCall Bad Reply : org.freedesktop.DBus.Error.ServiceUnknown

asked 2014-11-29 00:43:17 -0700

qilei gravatar image

updated 2014-11-29 00:49:21 -0700

I try to methodcall between two android programs. But the program shows an error:

Caused by: org.alljoyn.bus.ErrorReplyBusException: org.freedesktop.DBus.Error.ServiceUnknown

The corresponding code as follows:

Log.i(TAG, "METHOD CALL");  
Log.i("Joiner Unique Name", TestApplication.joiner);

ProxyBusObject proxy = bus.getProxyBusObject(TestApplication.joiner,
                    APPL_OBJECT_PATH, 
                    sessionId,  
                    new Class<?>[] {Appliance.class});

Variant args = new Variant("Appliance Under Control", "s");
proxy.getInterface(Appliance.class).applianceControl(args);

break;

Thanks for the help!

edit retag flag offensive close merge delete

Comments

Please show the code where you register method call. The error show that the method is not exist.

congngale ( 2014-11-30 18:51:41 -0700 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-12-03 00:32:46 -0700

qilei gravatar image

I have solved this problem. I writed wrong word in the interface name.

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-11-29 00:43:17 -0700

Seen: 179 times

Last updated: Nov 29 '14