essiene / smpp34

An smpp34 library in Erlang. Built on top of smpp34pdu PDU parsing library
20 stars 11 forks source link

Crash At Connect #1

Closed chakhedik closed 13 years ago

chakhedik commented 13 years ago

Hi,

I tried to use your library but failed to connect with error below :

=CRASH REPORT==== 5-Apr-2011::14:29:16 === crasher: initial call: smpp34_esme:init/1 pid: <0.123.0> registered_name: [] exception exit: {undef, [{smpp34_esme_core_sup,start_child, ["204.141.17.65",8000]}, {smpp34_esme,init,1}, {gen_fsm,init_it,6}, {proc_lib,init_p_do_apply,3}]} in function gen_fsm:init_it/6 ancestors: [<0.120.0>] messages: [] links: [] dictionary: [] trap_exit: false status: running heap_size: 377 stack_size: 24 reductions: 115 neighbours: {error,{undef,[{smpp34_esme_core_sup,start_child, ["204.141.17.65",8000]}, {smpp34_esme,init,1}, {gen_fsm,init_it,6}, {proc_lib,init_p_do_apply,3}]}}

Please advise.

Chak

essiene commented 13 years ago

Could you please gimme the code snippet you called exactly?

Hopefully you're on the master branch too right?

chakhedik commented 13 years ago

Hi,

I just ran your example from README (smpp34_example), nothing changed except for address and port. I've downloaded the version from download button above. Should I use git clone git://github.com/essiene/smpp34.git instead?I'll try....

Thanks for your reply.

Chak

chakhedik commented 13 years ago

Hi,

I've tried re-download using git clone but still got the same error.

Chak

essiene commented 13 years ago

Never mind. Found the problem. I've been using the gen_esme34 api more than the synchronous API, so didn't catch this bug when it crept in.

essiene commented 13 years ago

ok. I've fixed this by making the Logger optional for the Synchronous API.

Please pull master and try again.

The asynchronous API (gen_esme34) is advisable for anything more than a simple system. Examples for using that are availabe in examples/hello_esme.erl and examples/echo_esme.erl

Let me know your experience! ;)

chakhedik commented 13 years ago

Thanks, it work now...

I had to use the synchronous to fit my app...but I'll look into your asynchronous...

Thanks again :)