[OpenDHT-Users] Get problem
Marcos Tork
marcos.tork at gmail.com
Tue Oct 24 13:43:30 PDT 2006
Hi,
I am having trouble retrieving the information through the GET. I can make a
PUT successfully but I get an error when I try to GET the information back.
I used a packet analyzer (Ethereal) to verify the information being sent to
the DHT server. I found a GET script in python that worked, so I used the
packet analyzer to compare the information between the two GETs.
Here is the information being sent by the Python script:
`AT<Er at 6kfeLB yxNPDp<?xml version='1.0'?>
<methodCall>
<methodName>get</methodName>
<params>
<param>
<value><base64>
3KbqmuSqPDA2I61HR4rappOlUr0=
</base64></value>
</param>
<param>
<value><int>10</int></value>
</param>
<param>
<value><base64>
</base64></value>
</param>
<param>
<value><string>get.py</string></value>
</param>
</params>
</methodCall>
And here is the information being sent by my code:
`AT<EH@&kfe>jpNjPDp<?xml
version="1.0"?><methodCall><methodName>get</methodName><params><param><value><base64>cHJpbWVpcm9zZXJ2aWNv</base64></value></param><param><value><int>360</int></value></param><param><value><base64></base64></value></param><param><value>Dasm
Apps</value></param></params></methodCall>
The only differences I found between them is the fact that the first one is
somehow "structured" (which shouldnt matter, since its XML), and in the
last parameter the is a <string> tag inside the <value> tag.
This is the error message I get:
org.apache.xmlrpc.XmlRpcException: java.lang.NoSuchMethodException:
bamboo.dht.Gateway$XmlRpcGetHandler.get([B, int, [B, java.lang.String, [B,
java.lang.String, java.net.InetSocketAddress , bamboo.util.Curry$Thunk1)
at org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeException(
XmlRpcClientResponseProcessor.java:104)
at org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse (
XmlRpcClientResponseProcessor.java:71)
at org.apache.xmlrpc.XmlRpcClientWorker.execute(
XmlRpcClientWorker.java:73)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194)
at org.apache.xmlrpc.XmlRpcClient.execute (XmlRpcClient.java:185)
at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178)
And this is the part of the class where the parameters are set:
params = new Vector();
params.add(key.getBytes ());
params.add(maxvals);
params.add(placemark);
params.add(appName);
(key is a String
maxvals is a int
placemark is a new byte[0];
appName is a String)
I appreciate your help,
Marcos Tork
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gibbon.cs.berkeley.edu/pipermail/opendht-users/attachments/20061024/f9dd9a6e/attachment.html
More information about the OpenDHT-Users
mailing list