perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Richter" <rich...@ecos.de>
Subject Re: Random behavior
Date Wed, 14 Aug 2002 03:53:05 GMT
> This is a very strange issue. It only seems to manifest itself if I load
> the page after visiting another page, or following a link to it. _Not_
> if I load it in a 'brand new' browser window. At least, those are the
> only circumstances I have managed to reproduce it under...
>

Where is the sub defined? In web::sql? If so is does web::sql contain a
package statement i.e. compiles in it own namespace and exports the sub? If
not you should do so, read more about that issue under

http://perl.apache.org/embperl/pod/doc/doc13/pod/Faq.-page-3-.htm#sect_19

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------


> > -----Original Message-----
> > From: Justin Harrison [mailto:shadowj4@doublebagel.com]
> > Sent: Tuesday, August 13, 2002 4:12 PM
> > To: 'eg@raytheon.com'; 'embperl@perl.apache.org'
> > Subject: RE: Random behavior
> >
> >
> > Hi,
> >
> > Thank you for your response.
> >
> > It appears to *stop* when set to Maxclient 1, and after the
> > max requests per child.
> >
> >
> > > -----Original Message-----
> > > From: Ed Grimm [mailto:edgrimm@asgard.rsc.raytheon.com]
> > > Sent: Tuesday, August 13, 2002 2:53 PM
> > > To: Justin M. Harrison
> > > Subject: Re: Random behavior
> > >
> > >
> > > Set your MaxClients to 1, see if it stops being random.
> > > (Works the first time, not the second, third, etc. until
> > > MaxRequestsPerChild, then
> > > repeat.)
> > >
> > > If so, your subroutine is being cleared after the first view.
> > >
> > > Ed
> > >
> > > On Tue, 13 Aug 2002, Justin M. Harrison wrote:
> > >
> > > > Hi,
> > > >
> > > > I am having a problem with embperl randomly claiming that I
> > > am calling
> > > > an undefined sub routine. If I refresh the page, sometimes
> > > it does it
> > > > again - Sometimes it doesn't....Its _completely_ random (??)...
> > > >
> > > > [19276]ERR: 24: Error in Perl code: Undefined subroutine
> > > > &Embperl::__5::db_connect called at
> > > > /home/user/public_html/cgi-bin/e/community.zoweb line 13.
> > > >
> > > > It occurs like this:
> > > >
> > > > [-
> > > > #use modules
> > > > use lib '/home/user/web/lib';
> > > > use web::sql;
> > > >
> > > > #prepare variables
> > > > my $host = "localhost";
> > > > my $dbusername = "username";
> > > > my $dbpassword = "password";
> > > > my $database = "db";
> > > >
> > > > #prepare database connection
> > > > $zoweb::dbi =
> > &db_connect($host,$database,$dbusername,$dbpassword);
> > > > -]
> > > >
> > > > Or:
> > > >
> > > > [!
> > > > #use modules
> > > > use lib '/home/user/web/lib';
> > > > use web::sql;
> > > >
> > > > #prepare variables
> > > > my $host = "localhost";
> > > > my $dbusername = "username";
> > > > my $dbpassword = "password";
> > > > my $database = "db";
> > > > !]
> > > > #prepare database connection
> > > > [- $zoweb::dbi =
> > > &db_connect($host,$database,$dbusername,$dbpassword)
> > > > -]
> > > >
> > > > Even after I restart the server.
> > > >
> > > >
> > > > Any ideas?
> > > >
> > > > Justin
> > > >
> > > >
> > > >
> > >
> > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> > > > For additional commands, e-mail: embperl-help@perl.apache.org
> > > >
> > >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
>
>


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


Mime
View raw message