Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

Question on an exception; seems related to autocrud?

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


KBeal at crosscountry-auto

Feb 2, 2010, 2:24 PM

Post #1 of 4 (1149 views)
Permalink
Question on an exception; seems related to autocrud?

Hi all,



I'm working on a Catalyst app; currently in the early stages. I'm also
learning the framework, so this may be a beginner question.



I started this app by defining the database tables, then creating a .sql
file, and using that to import to sqlite3 (I was following along in the
tutorial, for the most part). To verify everything was working, I added
autocrud, so I could watch the changes as I made them, including doing
some INSERTs to pre-populate the tables. Nothing fancy.



Then I create a "list" page (similar to "books/list", although in my
case it's "builds/list"), updated the code to extract "all" (builds
instead of books), and tested it. It worked fine, or so I thought; each
time I tested it, I first went to the autocrud page to verify the data,
and then loaded the list page.



Today, I restarted the server and then tried refreshing the
"builds/list" page. I got an exception, with lots of output. Rather
than including the entire output here, I'll just say that it started
with the following, which is what leads me to believe it's somehow
related to autocrud (and the other evidence that reloading any of the
autocrud pages makes the "builds/list" page work again).



Caught exception in SubmitBuild::View::AutoCRUD::JSON->process "must
provide object to convert at C:/Perl/site/lib/Catalyst/View/JSON.pm line
43"



Please let me know if the rest of the output (or a specific portion of
it) would help in determining the root cause.



Thanks,

--
Ken Beal
Senior Software Engineer, Build/Release

Cross Country Automotive Services
One Cabot Road
Medford, MA 02155
p: (781) 306-3605
m: (978) 423-8977
e: kbeal [at] crosscountry-auto




Confidentiality Note: This e-mail message and any attachments may contain
confidential or privileged information. If you are not the intended recipient,
please notify me immediately by replying to this message and destroy all
copies of this message and any attachments. Thank you.


nick at nickandperla

Feb 2, 2010, 2:52 PM

Post #2 of 4 (1074 views)
Permalink
Re: Question on an exception; seems related to autocrud? [In reply to]

On Tue, 2 Feb 2010 17:24:14 -0500
"Ken Beal" <KBeal [at] crosscountry-auto> wrote:

> Please let me know if the rest of the output (or a specific portion of
> it) would help in determining the root cause.

Just a note, but the full stack trace is usually what is needed for
people to properly diagnose a problem. If you feel it is unusually
long, you can also take advantage of one of the nopaste servers, a gist
at github, or host a text file somewhere. Then just provide a link into
your email.


--

Nicholas Perez
XMPP/Email: nick [at] nickandperla
http://search.cpan.org/~nperez/
http://github.com/nperez

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


KBeal at crosscountry-auto

Feb 3, 2010, 8:58 AM

Post #3 of 4 (1050 views)
Permalink
RE: Question on an exception; seems related to autocrud? [In reply to]

Thanks Nick. I have determined that removing AutoCRUD from the
<project>\lib\<project>.pm file eliminates this behavior, so it seems to
be just a side-effect of having AutoCRUD enabled. Since I won't deploy
with it enabled, it's just something to watch out for in my testing.


To the list: has anyone else noticed a similar difference in behavior
accessing SQLite3 databases from Catalyst, after adding AutoCRUD?

Thanks,
Ken


-----Original Message-----
From: Nick Perez [mailto:nick [at] nickandperla]
Sent: Tuesday, February 02, 2010 5:52 PM
To: The elegant MVC web framework
Cc: Ken Beal
Subject: Re: [Catalyst] Question on an exception; seems related to
autocrud?

On Tue, 2 Feb 2010 17:24:14 -0500
"Ken Beal" <KBeal [at] crosscountry-auto> wrote:

> Please let me know if the rest of the output (or a specific portion of
> it) would help in determining the root cause.

Just a note, but the full stack trace is usually what is needed for
people to properly diagnose a problem. If you feel it is unusually
long, you can also take advantage of one of the nopaste servers, a gist
at github, or host a text file somewhere. Then just provide a link into
your email.


--

Nicholas Perez
XMPP/Email: nick [at] nickandperla
http://search.cpan.org/~nperez/
http://github.com/nperez

Confidentiality Note: This e-mail message and any attachments may contain
confidential or privileged information. If you are not the intended recipient,
please notify me immediately by replying to this message and destroy all
copies of this message and any attachments. Thank you.

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


oliver.gorwits at oucs

Mar 21, 2010, 1:42 AM

Post #4 of 4 (592 views)
Permalink
Re: Question on an exception; seems related to autocrud? [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Ken,

I'm sorry for having missed this message originally, only finding it
whilst digging through my mail archive for something else!

On 03/02/2010 16:58, Ken Beal wrote:
> To the list: has anyone else noticed a similar difference in behavior
> accessing SQLite3 databases from Catalyst, after adding AutoCRUD?

This is a little surprising, only because AutoCRUD uses SQLite in
its own test suite.

Having said that, each database does have its quirks so there could
be some issue I've not yet encountered. If this remains a problem
for you, please do send an email to
<bug-Catalyst-Plugin-AutoCRUD [at] rt> and we can look at this
in more depth.

regards,
oliver.
- --
Oliver Gorwits, Network and Telecommunications Group,
Oxford University Computing Services
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkul3AgACgkQ2NPq7pwWBt6dQACfXMA1uYcB3EO9Bz6UURjLmKFZ
RWUAoMlRtJUYnOOqWf/aJwRrDMwGNYny
=uFtd
-----END PGP SIGNATURE-----

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.