Function not exported, _routes

22 views
Skip to first unread message

Kai Janson

unread,
Jan 29, 2013, 2:04:52 PM1/29/13
to chica...@googlegroups.com
I am almost certain I've seen a blurb about this ... but can't seem to find it.

Help?! :)

--Kai

Here is the error message:
=ERROR REPORT==== 29-Jan-2013::12:58:39 ===
** Generic server <0.190.0> terminating 
** Last message in was {route,"/"}
** When Server state == {state,openstuff,
                               ["openstuff_stuff_controller",
                                "openstuff_main_controller"],
                               36889,40984}
** Reason for termination == 
** {'function not exported',
       [{openstuff_stuff_controller,'_routes',
            [{openstuff_stuff_controller,1,2}],
            []},
        {boss_controller_lib,convert_params_to_tokens,3,
            [{file,"src/boss/boss_controller_lib.erl"},{line,6}]},
        {boss_router_controller,handle_call,3,
            [{file,"src/boss/boss_router_controller.erl"},{line,73}]},
        {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,588}]},
        {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}

and here is my (excerpt of) the routes file:

% Front page
{"/", [{controller, "stuff"}, {action, "index"}]}.

Konstantin Nikiforov

unread,
Jan 29, 2013, 2:17:12 PM1/29/13
to chica...@googlegroups.com
-compile(export_all).

В Tue, 29 Jan 2013 11:04:52 -0800 (PST)
Kai Janson <kot...@gmail.com> пишет:

> I am almost certain I've seen a blurb about this ... but can't seem
> to find it.
>
> Help?! :)
>
> --Kai
>
> Here is the error message:
> =ERROR REPORT==== 29-Jan-2013::12:58:39 ===
> ** Generic server <0.190.0> terminating
> ** Last message in was {route,"/"}
> ** When Server state == {state,openstuff,
> ["openstuff_stuff_controller",
> "openstuff_main_controller"],
> 36889,40984}
> ** Reason for termination ==
> ** {'function not exported',
> [{openstuff_stuff_controller,'*_routes*',
> [{openstuff_stuff_controller,1,2}],
> []},
> {boss_controller_lib,convert_params_to_tokens,3,
> [{file,"src/boss/boss_controller_lib.erl"},{line,6}]},
> {boss_router_controller,handle_call,3,
> [{file,"src/boss/boss_router_controller.erl"},{line,73}]},
> {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,588}]},
> {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}
>
> *and here is my (excerpt of) the routes file:*
signature.asc

Kai Janson

unread,
Jan 29, 2013, 2:32:32 PM1/29/13
to chica...@googlegroups.com
Checked, it's in there, second line from top, as it should be…
Good idea, but it wasn't it.

-module(openstuff_stuff_controller, [Req, SessionID]).
-compile(export_all).


--Kai

Jose Luis Gordo Romero

unread,
Jan 29, 2013, 2:34:12 PM1/29/13
to chica...@googlegroups.com
Are you in development mode? 

I hit something similar after some coding errors, stopping, ./rebar clean compile ./start-dev.sh and worked

Hope this helps


--
Jose Luis Gordo Romero


2013/1/29 Kai Janson <kot...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Kai Janson

unread,
Jan 29, 2013, 2:36:34 PM1/29/13
to chica...@googlegroups.com
Yes Sir, I am in development mode.

./rebar clean compile did the trick.

Now the question; what might cause it?
Evan?

--Kai

Kai Janson

unread,
Jan 29, 2013, 2:44:49 PM1/29/13
to chica...@googlegroups.com
...and Jose Luis, and all the others, of course ... :) Sorry!
2013/1/29 Kai Janson <kot...@gmail.com>
To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

--
You received this message because you are subscribed to the Google Groups "ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chicagoboss+unsubscribe@googlegroups.com.

Evan Miller

unread,
Jan 30, 2013, 12:12:01 PM1/30/13
to ChicagoBoss
Weird.... no idea what causes this.
>>> email to chicagoboss...@googlegroups.com.
>>> For more options, visit https://groups.google.com/groups/opt_out.
>>>
>>>
>>
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "ChicagoBoss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to chicagoboss...@googlegroups.com.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>
>>
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to chicagoboss...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Evan Miller
http://www.evanmiller.org/
Reply all
Reply to author
Forward
0 new messages