Houssamby / android-xmlrpc

Automatically exported from code.google.com/p/android-xmlrpc
0 stars 0 forks source link

unable to send xmlrpc second parameter :( #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
i created an activity that use xml rpc to send a command with two parametres. 
the problem is when the second parametre is a String value, the whole 
application crashes with the error java.lang.ClassCastException: 
java.lang.Integer.... and when i change it into an INT (integer), the 
application doesn't crash but i have an xml rpc error telling me that i've used 
an integer where i should have used a string value.
can someone help me please?
1. first annexe, the logcat output and the second one, my activity class

2.NB: i've already use xmlrpc client for one single parametre and it works fine.

3. i hope my english is enough good to be understood.

4.THX for reading and trying to help, greetings

Please provide any additional information below.

Original issue reported on code.google.com by ayshmb1...@gmail.com on 18 Jan 2012 at 1:49

Attachments:

GoogleCodeExporter commented 9 years ago
in Viewer.java, line 48 do the following:

Object obj = client.call(...)

and call Log.d with obj.getClass()

Original comment by psk...@gmail.com on 20 Jan 2012 at 6:48

GoogleCodeExporter commented 9 years ago
thx maynn, it works like a charm... Actually it was the server sending me an 
integer as answer :-)

Original comment by ayshmb1...@gmail.com on 21 Jan 2012 at 1:27

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by psk...@gmail.com on 22 Jan 2012 at 4:47