New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/admin/model/model/{{model}} throws function_clause exception exit #30

Closed
timClicks opened this Issue Aug 20, 2012 · 1 comment

Comments

Projects
None yet
2 participants
@timClicks

timClicks commented Aug 20, 2012

When a model is selected in the admin menu, a 500 error is raised. The full traceback from the shell is below for /admin/model/model/topic.

=ERROR REPORT==== 20-Aug-2012::17:41:35 ===
** Generic server <0.347.0> terminating 
** Last message in was {find,topic,[],
                             [{limit,100},{offset,0},descending],
                             0,id,str_ascending}
** When Server state == {state,boss_db_adapter_mnesia,undefined,[],
                               {dict,0,16,16,8,80,48,
                                     {[],[],[],[],[],[],[],[],[],[],[],[],[],
                                      [],[],[]},
                                     {{[],[],[],[],[],[],[],[],[],[],[],[],[],
                                       [],[],[]}}},
                               false,60,db,0}
** Reason for termination == 
** {function_clause,
       [{boss_db_adapter_mnesia,find,
            [undefined,topic,[],
             [{limit,100},{offset,0},descending],
             0,id,str_ascending],
            [{file,"src/db_adapters/boss_db_adapter_mnesia.erl"},{line,44}]},
        {boss_db_controller,handle_call,3,
            [{file,"src/boss_db_controller.erl"},{line,83}]},
        {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,588}]},
        {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}

=CRASH REPORT==== 20-Aug-2012::17:41:35 ===
  crasher:
    initial call: boss_db_controller:init/1
    pid: <0.347.0>
    registered_name: []
    exception exit: {function_clause,
                        [{boss_db_adapter_mnesia,find,
                             [undefined,topic,[],
                              [{limit,100},{offset,0},descending],
                              0,id,str_ascending],
                             [{file,
                                  "src/db_adapters/boss_db_adapter_mnesia.erl"}, 
                              {line,44}]},
                         {boss_db_controller,handle_call,3,
                             [{file,"src/boss_db_controller.erl"},{line,83}]},
                         {gen_server,handle_msg,5,
                             [{file,"gen_server.erl"},{line,588}]},
                         {proc_lib,init_p_do_apply,3,
                             [{file,"proc_lib.erl"},{line,227}]}]}
      in function  gen_server:terminate/6 (gen_server.erl, line 747)
    ancestors: [<0.121.0>,boss_db_pool,boss_db_sup,boss_web,boss_sup,
                  <0.64.0>]
    messages: []
    links: [<0.121.0>,<0.120.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 987
    stack_size: 24
    reductions: 2250
  neighbours:

=SUPERVISOR REPORT==== 20-Aug-2012::17:41:35 ===
     Supervisor: {<0.121.0>,poolboy_sup}
     Context:    child_terminated
     Reason:     {function_clause,
                     [{boss_db_adapter_mnesia,find,
                          [undefined,topic,[],
                           [{limit,100},{offset,0},descending],
                           0,id,str_ascending],
                          [{file,"src/db_adapters/boss_db_adapter_mnesia.erl"},
                           {line,44}]},
                      {boss_db_controller,handle_call,3,
                          [{file,"src/boss_db_controller.erl"},{line,83}]},
                      {gen_server,handle_msg,5,
                          [{file,"gen_server.erl"},{line,588}]},
                      {proc_lib,init_p_do_apply,3,
                          [{file,"proc_lib.erl"},{line,227}]}]}
     Offender:   [{pid,<0.347.0>},
                  {name,boss_db_controller},
                  {mfargs,{boss_db_controller,start_link,undefined}},
                  {restart_type,temporary},
                  {shutdown,brutal_kill},
                  {child_type,worker}]


=ERROR REPORT==== 20-Aug-2012::17:41:35 ===
{{function_clause,
     [{boss_db_adapter_mnesia,find,
          [undefined,topic,[],
           [{limit,100},{offset,0},descending],
           0,id,str_ascending],
          [{file,"src/db_adapters/boss_db_adapter_mnesia.erl"},{line,44}]},
      {boss_db_controller,handle_call,3,
          [{file,"src/boss_db_controller.erl"},{line,83}]},
      {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,588}]},
      {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]},
 {gen_server,call,
     [<0.347.0>,
      {find,topic,[],[{limit,100},{offset,0},descending],0,id,str_ascending},
      30000]}}
