perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: Can't locate object method "init" via package"Embperl::__2
Date Mon, 05 Jan 2004 09:01:25 GMT
Aare Vesi wrote:
> Hi,
>
> I'm still getting this error at random times.
> In Embperl code at /usr/local/lib/perl/5.8.2/Embperl/Object.pm
> it shows that it's used in EMBPERL_OBJECT_APP initalization.
>
> How can I debug what is failing?

The first thing I would try is to set dbgObjectSearch in EMBPERL_DEBUG, this
gives some information about what Embperl::Object is doing in the
embperl.log file.

Also it would be interesting if the error only occurs after a certain page
is request or if there is some other thing that always happens before

Gerald

> I added use strict; to EMBPERL_OBJECT_APP (application.pl) and
> everything seems fine, but this error still occures.
>
> application.pl
> ---
> use strict;
>
> sub init
> {
>
> my $self     = shift ;
> my $req      = shift ;
>
> $req->{apache} = $Embperl::req -> apache_req ;
>
> # Hidden parameters in URI
> my $uri = $req -> param -> uri ;
> while ($uri =~ s/\.-(.*?)-(.*?)-\././g)  { $fdat{$1} = $2 ; }
> while ($uri =~ s/\.,(.*?),(.*?),\././g)  { $fdat{$1} = $2 ; }
> while ($uri =~ s/\._(.*?)_(.*?)_\././g)  { $fdat{$1} = $2 ; }
>
> # Remove hidden parameters from URI
> $req -> param -> uri ($uri);
>
> # removed any return [01.01.2004]
>
> }
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org

--------------------------------------------------------------
Gerald Richter     ecos electronic communication services gmbh
IT-Securitylösungen * dynamische Webapplikationen * Consulting

Post:       Tulpenstrasse 5          D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de          Voice:   +49 6133 939-122
WWW:        http://www.ecos.de/      Fax:     +49 6133 939-333
--------------------------------------------------------------
|
|   ECOS BB-5000 Firewall- und IT-Security Appliance: www.bb-5000.info
|
+-------------------------------------------------------------


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message