Try application:start(common_lib) first.<br><br>--<br>Aleksey<br><br><div class="gmail_quote">2011/9/27 chamin madura <span dir="ltr"><<a href="mailto:kkcmpathi@gmail.com">kkcmpathi@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi all ,<br> I am trying to use OSERL ,according to it's user guide(<a href="http://oserl.sourceforge.net/oserl/index.html" target="_blank">http://oserl.sourceforge.net/oserl/index.html</a>).<br> try test it with submit_esme.erl <br>
<span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:'Times New Roman';font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium"><span style="font-family:Verdana,Arial,Helvetica,sans-serif"><pre>
$ erlc -W -I ../../include -pz ../../ebin submit_esme.erl<br><br>arise many warnings ,see this is out put,<br><br>./submit_esme.erl:4: Warning: undefined callback function handle_accept/3 (behaviour 'gen_esme')<br>
./submit_esme.erl:4: Warning: undefined callback function handle_alert_notification/2 (behaviour 'gen_esme')<br>./submit_esme.erl:4: Warning: undefined callback function handle_closed/2 (behaviour 'gen_esme')<br>
./submit_esme.erl:4: Warning: undefined callback function handle_data_sm/3 (behaviour 'gen_esme')<br>./submit_esme.erl:4: Warning: undefined callback function handle_deliver_sm/3 (behaviour 'gen_esme')<br>
./submit_esme.erl:4: Warning: undefined callback function handle_outbind/2 (behaviour 'gen_esme')<br>./submit_esme.erl:4: Warning: undefined callback function handle_req/4 (behaviour 'gen_esme')<br>./submit_esme.erl:4: Warning: undefined callback function handle_resp/3 (behaviour 'gen_esme')<br>
./submit_esme.erl:4: Warning: undefined callback function start_link/4 (behaviour 'gen_esme')<br>./submit_esme.erl:165: Warning: variable 'From' is unused<br>./submit_esme.erl:165: Warning: variable 'Pdu' is unused<br>
./submit_esme.erl:165: Warning: variable 'Session' is unused<br>./submit_esme.erl:189: Warning: variable 'From' is unused<br>./submit_esme.erl:189: Warning: variable 'Pdu' is unused<br>./submit_esme.erl:189: Warning: variable 'Session' is unused<br>
./submit_esme.erl:224: Warning: variable 'From' is unused<br>./submit_esme.erl:224: Warning: variable 'Pdu' is unused<br>./submit_esme.erl:224: Warning: variable 'Session' is unused<br>./submit_esme.erl:257: Warning: variable 'From' is unused<br>
./submit_esme.erl:257: Warning: variable 'Pdu' is unused<br>./submit_esme.erl:257: Warning: variable 'Session' is unused<br>./submit_esme.erl:306: Warning: variable 'From' is unused<br>./submit_esme.erl:324: Warning: integer/1 obsolete<br>
./submit_esme.erl:353: Warning: variable 'Request' is unused<br>./submit_esme.erl:377: Warning: variable 'Info' is unused<br>./submit_esme.erl:392: Warning: variable 'S' is unused<br>./submit_esme.erl:394: Warning: variable 'Reason' is unused<br>
./submit_esme.erl:409: Warning: variable 'Extra' is unused<br>./submit_esme.erl:409: Warning: variable 'OldVsn' is unused<br>./submit_esme.erl:443: Warning: function read_string/1 is unused<br><br>then I try to run it according to user guide (after add compatible code path),<br>
<br>1>submit_esme:start_link().<br> ********************** output is<br> =ERROR REPORT==== 27-Sep-2011::11:07:43 ===<br>** Generic server <0.52.0> terminating <br>** Last message in was {'EXIT',<0.50.0>,<br>
{badarg,<br> [{ets,insert,<br> [cl_queue_tab,<br> {<0.50.0>,<0.52.0>,<0.53.0>}]},<br>
{cl_queue_tab,insert,2},<br> {gen_esme,init,1},<br> {gen_server,init_it,6},<br> {proc_lib,init_p_do_apply,3}]}}<br>
** When Server state == {st,<0.50.0>,undefined,0,0,{1317,101863,441293}}<br>** Reason for termination == <br>** {badarg,[{ets,insert,[cl_queue_tab,{<0.50.0>,<0.52.0>,<0.53.0>}]},<br> {cl_queue_tab,insert,2},<br>
{gen_esme,init,1},<br> {gen_server,init_it,6},<br> {proc_lib,init_p_do_apply,3}]}<br><br>=ERROR REPORT==== 27-Sep-2011::11:07:43 ===<br>Error in process <0.53.0> with exit value: {badarg,[{ets,delete,[cl_queue_tab,<0.50.0>]},{cl_queue_tab,monitor_loop,4}]}<br>
<br>** exception exit: badarg<br> in function ets:insert/2<br> called as ets:insert(cl_queue_tab,{<0.50.0>,<0.52.0>,<0.53.0>})<br> in call from cl_queue_tab:insert/2<br> in call from gen_esme:init/1<br>
in call from gen_server:init_it/6<br> in call from proc_lib:init_p_do_apply/3<br><br><br>please,consider it.<br><br>Regards,<br><font color="#888888">Chamin.<br><br><br></font></pre></span></span>
<br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br>