in reply to Re: ModPerl::Registry error
in thread ModPerl::Registry error

Hi,

Thanks for the quick response.

That is the call:

my $response = $ua->post('http://il-sxd/abs',$request);

$request has an XML value.

This is where the program fails:

sub AUTOLOAD { my ($this,$val) = @_; my $program = $AUTOLOAD; if ($program =~ /::DESTROY$/){ return; } $program =~ /ContextObject::Generic::(.*)/; my $attribute = $1; my $key=$this->is_attribute($attribute);

Thanks,
Daniel.

20070126 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips

Replies are listed 'Best First'.
Re^3: ModPerl::Registry error
by quester (Vicar) on Jan 22, 2007 at 08:41 UTC
    I'm not clear about the context in which the AUTOLOAD is getting called. The immediate cause of the error is that $this is not a reference to an object.

    You might want to run your script under the debugger (perl -d...), and run the script up to the line number where the error occurs (c nnn). Then you can do a stack trace (T) and also look at the variables involved (x $this; x $val; and so on).

    Most likely you will find that the call to an undefined sub which triggered AUTOLOAD wasn't intended to go to this particular AUTOLOAD routine.

      Hi,

      It looks like the problem is not with the code, but with the mod_perl...
      I don't know what can cause this problem.

      Daniel.

Re^3: ModPerl::Registry error
by johngg (Canon) on Jan 22, 2007 at 23:34 UTC
    Hi Daniel,

    I hope you have managed to move forward with your problem.

    You may have noticed that the code in your post was not formatted but all jumbled together on the same line and difficult to read. You might want to refer to Writeup Formatting Tips, in particlar the use of <code> and </code> tags around your code and the use of <p> tags between paragraphs. There is a useful table of special characters and how to represent them when posting.

    I hope you find this useful.

    Cheers,

    JohnGG