random Stub found while resolving method "???" overloading """" in package "XXX"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

random Stub found while resolving method "???" overloading """" in package "XXX"

Mitchell Elutovich
We've in the past few weeks relocated our server and are randomly (but too often) getting the follow error.

The dbix verison is now 0.082820 and previously was 0.08250 without this error occurring.

 "Stub found while resolving method "???" overloading """" in package "XXX" at /home/perlbrew/.perlbrew/libs/perl-5.16.3@latest-20160209/lib/perl5/DBIx/Class/Row.pm line 1250."

the package XXX

has which might be related

use Class::Trait qw( TPrintable  );

sub inflate_result {
    my $self = shift;
    my $ret = $self->next::method(@_);
    my $typeCd = $ret->typeCd;
    given ($typeCd) {
        when( $specialTypeCd ) {
            $self->ensure_class_loaded( $specialSubClass );
            bless ($ret, $specialSubClass);
        }
        default {
            bless ($ret, $self);
        }
    }
    return $ret;
}

The code bringing in package XXX has a helper method doing:

    my $theY = $c->model('DB::Y')->find( $yID,
        {
            prefetch => [ { 'xxxs' => 'typecd' } , 'zid' ]
        });

   return $theY;


thoughts in what the problem is; how to get it consistent to submit a bug report. 

We already know about the potential workaround in Abstract.pm
of SQLA_ISVALUE_IGNORE_AUTOGENERATED_STRINGIFICATION=1

_______________________________________________
List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
Searchable Archive: http://www.grokbase.com/group/dbix-class@...
Loading...