<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Eden Cardim <edencardim@gmail.com></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">The elegant MVC web framework <catalyst@lists.scsys.co.uk></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">04/04/2012 11:13 AM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [Catalyst] Error loading data from
schema</font></table>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>>>>>> "Kenneth" == Kenneth
S Mclane <ksmclane@us.ibm.com> writes:<br>
<br>
Kenneth> I am getting the following error: Caught exception
in<br>
Kenneth> dbms::Controller::AccountView->list "Can't
call method "all" on<br>
Kenneth> an undefined value at<br>
Kenneth> /tmp/catalyst/dbms/script/../lib/dbms/Controller/AccountView.pm<br>
Kenneth> line 7."<br>
<br>
Kenneth> this is the referenced sub:<br>
<br>
Kenneth> sub list : Local { my ($self, $c) = @_; $c->stash(accounts
=><br>
Kenneth> $c->model('dbms::ACCOUNT_VIEW')->all);
$c->stash(template =><br>
Kenneth> 'accountview/list.tt2'); }<br>
<br>
Kenneth> I have seen quite a few posts about this error
but no real<br>
Kenneth> explanations of what is causing the issue. I
created a view in<br>
Kenneth> the DB containing the data I need to display
on the page. The<br>
Kenneth> error is occurring at this line: $c->stash(accounts
=> $c-><br>
Kenneth> model('dbms::ACCOUNT_VIEW')->all); which I
have tried several<br>
Kenneth> different things. If I remove the ->all I
get no error and my<br>
Kenneth> header row appears. I cannot find anything that
tells me<br>
Kenneth> specifically what this should be composed of.
Any pointers to<br>
Kenneth> help figure this out are appreciated.<br>
<br>
When the app loads, you should get a list of loaded components, please
show us<br>
that list.<br>
<br>
[debug] Debug messages enabled</font></tt>
<br><tt><font size=2>[debug] Statistics enabled</font></tt>
<br><tt><font size=2>[debug] Loaded plugins:</font></tt>
<br><tt><font size=2>.----------------------------------------------------------------------------.</font></tt>
<br><tt><font size=2>| Catalyst::Plugin::ConfigLoader 0.30
|</font></tt>
<br><tt><font size=2>'----------------------------------------------------------------------------'</font></tt>
<br>
<br><tt><font size=2>[debug] Loaded dispatcher "Catalyst::Dispatcher"</font></tt>
<br><tt><font size=2>[debug] Loaded engine "Catalyst::Engine"</font></tt>
<br><tt><font size=2>[debug] Found home "/tmp/catalyst/dbms"</font></tt>
<br><tt><font size=2>[debug] Loaded Config "/tmp/catalyst/dbms/dbms.conf"</font></tt>
<br><tt><font size=2>[debug] Loaded components:</font></tt>
<br><tt><font size=2>.-----------------------------------------------------------------+----------.</font></tt>
<br><tt><font size=2>| Class
| Type |</font></tt>
<br><tt><font size=2>+-----------------------------------------------------------------+----------+</font></tt>
<br><tt><font size=2>| dbms::Controller::AccountView
| instance |</font></tt>
<br><tt><font size=2>| dbms::Controller::Root
| instance |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES
| instance |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Account
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::AccountView
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Alert
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Assignment
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Assignments
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::CfgAssignments
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Check
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Compliance
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Contact
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Department
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::File
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Fixtime
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Frequency
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Latest
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Manager
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Metrics
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Priv
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Progress
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Report
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Retention
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Schedule
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Server
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Status
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Subsystem
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Ticket
| class |</font></tt>
<br><tt><font size=2>| dbms::Model::ORANGES::Upload
| class |</font></tt>
<br><tt><font size=2>| dbms::View::HTML
| instance |</font></tt>
<br><tt><font size=2>| dbms::View::accountview
| instance |</font></tt>
<br><tt><font size=2>'-----------------------------------------------------------------+----------'</font></tt>
<br>
<br><tt><font size=2>[debug] Loaded Private actions:</font></tt>
<br><tt><font size=2>.----------------------+--------------------------------------+--------------.</font></tt>
<br><tt><font size=2>| Private
| Class
| Method
|</font></tt>
<br><tt><font size=2>+----------------------+--------------------------------------+--------------+</font></tt>
<br><tt><font size=2>| /default
| dbms::Controller::Root
| default |</font></tt>
<br><tt><font size=2>| /end
| dbms::Controller::Root
| end |</font></tt>
<br><tt><font size=2>| /index
| dbms::Controller::Root
| index |</font></tt>
<br><tt><font size=2>| /accountview/list | dbms::Controller::AccountView
| list |</font></tt>
<br><tt><font size=2>'----------------------+--------------------------------------+--------------'</font></tt>
<br>
<br><tt><font size=2>[debug] Loaded Path actions:</font></tt>
<br><tt><font size=2>.-------------------------------------+--------------------------------------.</font></tt>
<br><tt><font size=2>| Path
| Private
|</font></tt>
<br><tt><font size=2>+-------------------------------------+--------------------------------------+</font></tt>
<br><tt><font size=2>| /accountview/list/...
| /accountview/list
|</font></tt>
<br><tt><font size=2>'-------------------------------------+--------------------------------------'</font></tt>
<br>
<br><tt><font size=2>[info] dbms powered by Catalyst 5.90011</font></tt>
<br><a href=HTTP::Server::PSGI:><tt><font size=2>HTTP::Server::PSGI:</font></tt></a><tt><font size=2>
Accepting connections at </font></tt><a href=http://0:3000/><tt><font size=2>http://0:3000/</font></tt></a>
<br>
<br><tt><font size=2>Strange, I do not see it listed, yet it got created
and works when I call the /index.<br>
</font></tt>
<br>
<br>