You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Justin Harrison <ju...@astyrrian.com> on 2004/02/06 20:18:27 UTC

Random errors

Hi,

I've experienced a lot of very erratic very strange unpredictable behavior
using Embperl. It is absurd.

Here is the latest:

"accountdetailsform" is not exported by the rules module at
/home/zo/zo/site/accountdetails_template.zoweb line 4
[Fri Feb  6 14:09:11 2004] [error] [1713]ERR:  24:  Error in Perl code:
Can't continue after import errors at
/home/zo/zo/site/accountdetails_template.zoweb line 4
BEGIN failed--compilation aborted       (in cleanup) Can't continue after
import errors at /home/zo/zo/site/accountdetails_template.zoweb line 4
BEGIN failed--compilation aborted at
/home/zo/zo/site/accountdetails_template.zoweb line 4.


If I refresh the page twice, or *goes away*. In the past a lot of these
issues have been problems between different Apache child processes and
module importing/scoping issues. 

This is the code in accountdetails_template.zoweb:

[- use lib '/home/zo/zo/site'; -]
[- use rules qw(accountdetailsform); -]
[- use Embperl::Form::Validate -]
[- $epf = new Embperl::Form::Validate(&accountdetailsform,"accountdetails")
-]

And in rules.pm:

package rules;

require Exporter;
@ISA            =       qw(Exporter);
@EXPORT_OK      =       qw(accountdetailsform);

sub accountdetailsform {
return([
        [-key => 'username',
        -name => 'Username',
        emptyok     => 1,
        -msg => 'The Username entered was too long.',
        length_max =>'15',
        ],
        
        [-key => 'emailaddress',
        -name => 'Email Address',
        emptyok     => 1,
        -msg => 'The Email Address entered was too long.',
        length_max =>'75',
 
        ],
        
        [-key => 'zonenickname',
        -name => 'Zone Nickname',
        emptyok     => 1,
        -msg => 'The Zone Nickname entered was too long.',
        length_max =>'15',
        -msg => 'The Zone Nickname may not contain a plus',
        must_not_contain => '+',
        ],
          
]);
}


All of my pages which use a similar loading mechcanism encounter these
problems, and refreshing twice resolves them. I'll try running the web
server in single-process mode to see what happens.

Any ideas?

Justin


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


Re: Random errors

Posted by Gerald Richter <ri...@ecos.de>.
>
> I restarted the server, and it stopped doing it - how's that for
> eratic? :-)
>

That might be the case when you change the module, without restarting the
server. Some of the Apache childs have already loaded the old module and
childs that are newly started loads the new code.

Gerald


> Justin
>
>> -----Original Message-----
>> From: Gerald Richter [mailto:richter@ecos.de]
>> Sent: Saturday, February 07, 2004 7:47 AM
>> To: Justin Harrison; embperl@perl.apache.org
>> Subject: Re: Random errors
>>
>> Justin Harrison wrote:
>>> Hi,
>>>
>>> I've experienced a lot of very erratic very strange unpredictable
>>> behavior using Embperl. It is absurd.
>>>
>>
>> The things you done seems to be quite ok.
>>
>> Does it change anything if you add a
>>
>> 1;
>>
>> at the last line of rules.pm?
>>
>> If not try changeing
>> (&accountdetailsform
>>
>> to
>>
>> &rules::accountdetailsform
>>
>> and do not import it. Does this work?
>>
>> Gerald
>>
>> --------------------------------------------------------------
>> 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

--------------------------------------------------------------
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


RE: Random errors

Posted by Justin Harrison <sh...@doublebagel.com>.
Hi,


There is a one, I just left it out of the email (Sorry!).

I restarted the server, and it stopped doing it - how's that for eratic? :-)

Justin 

> -----Original Message-----
> From: Gerald Richter [mailto:richter@ecos.de] 
> Sent: Saturday, February 07, 2004 7:47 AM
> To: Justin Harrison; embperl@perl.apache.org
> Subject: Re: Random errors
> 
> Justin Harrison wrote:
> > Hi,
> >
> > I've experienced a lot of very erratic very strange unpredictable 
> > behavior using Embperl. It is absurd.
> >
> 
> The things you done seems to be quite ok.
> 
> Does it change anything if you add a
> 
> 1;
> 
> at the last line of rules.pm?
> 
> If not try changeing
> (&accountdetailsform
> 
> to
> 
> &rules::accountdetailsform
> 
> and do not import it. Does this work?
> 
> Gerald
> 
> --------------------------------------------------------------
> 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


Re: Random errors

Posted by Gerald Richter <ri...@ecos.de>.
Justin Harrison wrote:
> Hi,
>
> I've experienced a lot of very erratic very strange unpredictable
> behavior using Embperl. It is absurd.
>

The things you done seems to be quite ok.

Does it change anything if you add a

1;

at the last line of rules.pm?

If not try changeing
(&accountdetailsform

to

&rules::accountdetailsform

and do not import it. Does this work?

Gerald

--------------------------------------------------------------
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