Export to GitHub

vbulletin-desktop-notifier - issue #1

resolveing com.nsuers.vbulletin_xml_rpc_client.ServiceError


Posted on Oct 22, 2008 by Grumpy Monkey

If you are getting error message that looks like: {{{ com.nsuers.vbulletin_xml_rpc_client.ServiceError at com.nsuers.vbulletin_xml_rpc_client.VbulletinXmlRpcJClient.require_token(Vb ulletinXmlRpcJClient.java:97) at com.nsuers.vbulletin_xml_rpc_client.ForumServ.get_latest_tread(ForumServ.ja va:33) at Notifier$AutoCheck.run(Notifier.java:213) at java.util.TimerThread.mainLoop(Unknown Source) at java.util.TimerThread.run(Unknown Source) }}}

then you are in correct place to resolve this issue.

This error occurs when the application asks for a service without issuing a valid token in server side.

In order to issue a token, you need to send login information to vbulletin- xml-rpc-server. If login is correct, then a token will be assigned for a session. Example code:

{{{

UserServ us = new UserServ(); us.login("vbulletin-user-name", "password");

//check if login is correct if(ServiceError.error_code != 0) { System.out.println(ServiceError.error_message);
} else { //call services that requires valid token. //for example: Map thread = fs.get_latest_tread(); System.out.println("Latest thread title" + thread.get("topic_title").toString()); //etc etc.... }

}}}

Comment #1

Posted on Oct 22, 2008 by Grumpy Monkey

Comment deleted

Status: Verified

Labels:
Type-Other Priority-Medium