Kuddi: problem kxml-rpc (full distribution)

Marc Logemann <[email protected]> Fri, 11 Jul 2003 13:19:38 +0200
Newsgroups gmane.comp.java.enhydra.kxmlrpc
Message-ID <[email protected]>
Hi,

i am just doing my first steps with kxml-rpc, i donwloaded the full archive
(with kxml shipped) and installed it in my MIDP app. Then i used one
of the free services as first test. Because i am a good boy, i didnt used
a service which waits for parameters, just for the sake of simplicity.

Whatever service i use (also with my own of course), i allways get this
stacktrace on my mobile emulator (Siemens C55 emulator):

------- snip -------
org.kxml.ParseException
:
unexpected: ParseEvent type=256 text='|'@-1:-1
java.lang.NullPointerException
:
Specified String must not be null
------- snap ---------

My code is pretty straightforward:

 xmlrpc = new XmlRpcClient("http://www.syndic8.com/xmlrpc.php");
 params = new Vector();
 String serverTime = (String) xmlrpc.execute("syndic8.GetCategorySchemes", params);

-

There must be a linebreak problem or something when the XML document returns from the server. Because the pipe seems to to be the first char of the response. But this is for every service i tested.

Can somebody point me to a direction how to debug this further on. Or better, a solution for this problem :-)

Thanks for help
---
greetings from
Marc Logemann
http://www.logemann.info