librelist archives

« back to archive

about efene and riak erlang client

about efene and riak erlang client

From:
Junji Takakura
Date:
2011-02-22 @ 21:13
@public
run = fn () {
  io.format("Hello World!~n")
}

Hi, my name is Junji Takakura and I'm new to efene and erlang.

Now, I try to use riak client(https://github.com/basho/riak-erlang-client)
with efene in interactive shell mode.
I could register a record but not get because bellow exception was occured.
(I could get using erlang (and riak console) without exception.)
How do I solve it?
Thanks

-----
#efene
>>> (ok, Pid) = riakc_pb_socket.start_link("127.0.0.1", 8087)
{ok, <0.28.0>}
>>> Object = riakc_obj.new(<["groceries"]>, <["mine"]>, <["eggs & bacon"]>)
{riakc_obj, <["groceries"]>, <["mine"]>, undefined, [], undefined, <["eggs
& bacon"]>}
>>> riakc_pb_socket.put(Pid, Object)
ok
>>> (ok, O) = riakc_pb_socket.get(Pid, <["groceries"]>, <["mine"]>)
exception throw: function_clause
 in function  fio:'-format/1-lc$^1/1-1-'/1
    called as fio:'-format/1-lc$^1/1-1-'({1298,407796,372651})
 in call from fio:'-format/1-lc$^1/1-1-'/1
 in call from fio:format/1
 in call from fio:'-format/1-lc$^1/1-1-'/1
 in call from fio:format/1
 in call from fio:'-format/1-lc$^0/1-0-'/1
 in call from fio:'-format/1-lc$^0/1-0-'/1
 in call from fio:format/1

# erlang
1> {ok, Pid} = riakc_pb_socket:start_link("127.0.0.1",8087).
{ok,<0.33.0>}
2> {ok, O} = riakc_pb_socket:get(Pid, <<"groceries">>, <<"mine">>).
{ok,{riakc_obj,<<"groceries">>,<<"mine">>,
              <<107,206,97,96,96,224,206,96,202,5,82,44,12,183,102,92,
                201,96,74,100,204,99,101,...>>,
              [{{dict,2,16,16,8,80,48,
                      {[],[],[],[],[],[],[],[],[],[],[],[],...},
                      {{[],[],[],[],[],[],[],[],[],[],...}}},
                <<"eggs & bacon">>}],
              undefined,undefined}}

Re: [efene] about efene and riak erlang client

From:
Mariano Guerra
Date:
2011-03-05 @ 00:23
On Tue, Feb 22, 2011 at 9:13 PM, Junji Takakura <j.takakura@gmail.com> wrote:
> @public
> run = fn () {
>  io.format("Hello World!~n")
> }
>
> Hi, my name is Junji Takakura and I'm new to efene and erlang.
>
> Now, I try to use riak 
client(https://github.com/basho/riak-erlang-client) with efene in 
interactive shell mode.
> I could register a record but not get because bellow exception was occured.
> (I could get using erlang (and riak console) without exception.)
> How do I solve it?

I think the problem is solved now, you will have to update the code
and build it again

let me know if it works

Re: [efene] about efene and riak erlang client

From:
Mariano Guerra
Date:
2011-02-23 @ 14:06
On Tue, Feb 22, 2011 at 6:13 PM, Junji Takakura <j.takakura@gmail.com> wrote:
> @public
> run = fn () {
>  io.format("Hello World!~n")
> }
>
> Hi, my name is Junji Takakura and I'm new to efene and erlang.
>
> Now, I try to use riak 
client(https://github.com/basho/riak-erlang-client) with efene in 
interactive shell mode.
> I could register a record but not get because bellow exception was occured.
> (I could get using erlang (and riak console) without exception.)
> How do I solve it?
> Thanks
>
> -----
> #efene
>>>> (ok, Pid) = riakc_pb_socket.start_link("127.0.0.1", 8087)
> {ok, <0.28.0>}
>>>> Object = riakc_obj.new(<["groceries"]>, <["mine"]>, <["eggs & bacon"]>)
> {riakc_obj, <["groceries"]>, <["mine"]>, undefined, [], undefined, 
<["eggs & bacon"]>}
>>>> riakc_pb_socket.put(Pid, Object)
> ok
>>>> (ok, O) = riakc_pb_socket.get(Pid, <["groceries"]>, <["mine"]>)
> exception throw: function_clause
>  in function  fio:'-format/1-lc$^1/1-1-'/1
>    called as fio:'-format/1-lc$^1/1-1-'({1298,407796,372651})
>  in call from fio:'-format/1-lc$^1/1-1-'/1
>  in call from fio:format/1
>  in call from fio:'-format/1-lc$^1/1-1-'/1
>  in call from fio:format/1
>  in call from fio:'-format/1-lc$^0/1-0-'/1
>  in call from fio:'-format/1-lc$^0/1-0-'/1
>  in call from fio:format/1
>
> # erlang
> 1> {ok, Pid} = riakc_pb_socket:start_link("127.0.0.1",8087).
> {ok,<0.33.0>}
> 2> {ok, O} = riakc_pb_socket:get(Pid, <<"groceries">>, <<"mine">>).
> {ok,{riakc_obj,<<"groceries">>,<<"mine">>,
>              <<107,206,97,96,96,224,206,96,202,5,82,44,12,183,102,92,
>                201,96,74,100,204,99,101,...>>,
>              [{{dict,2,16,16,8,80,48,
>                      {[],[],[],[],[],[],[],[],[],[],[],[],...},
>                      {{[],[],[],[],[],[],[],[],[],[],...}}},
>                <<"eggs & bacon">>}],
>              undefined,undefined}}


hi, thanks for the report!

sadly my computer died yesterday so I'm used a borrowed computer, the
bug seems to be in the format function used in the shell, I will try
to fix that as soon as I can.

thanks!

PS: if you have any doubt about the language just ask :)