Loading ...
Sorry, an error occurred while loading the content.

39Intermittent error in Included script

Expand Messages
  • John D. Leonard II
    Jan 3, 2002
    • 0 Attachment
      All:

      1) I'm getting an intermittent error while executing a script. Here is
      the code:

      #==================================
      <h1>Test</h1>
      <%
      print <<EOF;
      The following is a test of ASP and the
      use of a handrolled PM file NOT on the perl/site path.<P>
      EOF

      print "Current week of year: " . WeekOfYear();
      print "Week of year for May 1, 2002: " . WeekOfYear(2002,5,1);
      print "<p>";

      %>
      # =====================================

      2) Intermittently, the script works, or fails with a "Undefined
      subroutine" error associated with "WeekOfYear"


      3) The subroutine "WeekOfYear" is contained in a handrolled PM file. On
      this server I don't have admin access, so I'm PUSHing the location of
      the PM file onto the INC using the following code in my global.asa:

      ==========

      BEGIN{
      push @INC,"/export/admin/jleonard/globals/ISG/CourseTools/blib/lib";
      }

      use HTML::TreeBuilder;
      use ISG::CourseTools;

      ==========

      My Script_OnStart, etc. are empty.

      4) I'm running mostly defaults in the .htaccess file:

      PerlSetVar Global /export/admin/jleonard/globals/200202
      PerlSetVar IncludesDir /export/admin/jleonard/globals/common
      PerlSetVar StateDir /tmp/200202

      PerlSetVar Debug -3
      PerlSetVar TimeHiRes 1
      PerlSetVar UseStrict 1

      5) Here is a log dump when the script works:

      [Thu Jan 3 12:48:42 2002] [error] [asp] [15940] [debug]
      [1010080122.4429;0.0000] RUN ASP (v2.29) for
      /export/services/apache/sites/classes/200202/coe1361/home.htm
      [Thu Jan 3 12:48:42 2002] [error] [asp] [15940] [debug]
      [1010080122.4450;0.0021] GlobalASA package
      Apache::ASP::Compiles::_export_admin_jleonard_globals_200202_global_asax
      88403fa5e7f51debcc2e57acb88be3c0
      [Thu Jan 3 12:48:42 2002] [error] [asp] [15940] [debug]
      [1010080122.4481;0.0031] parse file home.htm
      [Thu Jan 3 12:48:42 2002] [error] [asp] [15940] [debug]
      [1010080122.4491;0.0010] parsing home.htm
      [Thu Jan 3 12:48:42 2002] [error] [asp] [15940] [debug]
      [1010080122.4528;0.0037] undefing sub
      Apache::ASP::Compiles::_export_admin_jleonard_globals_200202_global_asax
      88403fa5e7f51debcc2e57acb88be3c0::__ASP_NoCache code CODE(0x10be31c)
      [Thu Jan 3 12:48:42 2002] [error] [asp] [15940] [debug]
      [1010080122.4539;0.0011] compiling into package
      Apache::ASP::Compiles::_export_admin_jleonard_globals_200202_global_asax
      88403fa5e7f51debcc2e57acb88be3c0 subid
      [Apache::ASP::Compiles::_export_admin_jleonard_globals_200202_global_asa
      x88403fa5e7f51debcc2e57acb88be3c0::__ASP_NoCache]
      [Thu Jan 3 12:48:42 2002] [error] [asp] [15940] [debug]
      [1010080122.4602;0.0063] Script_OnStart
      [Thu Jan 3 12:48:42 2002] [error] [asp] [15940] [debug]
      [1010080122.4612;0.0010] executing Script_OnStart
      [Thu Jan 3 12:48:42 2002] [error] [asp] [15940] [debug]
      [1010080122.4641;0.0029] executing __ASP_NoCache
      [Thu Jan 3 12:48:42 2002] [error] [asp] [15940] [debug]
      [1010080122.4684;0.0043] Script_OnEnd
      [Thu Jan 3 12:48:42 2002] [error] [asp] [15940] [debug]
      [1010080122.4694;0.0010] Script_OnFlush
      [Thu Jan 3 12:48:42 2002] [error] [asp] [15940] [debug]
      [1010080122.4705;0.0011] page served in 29.15 milliseconds

      6) Here is a log dump when the script fails:

      [Thu Jan 3 12:48:50 2002] [error] [asp] [16009] [debug]
      [1010080130.1709;0.0000] RUN ASP (v2.29) for
      /export/services/apache/sites/classes/200202/coe1361/home.htm
      [Thu Jan 3 12:48:50 2002] [error] [asp] [16009] [debug]
      [1010080130.1731;0.0022] GlobalASA package
      Apache::ASP::Compiles::_export_admin_jleonard_globals_200202_global_asax
      88403fa5e7f51debcc2e57acb88be3c0
      [Thu Jan 3 12:48:50 2002] [error] [asp] [16009] [debug]
      [1010080130.1765;0.0034] parse file home.htm
      [Thu Jan 3 12:48:50 2002] [error] [asp] [16009] [debug]
      [1010080130.1775;0.0010] parsing home.htm
      [Thu Jan 3 12:48:50 2002] [error] [asp] [16009] [debug]
      [1010080130.1813;0.0038] undefing sub
      Apache::ASP::Compiles::_export_admin_jleonard_globals_200202_global_asax
      88403fa5e7f51debcc2e57acb88be3c0::__ASP_NoCache code CODE(0xa89e48)
      [Thu Jan 3 12:48:50 2002] [error] [asp] [16009] [debug]
      [1010080130.1824;0.0011] compiling into package
      Apache::ASP::Compiles::_export_admin_jleonard_globals_200202_global_asax
      88403fa5e7f51debcc2e57acb88be3c0 subid
      [Apache::ASP::Compiles::_export_admin_jleonard_globals_200202_global_asa
      x88403fa5e7f51debcc2e57acb88be3c0::__ASP_NoCache]
      [Thu Jan 3 12:48:50 2002] [error] [asp] [16009] [debug]
      [1010080130.1886;0.0062] Script_OnStart
      [Thu Jan 3 12:48:50 2002] [error] [asp] [16009] [debug]
      [1010080130.1896;0.0010] executing Script_OnStart
      [Thu Jan 3 12:48:50 2002] [error] [asp] [16009] [debug]
      [1010080130.1923;0.0027] executing __ASP_NoCache
      [Thu Jan 3 12:48:50 2002] [error] [asp] [16009] [error] Undefined
      subroutine
      &Apache::ASP::Compiles::_export_admin_jleonard_globals_200202_global_asa
      x88403fa5e7f51debcc2e57acb88be3c0::WeekOfYear called at home.htm line
      18. <--> , /usr/local/lib/perl5/site_perl/5.6.0/Apache/ASP.pm line 1560
      [Thu Jan 3 12:48:50 2002] [error] [asp] [16009] [debug]
      [1010080130.1951;0.0028] Script_OnEnd
      [Thu Jan 3 12:48:50 2002] [error] [asp] [16009] [debug]
      [1010080130.1962;0.0011] ASP Done Processing - asp:
      Apache::ASP=HASH(0xd9b124);

      Any clues?

      JL


      ---------------------------------------------------------------------
      To unsubscribe, e-mail: asp-unsubscribe@...
      For additional commands, e-mail: asp-help@...
    • Show all 6 messages in this topic