@evanmiller

This comment has been minimized.

Contributor

evanmiller commented Aug 20, 2012

Are you using CB 0.8.0?

On Mon, Aug 20, 2012 at 12:47 AM, Tim McNamara notifications@github.comwrote:

When a model is selected in the admin menu, a 500 error is raised. The
full traceback from the shell is below.

=ERROR REPORT==== 20-Aug-2012::17:41:35 ===* Generic server <0.347.0> terminating * Last message in was {find,topic,[],
[{limit,100},{offset,0},descending],
0,id,str_ascending}
* When Server state == {state,boss_db_adapter_mnesia,undefined,[],
{dict,0,16,16,8,80,48,
{[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]},
{{[],[],[],[],[],[],[],[],[],[],[],[],[],
[],[],[]}}},
false,60,db,0}
* Reason for termination == ** {function_clause,
[{boss_db_adapter_mnesia,find,
[undefined,topic,[],
[{limit,100},{offset,0},descending],
0,id,str_ascending],
[{file,"src/db_adapters/boss_db_adapter_mnesia.erl"},{line,44}]},
{boss_db_controller,handle_call,3,
[{file,"src/boss_db_controller.erl"},{line,83}]},
{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,588}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}
=CRASH REPORT==== 20-Aug-2012::17:41:35 ===
crasher:
initial call: boss_db_controller:init/1
pid: <0.347.0>
registered_name: []
exception exit: {function_clause,
[{boss_db_adapter_mnesia,find,
[undefined,topic,[],
[{limit,100},{offset,0},descending],
0,id,str_ascending],
[{file,
"src/db_adapters/boss_db_adapter_mnesia.erl"},
{line,44}]},
{boss_db_controller,handle_call,3,
[{file,"src/boss_db_controller.erl"},{line,83}]},
{gen_server,handle_msg,5,
[{file,"gen_server.erl"},{line,588}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,227}]}]}
in function gen_server:terminate/6 (gen_server.erl, line 747)
ancestors: [<0.121.0>,boss_db_pool,boss_db_sup,boss_web,boss_sup,
<0.64.0>]
messages: []
links: [<0.121.0>,<0.120.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 987
stack_size: 24
reductions: 2250
neighbours:
=SUPERVISOR REPORT==== 20-Aug-2012::17:41:35 ===
Supervisor: {<0.121.0>,poolboy_sup}
Context: child_terminated
Reason: {function_clause,
[{boss_db_adapter_mnesia,find,
[undefined,topic,[],
[{limit,100},{offset,0},descending],
0,id,str_ascending],
[{file,"src/db_adapters/boss_db_adapter_mnesia.erl"},
{line,44}]},
{boss_db_controller,handle_call,3,
[{file,"src/boss_db_controller.erl"},{line,83}]},
{gen_server,handle_msg,5,
[{file,"gen_server.erl"},{line,588}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,227}]}]}
Offender: [{pid,<0.347.0>},
{name,boss_db_controller},
{mfargs,{boss_db_controller,start_link,undefined}},
{restart_type,temporary},
{shutdown,brutal_kill},
{child_type,worker}]

=ERROR REPORT==== 20-Aug-2012::17:41:35 ==={{function_clause,
[{boss_db_adapter_mnesia,find,
[undefined,topic,[],
[{limit,100},{offset,0},descending],
0,id,str_ascending],
[{file,"src/db_adapters/boss_db_adapter_mnesia.erl"},{line,44}]},
{boss_db_controller,handle_call,3,
[{file,"src/boss_db_controller.erl"},{line,83}]},
{gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,588}]},
{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]},
{gen_server,call,
[<0.347.0>,
{find,topic,[],[{limit,100},{offset,0},descending],0,id,str_ascending},
30000]}}


Reply to this email directly or view it on GitHubhttps://github.com//issues/30.

Evan Miller
http://www.evanmiller.org/

@evanmiller evanmiller closed this Jan 20, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment