Getting Problem in Using XML-RPC Parser

Common bugs/problems with the Android SDK the Emulator and the ADT-Plugin.

Getting Problem in Using XML-RPC Parser

Postby shaamu786 » Thu Jan 28, 2010 1:19 am


I am using XML-RPC parser for Android SDK 1.5. Here is the link from where i downloaded the code

But the problem is that given classes are deprecated from SDK 1.5 which used in the above code...;;;

so tell me how i replace these classes for SDK 1.5

If have any idea please share with me....

Junior Developer
Junior Developer
Posts: 16
Joined: Tue Sep 01, 2009 7:17 am
Location: Delhi


Problem with XML-RPC

Postby Nando_madsa » Sat Mar 20, 2010 3:33 pm

Hi all,

I'm getting the same trouble shamu commented, I cannot set up XML-RPC as indicated in the tutorial written by daniel.kick.ass (unable to include the URL because this is my first post ;-) whatever, it is the same commented in the previous post from shamu) because the some of the classes that were included in the package are not currently supported in the actual SDK release.

How can I make it works in the current SDK version??
Posts: 3
Joined: Sat Mar 20, 2010 3:22 pm

Postby pskink » Sat Mar 20, 2010 5:43 pm

did you try recent version of ?
Master Developer
Master Developer
Posts: 719
Joined: Mon Nov 24, 2008 3:49 pm

Postby Nando_madsa » Sat Mar 20, 2010 9:37 pm

Unfortunately, that idea comes to me after sending my question.

I've already downloaded the project and make it work with ther server included in eclipse. So I do apologize for my stupid question before looking for all the available doc.

By te way, congratulations for your work in the project and thank you very much for sharing it with all people. I hope with the project my group is working on.
Posts: 3
Joined: Sat Mar 20, 2010 3:22 pm

Postby Nando_madsa » Wed Mar 31, 2010 10:54 pm

Hi again pskink,

I'm currently working in a server based on Java to make some test functionality por XML-RPC. Basically just as the provided at your project in google code but I need to learn how to implement it in Java for a future application.

Basically I'm getting a nasty exception which, after looking into some webs and forums, I'm not able to fix.

The client part is the same provided in the project and the server is this one:

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. import org.apache.xmlrpc.server.PropertyHandlerMapping;
  2. import org.apache.xmlrpc.server.XmlRpcServer;
  3. import org.apache.xmlrpc.webserver.WebServer;
  6. public class JavaServer {
  8.         final static int port = 8080;
  10.         public int add(int i1, int i2) {
  11.                 return i1 + i2;
  12.         }
  14.         public static void main(String[] args) {
  16.                 try {
  17.                         System.out.println("Attempting to start XML-RPC server...");
  18.                         WebServer webServer = new WebServer(port);
  19.                         XmlRpcServer xmlRpcServer = webServer.getXmlRpcServer();
  20.                         PropertyHandlerMapping phm = new PropertyHandlerMapping();
  21.                         phm.addHandler("add", JavaServer.class);
  22.                         xmlRpcServer.setHandlerMapping(phm);
  23.                         webServer.start();
  24.                 } catch (Exception ex) {
  25.                         ex.printStackTrace();
  26.                 }
  28.         }
  30. }
Parsed in 0.013 seconds, using GeSHi

The stack I'm getting printed after making with the client the first request, the one of the sum, is:

31-mar-2010 23:31:07 org.apache.xmlrpc.server.XmlRpcErrorLogger log
GRAVE: No such handler: add
org.apache.xmlrpc.server.XmlRpcNoSuchHandlerException: No such handler: add
at org.apache.xmlrpc.server.AbstractReflectiveHandlerMapping.getHandler(
at org.apache.xmlrpc.server.XmlRpcServerWorker.execute(
at org.apache.xmlrpc.server.XmlRpcServer.execute(
at org.apache.xmlrpc.server.XmlRpcStreamServer.execute(
at org.apache.xmlrpc.util.ThreadPool$Poolable$
31-mar-2010 23:31:54 org.apache.xmlrpc.server.XmlRpcErrorLogger log

Which handler I'm supposed to add to my server??

Of course, I will be very grateful if you comment to me any mistake or something you think I need to improve in my code.

Thank you very much for your help, best regards

Posts: 3
Joined: Sat Mar 20, 2010 3:22 pm


Return to SDK/ADT/Emulator Problems

Who is online

Users browsing this forum: No registered users and 3 guests