Riak Java Client: PBClientConfig.Builder is not a value

Koushik Kothagal koushik.kothagal at virginamerica.com
Mon Oct 28 14:32:49 EDT 2013


Aren't you missing the new operator?

PBClientConfig pbcc = *new*
PBClientConfig.Builder().withHost("127.0.0.1").build();

-Koushik




On Mon, Oct 28, 2013 at 10:53 AM, Ari King <ari.brandeis.king at gmail.com>wrote:

> I'm following the java client wiki<https://github.com/basho/riak-java-client/wiki/ClientFactory>(using Riak Java Client 1.4.2) to create a client from PBClientConfig.
> However, I'm consistently getting the following error: object
> com.basho.riak.client.raw.pbc.PBClientConfig.Builder is not a value
>
> Does anyone know how to resolve this?
>
> Below is a snippet of the code:
>
>  PBClientConfig pbcc = PBClientConfig.Builder().withHost("127.0.0.1").build();
>  IRiakClient myPbClient = RiakFactory.newClient(pbcc);
>
> Thanks.
>
> -Ari
>
> _______________________________________________
> riak-users mailing list
> riak-users at lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20131028/f297603b/attachment.html>


More information about the riak-users mailing list