in reply to I get an error using a DBIx::Class model in Catalyst but not when it is standalone

Make sure that you load Catalyst::Plugin::Unicode::Encoding.
use Catalyst qw/ -Debug ConfigLoader Unicode::Encoding /;
It seems to me that you need to do more validation and testing. Test::WWW::Mechanize::Catalyst should help.
  • Comment on Re: I get an error using a DBIx::Class model in Catalyst but not when it is standalone
  • Download Code

Replies are listed 'Best First'.
Re^2: I get an error using a DBIx::Class model in Catalyst but not when it is standalone
by Khen1950fx (Canon) on Mar 08, 2011 at 06:20 UTC
    I tried reinstalling Catalyst::Plugin::Unicode::Encoding. It passed all tests on 5.8.8, 5.10.1, and 5.12.2, so your problem probably is your Catalyst installation. It's missing some dependencies. Run cpandeps on Catalyst and on Catalyst::Plugin::Unicode::Encoding, and you'll see what I mean. Make sure you have all the dependencies and update them. Then try installing Catalyst::Plugin::Unicode::Encoding again.

      If you look at the cpandeps site you will see that there are two failed tests results and Catalyst::Plugin::Unicode::Encoding has about 33% success of passing. The test failure that I get is the same as the two other failures listed there. I have submitted the test report via CPAN::Reporter so that should soon be 3 failures. All other dependencies are met.

Re^2: I get an error using a DBIx::Class model in Catalyst but not when it is standalone
by ivanwillsau (Novice) on Mar 08, 2011 at 05:18 UTC

    Tried install Catalyst::Plugin::Unicode::Encoding unfortunately it fails it's tests and wont install :-(, I will continue trying to get installed to see if it helps.

    As far as validation is concerned everything is valid, the problem occurs when the DBI tries to read the CLOB data, presumably it asks Oracle for the data in one format and Oracle fails to convert the data to that format.

Re^2: I get an error using a DBIx::Class model in Catalyst but not when it is standalone
by ivanwillsau (Novice) on Mar 08, 2011 at 23:41 UTC

    I finally got Catalyst::Plugin::Unicode::Encoding installed but it didn't effect the error, I still get the Oracle error.

      I'm getting this error too, but from non-Catalyst code running under mod_perl2. I also cannot reproduce the error using a standalone script that uses the same DBIx::Class model.

      I'm digging through the mod_perl environment now to try to figure out what's different.