Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

Attempting to use ad-hoc commands. SessionID is null error. Is never set.

$
0
0

Hi,

I'm attempting to use the ad-hoc command manager, but unless I am using it wrong (there is no documentation), the RemoteCommand class seems to use a sessionID variable before it is set.

 

I'm trying to recreate example 8 in the XEP-0050 spec, XEP-0050: Ad-Hoc Commands

        AdHocCommandManager manager = AdHocCommandManager.getAddHocCommandsManager(connectionA);        RemoteCommand command = manager.getRemoteCommand(connectionA.getServiceName(), "list");        command.execute();

 

The execute method throws the exception: java.lang.IllegalArgumentException: session id must not be null or empty

 

Looking at the RemoteCommand class, the variable sessionID is never set. The class is never extended and there is no setter. So I can't see how it would ever be set.

 

Any ideas?

 

Thanks,

Phil


Viewing all articles
Browse latest Browse all 10742

Trending Articles