4 Jul 23:16
Re: Trouble with OTP
From: Pablo Polvorin <pablo.polvorin <at> gmail.com>
Subject: Re: Trouble with OTP
Newsgroups: gmane.comp.lang.erlang.general
Date: 2008-07-04 21:16:58 GMT
Subject: Re: Trouble with OTP
Newsgroups: gmane.comp.lang.erlang.general
Date: 2008-07-04 21:16:58 GMT
Hi Tom,
{'EXIT',
{undef,
[{mime_typer_app,start,[normal,[]]}
looks like the interpreter can't find that function (mime_type_app:start/2 ).
The function is defined in the source, so probably your code path is wrong and doesn't include the .beam files that
you have compiled.
try with
erl -pa DIR
where DIR is the directory where your compiled .beam files reside.
hope this helps
2008/7/4 Tom Ayerst <tom.ayerst <at> gmail.com>:
Hi,
I am running Kevin Smith's Mochiweb OTP example (http://weblog.hypotheticalabs.com/?p=226) but I cannot get it to start. Could anyone give me some hints on interpreting the error messages? I am running it on Windows. I am not very familiar with debugging OTP yet.
Thanks
Tom
$ erl -boot file_server-1
=PROGRESS REPORT==== 4-Jul-2008::20:07:13 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.32.0>},
{name,alarm_handler},
{mfa,{alarm_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 4-Jul-2008::20:07:13 ===
supervisor: {local,sasl_safe_sup}
started: [{pid,<0.33.0>},
{name,overload},
{mfa,{overload,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 4-Jul-2008::20:07:13 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.31.0>},
{name,sasl_safe_sup},
{mfa,
{supervisor,start_link,
[{local,sasl_safe_sup},sasl,safe]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]
=PROGRESS REPORT==== 4-Jul-2008::20:07:13 ===
supervisor: {local,sasl_sup}
started: [{pid,<0.34.0>},
{name,release_handler},
{mfa,{release_handler,start_link,[]}},
{restart_type,permanent},
{shutdown,2000},
{child_type,worker}]
=PROGRESS REPORT==== 4-Jul-2008::20:07:13 ===
application: sasl
started_at: nonode <at> nohost
=PROGRESS REPORT==== 4-Jul-2008::20:07:13 ===
application: sasl
started_at: nonode <at> nohost
=CRASH REPORT==== 4-Jul-2008::20:07:13 ===
crasher:
pid: <0.37.0>
registered_name: []
exception exit: {bad_return,
{{mime_typer_app,start,[normal,[]]},
{'EXIT',
{undef,
[{mime_typer_app,start,[normal,[]]},
{application_master,start_it_old,4}]}}}}
in function application_master:init/4
initial call: application_master:init(<0.5.0>,<0.36.0>,
{appl_data,mime_typer,
[mime_typer],
undefined,
{mime_typer_app,[]},
[mime_typer,mime_typer_app],
[],infinity,infinity},
normal)
ancestors: [<0.36.0>]
messages: [{'EXIT',<0.38.0>,normal}]
links: [<0.36.0>,<0.5.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 377
stack_size: 23
reductions: 88
neighbours:
=INFO REPORT==== 4-Jul-2008::20:07:13 ===
application: mime_typer
exited: {bad_return,
{{mime_typer_app,start,[normal,[]]},
{'EXIT',
{undef,
[{mime_typer_app,start,[normal,[]]},
{application_master,start_it_old,4}]}}}}
type: permanent
{"Kernel pid terminated",application_controller,"{application_start_failure,mime_typer,{bad_return,{{mime_typer_app,start,[normal,[]]},{'EXIT',{undef,[{mime_typer_app,start,[normal,[]]},{application_master,start_it_old,4}]}}}}}"}
Crash dump was written to: erl_crash.dump
Kernel pid terminated (application_controller) ({application_start_failure,mime_typer,{bad_return,{{mime_typer_app,start,[normal,[]]},{'EXIT',{undef,[{mime_typer_app,start,[normal,[]]},{application_
_______________________________________________
erlang-questions mailing list
erlang-questions <at> erlang.org
http://www.erlang.org/mailman/listinfo/erlang-questions
--
--
pablo
http://ppolv.wordpress.com
----
<div>
<p>Hi Tom, <br><br>{'EXIT',<br> {undef,<br> [{mime_typer_app,start,[normal,[]]}<br></p>
<div class="ArwC7c ckChnd">
<br>looks like the interpreter can't find that function (mime_type_app:start/2 ).<br>
The function is defined in the source, so probably your code path is wrong and doesn't include the .beam files that<br>you have compiled. <br>try with <br>erl -pa DIR <br>where DIR is the directory where your compiled .beam files reside.<br><br>hope this helps<br><br>
</div>
<br><br><div class="gmail_quote">2008/7/4 Tom Ayerst <<a href="mailto:tom.ayerst <at> gmail.com">tom.ayerst <at> gmail.com</a>>:<br><blockquote class="gmail_quote">
Hi,<br><br>I am running Kevin Smith's Mochiweb OTP example (<a href="http://weblog.hypotheticalabs.com/?p=226" target="_blank">http://weblog.hypotheticalabs.com/?p=226</a>) but I cannot get it to start. Could anyone give me some hints on interpreting the error messages? I am running it on Windows. I am not very familiar with debugging OTP yet.<br><br>Thanks<br><br>Tom<br><br>$ erl -boot file_server-1<br><br>=PROGRESS REPORT==== 4-Jul-2008::20:07:13 ===<br> supervisor: {local,sasl_safe_sup}<br> started: [{pid,<0.32.0>},<br> {name,alarm_handler},<br>
{mfa,{alarm_handler,start_link,[]}},<br> {restart_type,permanent},<br> {shutdown,2000},<br> {child_type,worker}]<br><br>=PROGRESS REPORT==== 4-Jul-2008::20:07:13 ===<br>
supervisor: {local,sasl_safe_sup}<br> started: [{pid,<0.33.0>},<br> {name,overload},<br> {mfa,{overload,start_link,[]}},<br> {restart_type,permanent},<br>
{shutdown,2000},<br> {child_type,worker}]<br><br>=PROGRESS REPORT==== 4-Jul-2008::20:07:13 ===<br> supervisor: {local,sasl_sup}<br> started: [{pid,<0.31.0>},<br>
{name,sasl_safe_sup},<br> {mfa,<br> {supervisor,start_link,<br> [{local,sasl_safe_sup},sasl,safe]}},<br> {restart_type,permanent},<br>
{shutdown,infinity},<br> {child_type,supervisor}]<br><br>=PROGRESS REPORT==== 4-Jul-2008::20:07:13 ===<br> supervisor: {local,sasl_sup}<br> started: [{pid,<0.34.0>},<br>
{name,release_handler},<br> {mfa,{release_handler,start_link,[]}},<br> {restart_type,permanent},<br> {shutdown,2000},<br> {child_type,worker}]<br><br>=PROGRESS REPORT==== 4-Jul-2008::20:07:13 ===<br> application: sasl<br> started_at: nonode <at> nohost<br><br>=PROGRESS REPORT==== 4-Jul-2008::20:07:13 ===<br> application: sasl<br> started_at: nonode <at> nohost<br><br>=CRASH REPORT==== 4-Jul-2008::20:07:13 ===<br> crasher:<br> pid: <0.37.0><br> registered_name: []<br> exception exit: {bad_return,<br> {{mime_typer_app,start,[normal,[]]},<br> {'EXIT',<br>
{undef,<br> [{mime_typer_app,start,[normal,[]]},<br> {application_master,start_it_old,4}]}}}}<br> in function application_master:init/4<br>
initial call: application_master:init(<0.5.0>,<0.36.0>,<br> {appl_data,mime_typer,<br> [mime_typer],<br> undefined,<br>
{mime_typer_app,[]},<br> [mime_typer,mime_typer_app],<br> [],infinity,infinity},<br> normal)<br>
ancestors: [<0.36.0>]<br> messages: [{'EXIT',<0.38.0>,normal}]<br> links: [<0.36.0>,<0.5.0>]<br> dictionary: []<br> trap_exit: true<br> status: running<br> heap_size: 377<br>
stack_size: 23<br> reductions: 88<br> neighbours:<br><br>=INFO REPORT==== 4-Jul-2008::20:07:13 ===<br> application: mime_typer<br> exited: {bad_return,<br> {{mime_typer_app,start,[normal,[]]},<br>
{'EXIT',<br> {undef,<br> [{mime_typer_app,start,[normal,[]]},<br> {application_master,start_it_old,4}]}}}}<br> type: permanent<br>
{"Kernel pid terminated",application_controller,"{application_start_failure,mime_typer,{bad_return,{{mime_typer_app,start,[normal,[]]},{'EXIT',{undef,[{mime_typer_app,start,[normal,[]]},{application_master,start_it_old,4}]}}}}}"}<br><br>Crash dump was written to: erl_crash.dump<br>Kernel pid terminated (application_controller) ({application_start_failure,mime_typer,{bad_return,{{mime_typer_app,start,[normal,[]]},{'EXIT',{undef,[{mime_typer_app,start,[normal,[]]},{application_<br><br><br><br>_______________________________________________<br>
erlang-questions mailing list<br><a href="mailto:erlang-questions <at> erlang.org">erlang-questions <at> erlang.org</a><br><a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote>
</div>
<br><br clear="all"><br>-- <br>--<br>pablo <br><a href="http://ppolv.wordpress.com">http://ppolv.wordpress.com</a><br>
----
</div>
RSS Feed