[erlang-questions] Open Erlang SMPP library using problem?

chamin madura <>
Tue Sep 27 07:41:08 CEST 2011


Hi all ,
    I am trying to use OSERL ,according to it's user guide(
http://oserl.sourceforge.net/oserl/index.html).
    try test it with submit_esme.erl


 $ erlc -W -I ../../include -pz ../../ebin submit_esme.erl

arise many warnings ,see this is out put,

./submit_esme.erl:4: Warning: undefined callback function
handle_accept/3 (behaviour 'gen_esme')
./submit_esme.erl:4: Warning: undefined callback function
handle_alert_notification/2 (behaviour 'gen_esme')
./submit_esme.erl:4: Warning: undefined callback function
handle_closed/2 (behaviour 'gen_esme')
./submit_esme.erl:4: Warning: undefined callback function
handle_data_sm/3 (behaviour 'gen_esme')
./submit_esme.erl:4: Warning: undefined callback function
handle_deliver_sm/3 (behaviour 'gen_esme')
./submit_esme.erl:4: Warning: undefined callback function
handle_outbind/2 (behaviour 'gen_esme')
./submit_esme.erl:4: Warning: undefined callback function handle_req/4
(behaviour 'gen_esme')
./submit_esme.erl:4: Warning: undefined callback function
handle_resp/3 (behaviour 'gen_esme')
./submit_esme.erl:4: Warning: undefined callback function start_link/4
(behaviour 'gen_esme')
./submit_esme.erl:165: Warning: variable 'From' is unused
./submit_esme.erl:165: Warning: variable 'Pdu' is unused
./submit_esme.erl:165: Warning: variable 'Session' is unused
./submit_esme.erl:189: Warning: variable 'From' is unused
./submit_esme.erl:189: Warning: variable 'Pdu' is unused
./submit_esme.erl:189: Warning: variable 'Session' is unused
./submit_esme.erl:224: Warning: variable 'From' is unused
./submit_esme.erl:224: Warning: variable 'Pdu' is unused
./submit_esme.erl:224: Warning: variable 'Session' is unused
./submit_esme.erl:257: Warning: variable 'From' is unused
./submit_esme.erl:257: Warning: variable 'Pdu' is unused
./submit_esme.erl:257: Warning: variable 'Session' is unused
./submit_esme.erl:306: Warning: variable 'From' is unused
./submit_esme.erl:324: Warning: integer/1 obsolete
./submit_esme.erl:353: Warning: variable 'Request' is unused
./submit_esme.erl:377: Warning: variable 'Info' is unused
./submit_esme.erl:392: Warning: variable 'S' is unused
./submit_esme.erl:394: Warning: variable 'Reason' is unused
./submit_esme.erl:409: Warning: variable 'Extra' is unused
./submit_esme.erl:409: Warning: variable 'OldVsn' is unused
./submit_esme.erl:443: Warning: function read_string/1 is unused

then I try to run it according to user guide (after add compatible code path),

1>submit_esme:start_link().
 ********************** output is
  =ERROR REPORT==== 27-Sep-2011::11:07:43 ===
** Generic server <0.52.0> terminating
** Last message in was {'EXIT',<0.50.0>,
                           {badarg,
                               [{ets,insert,
                                    [cl_queue_tab,
                                     {<0.50.0>,<0.52.0>,<0.53.0>}]},
                                {cl_queue_tab,insert,2},
                                {gen_esme,init,1},
                                {gen_server,init_it,6},
                                {proc_lib,init_p_do_apply,3}]}}
** When Server state == {st,<0.50.0>,undefined,0,0,{1317,101863,441293}}
** Reason for termination ==
** {badarg,[{ets,insert,[cl_queue_tab,{<0.50.0>,<0.52.0>,<0.53.0>}]},
            {cl_queue_tab,insert,2},
            {gen_esme,init,1},
            {gen_server,init_it,6},
            {proc_lib,init_p_do_apply,3}]}

=ERROR REPORT==== 27-Sep-2011::11:07:43 ===
Error in process <0.53.0> with exit value:
{badarg,[{ets,delete,[cl_queue_tab,<0.50.0>]},{cl_queue_tab,monitor_loop,4}]}

** exception exit: badarg
     in function  ets:insert/2
        called as ets:insert(cl_queue_tab,{<0.50.0>,<0.52.0>,<0.53.0>})
     in call from cl_queue_tab:insert/2
     in call from gen_esme:init/1
     in call from gen_server:init_it/6
     in call from proc_lib:init_p_do_apply/3


please,consider it.

Regards,
Chamin.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110927/feddc93a/attachment.html>


More information about the erlang-questions mailing list