Hi guys,
<div><br></div><div>I have rebar-ized project that uses exmpp library. exmpp library installed in my system (sudo make install).</div><div><br></div><div><div>Since there is no properly rebar-ized exmpp I try to run in in my application code manually instead of starting it in processor.app:</div>
<div><br></div><div><div><font class="Apple-style-span" face="'courier new', monospace">start(_StartType, _StartArgs) -></font></div><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-tab-span" style="white-space: pre; "> </span>ok = application:start(exmpp),</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-tab-span" style="white-space: pre; "> </span>processor_sup:start_link().</font></div></div></div><div><font class="Apple-style-span" face="'courier new', monospace"><br>
</font></div><div>When I test my application (not release) everything work like a charm.</div><div><br></div><div>But when I do:</div><div><br></div><div><font class="Apple-style-span" face="'courier new', monospace">./rebar compile</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">./rebar generate</font></div><div><br></div><div>and then run released node I have the following exception:</div><div><br></div><div><div><font class="Apple-style-span" face="'courier new', monospace">Erlang R14B04 (erts-5.8.5) [source] [smp:2:2] [rq:2] [async-threads:5] [hipe] [kernel-poll:true]</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">=INFO REPORT==== 2-Nov-2011::10:38:08 ===</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> application: processor</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> exited: {bad_return,</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> {{processor_app,start,[normal,[]]},</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> {'EXIT',</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> {{badmatch,</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> {error,{"no such file or directory","exmpp.app"}}},</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> [{processor_app,start,2},</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> {application_master,start_it_old,4}]}}}}</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> type: permanent</font></div><div><font class="Apple-style-span" face="'courier new', monospace">{"Kernel pid terminated",application_controller,"{application_start_failure,processor,{bad_return,{{processor_app,start,[normal,[]]},{'EXIT',{{badmatch,{error,{[110,111,32,115,117,99,104,32,102,105,108,101,32,111,114,32,100,105,114,101,99,116,111,114,121],[101,120,109,112,112,46,97,112,112]}}},[{processor_app,start,2},{application_master,start_it_old,4}]}}}}}"}</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">Crash dump was written to: erl_crash.dump</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace">Kernel pid terminated (application_controller) ({application_start_failure,processor,{bad_return,{{processor_app,start,[normal,[]]},{'EXIT',{{badmatch,{error,{[110,111,32,115,117,99,104,32,102,105,1</font></div>
</div><div><br></div><div>As I already said this approach doesn't work. Do you have any ideas how to properly configure my app to use exmpp?</div><div><br></div><div>Best regards,</div><div>Max</div><div><br></div>