Muhammad,
I think the problem you're running into is that the value must be specified
as a byte array.
Try this:
RiakObject o = new RiakObject("mybucket", "mykey", (new
String("myvalue")).getBytes());
I think that should do it.
Kelly
On Wed, Mar 30, 2011 at 1:09 PM, Muhammad Yousaf
wrot
Hi Russel ,Thanks a lot for your help that was soo helpful. But unfortunately i
got another error on creating object of riak object on following codeimport
com.basho.riak.client.RiakClient;import com.basho.riak.client.RiakObject;import
com.basho.riak.client.response.FetchResponse;public class
Build Path
> Problem
> Unbound classpath variable:
> 'M2_REPO/org/mockito/mockito-all/1.8.0/mockito-all-1.8.0.jar' in project
> 'RiakClient' RiakClient Build path Build Path Problem
>
> can you please tell me how can i fix them ?
>
nt-0.14.0.jarcommons-codec-1.2.jar
commons-httpclient-3.1.jarcommons-logging-1.0.4.jarprotobuf-java-2.3.0.jar
Regards,
Muhammad Yousaf
Subject: Re: Riak Java Client Error
From: russell.br...@me.com
Date: Wed, 30 Mar 2011 14:13:49 +0100
CC: riak-users@lists.basho.com
To: muhammad.you...@live.c
Hi Muhammad,
The riak java client depends on a couple of external libraries (eg. Apache
commons HttpClient, google protobufs). These need to be on your class path when
you run your program. The easiest way to do this is to use maven[1]. Using
maven means you can simply declare the client as a de