Riak Java Client Error

Muhammad Yousaf muhammad.yousaf at live.com
Wed Mar 30 08:38:50 EDT 2011


Hi,
While playing with riak java client i am getting lots of error 
this is my code 
import com.basho.riak.client.RiakClient;import com.basho.riak.client.RiakObject;import com.basho.riak.client.response.FetchResponse;
public class RiakTest {
    public static void main(String[] args) {
        // connect        RiakClient riak = new RiakClient("http://localhost:8098/riak");
        // create object        RiakObject o = new RiakObject("mybucket", "mykey", "myvalue");
        // store        riak.store(o);      }}

getting errors like 
./com/basho/riak/client/RiakClient.java:20: package org.apache.commons.httpclient does not existimport org.apache.commons.httpclient.HttpClient;                                    ^./com/basho/riak/client/util/ClientHelper.java:21: package org.apache.commons.codec.binary does not existimport org.apache.commons.codec.binary.Base64;                                      ^./com/basho/riak/client/util/ClientHelper.java:22: package org.apache.commons.httpclient does not existimport org.apache.commons.httpclient.HttpClient;                                    ^./com/basho/riak/client/util/ClientHelper.java:23: package org.apache.commons.httpclient does not existimport org.apache.commons.httpclient.HttpMethod;                                    ^./com/basho/riak/client/util/ClientHelper.java:24: package org.apache.commons.httpclient.methods does not existimport org.apache.commons.httpclient.methods.ByteArrayRequestEntity;                                            ^./com/basho/riak/client/util/ClientHelper.java:25: package org.apache.commons.httpclient.methods does not existimport org.apache.commons.httpclient.methods.DeleteMethod;                                            ^./com/basho/riak/client/util/ClientHelper.java:26: package org.apache.commons.httpclient.methods does not existimport org.apache.commons.httpclient.methods.GetMethod;                                            ^./com/basho/riak/client/util/ClientHelper.java:27: package org.apache.commons.httpclient.methods does not existimport org.apache.commons.httpclient.methods.HeadMethod;                                            ^./com/basho/riak/client/util/ClientHelper.java:28: package org.apache.commons.httpclient.methods does not existimport org.apache.commons.httpclient.methods.PostMethod;                                            ^./com/basho/riak/client/util/ClientHelper.java:29: package org.apache.commons.httpclient.methods does not existimport org.apache.commons.httpclient.methods.PutMethod;                                            ^./com/basho/riak/client/util/ClientHelper.java:30: package org.apache.commons.httpclient.methods does not existimport org.apache.commons.httpclient.methods.StringRequestEntity;                                            ^

./com/basho/riak/client/response/DefaultHttpResponse.java:20: package org.apache.commons.httpclient does not existimport org.apache.commons.httpclient.HttpMethod;                                    ^./com/basho/riak/client/response/DefaultHttpResponse.java:36: cannot find symbolsymbol  : class HttpMethodlocation: class com.basho.riak.client.response.DefaultHttpResponse    private HttpMethod httpMethod = null;            ^./com/basho/riak/client/response/DefaultHttpResponse.java:39: cannot find symbolsymbol  : class HttpMethodlocation: class com.basho.riak.client.response.DefaultHttpResponse            InputStream stream, HttpMethod httpMethod) {                                ^./com/basho/riak/client/response/DefaultHttpResponse.java:88: cannot find symbolsymbol  : class HttpMethodlocation: class com.basho.riak.client.response.DefaultHttpResponse    public HttpMethod getHttpMethod() {           ^RiakTest.java:13: cannot find symbolsymbol  : constructor RiakObject(java.lang.String,java.lang.String,java.lang.String)location: class com.basho.riak.client.RiakObject        RiakObject o = new RiakObject("mybucket", "mykey", "myvalue");


Can anyone tell what i am doing wrong ???


Regards,
Muhammad Yousaf

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20110330/3631b40d/attachment.html>


More information about the riak-users mailing list