Hi Josh ,
Seems to be giving a problem with "use UseStrict config" . Is there any way
to disable using strict , as far i know thought Apache::ASP uses strict by default.
Please do see the attached logs if it can be to any help for us.
Regards
Raghu
-----Original Message-----
From: Josh Chamas [mailto:josh@;chamas.com]
Sent: Tuesday, October 22, 2002 2:35 PM
To: Nalamada, Raghu
Cc: [EMAIL PROTECTED]
Subject: Re: Asp
[EMAIL PROTECTED] wrote:
> Hi Josh ,
>
> Though i was able generate the graph earlier today , iam erroring out with
>this error . Though i thought it was PATH error , i have added GD path but does'nt
>seem to work.
>
> Can't locate object method "new" via package "GD::Graph::bars" at lisa_test.asp line
>78. ,
>/Net/stmdvocs/sbcexp/devl/SunOS/sparc-5.6/run/pd/cpan/5.6.1-eval/lib/Apache/ASP.pm
>line 1556
>
> Tried to generate with a general script but does'nt work either
> <%
> $|++;
> use strict;
> use GD::Graph::bars;
>
> my @data =
>(["Jan-01","Feb-01","Mar-01","Apr-01","May-01","Jun-01","Jul-01","Aug-01","Sep-01"],[21,25,33,39,49,48,40,45,15],[58,55,62,48,45,44,41,35,43]);
>
> my $graph = new GD::Graph::bars;
>
This seems like it should work. Instead of "use strict" use UseStrict config.
This is better, and might be related, as use strict compile errors otherwise
will leave things in a bad compiled state.
>
> Is there any commadline tool to debug like CGI ?
>
Yes, try the asp-perl command ( man/perldoc asp-perl )
--Josh
________________________________________________________________
Josh Chamas, Founder phone:925-552-0128
Chamas Enterprises Inc. http://www.chamas.com
NodeWorks Link Checking http://www.nodeworks.com
Errors Output
- maybe use strict error: Bareword "Cwd::cwd" not allowed while "strict subs" in use at /sbcimp/run/pd/cpan/5.6.1-2002.03/lib/GD/Text.pm line 271. BEGIN failed--compilation aborted at /sbcimp/run/pd/cpan/5.6.1-2002.03/lib/GD/Text/Align.pm line 50. BEGIN failed--compilation aborted at /sbcimp/run/pd/cpan/5.6.1-2002.03/lib/GD/Graph.pm line 38. BEGIN failed--compilation aborted at /sbcimp/run... see compile error for rest
- RUN ASP (v2.31) for /home/nalamara/myapache/htdocs/asp/eg/samplegraph1.asp ...
- call srand() post fork ...
- GlobalASA package Apache::ASP::Demo ...
- global.asa was not cached for _home_nalamara_myapache_htdocs_asp_eg___global_asaxbb9175c238d1c4683f1529d060e92a9b ...
- compiling global.asa Apache::ASP::Demo _home_nalamara_myapache_htdocs_asp_eg___global_asaxbb9175c238d1c4683f1529d060e92a9b exists 1 - asp: Apache::ASP=HASH(0x84d900); compiled: HASH(0x84da44); exists: 1; id: _home_nalamara_myapache_htdocs_asp_eg___global_asaxbb9175c238d1c4683f1529d060e92a9b; package: Apache::ASP::Demo; - --- - exists: 0; mtime: 0; ...
- global.asa routines - Application_OnEnd: 1; Application_OnStart: 1; Script_OnEnd: 1; Script_OnFlush: 1; Script_OnStart: 1; Session_OnEnd: 1; Session_OnStart: 1; ...
- creating dbm for file /home/nalamara/myapache/htdocs/asp/eg/server/internal, db SDBM_File, serializer: Data::Dumper ...
- creating dbm for file /home/nalamara/myapache/htdocs/asp/eg/server/application, db SDBM_File, serializer: Data::Dumper ...
- refreshing 0ecc7cafa40331a70840a05361a49e72 with timeout 1035312576 ...
- new session id 0ecc7cafa40331a70840a05361a49e72 ...
- creating dbm for file /home/nalamara/myapache/htdocs/asp/eg/0e/0ecc7cafa40331a70840a05361a49e72, db SDBM_File, serializer: Data::Dumper ...
- tieing session 0ecc7cafa40331a70840a05361a49e72 ...
- clearing starting session ...
- forcing groups cleanup ...
- testing internal time for cleanup groups ...
- current_master - Checked: 1035311414; PID: 26986; ServerID: 72d726499cefa940; - is_master - 0 ...
- 1035311431 time is stale, is_master 0 - Checked: 1035311414; PID: 26986; ServerID: 72d726499cefa940; ...
- sleep for acquire master check in case of shared state ...
- is_master 1 after update 72d726499cefa940 - 26987 ...
- groups - 0c; 08; 07; 01; 06; 05; 00; 09; 0a; 0e; 0d; 0b; 0f; 02; 04; 03 ...
- group check 0c, next in 1 sec ...
- group check 08, next in 28 sec ...
- group check 07, next in 28 sec ...
- group check 01, next in 11 sec ...
- group check 06, next in 2 sec ...
- resetting timeout for deletion lock on 06bc8fe7f67490ed879596d130a4f1c9 ...
- creating dbm for file /home/nalamara/myapache/htdocs/asp/eg/06/06bc8fe7f67490ed879596d130a4f1c9, db SDBM_File, serializer: Data::Dumper ...
- Session_OnEnd - session: 06bc8fe7f67490ed879596d130a4f1c9; ...
- executing Session_OnEnd ...
- creating dbm for file /home/nalamara/myapache/htdocs/asp/eg/06/06bc8fe7f67490ed879596d130a4f1c9, db SDBM_File, serializer: Data::Dumper ...
- deleting session - files_deleted: 1; session_id: 06bc8fe7f67490ed879596d130a4f1c9; ...
- group check 05, next in 2 sec ...
- resetting timeout for deletion lock on 05ddbcb7541869bed4b4b6c0c9070836 ...
- creating dbm for file /home/nalamara/myapache/htdocs/asp/eg/05/05ddbcb7541869bed4b4b6c0c9070836, db SDBM_File, serializer: Data::Dumper ...
- Session_OnEnd - session: 05ddbcb7541869bed4b4b6c0c9070836; ...
- executing Session_OnEnd ...
- creating dbm for file /home/nalamara/myapache/htdocs/asp/eg/05/05ddbcb7541869bed4b4b6c0c9070836, db SDBM_File, serializer: Data::Dumper ...
- deleting session - files_deleted: 1; session_id: 05ddbcb7541869bed4b4b6c0c9070836; ...
- group check 00, next in 15 sec ...
- resetting timeout for deletion lock on listboxlink ...
- creating state dir /home/nalamara/myapache/htdocs/asp/eg/li ...
- creating dbm for file /home/nalamara/myapache/htdocs/asp/eg/li/listboxlink, db SDBM_File, serializer: Data::Dumper ...
- Session_OnEnd - session: listboxlink; ...
- executing Session_OnEnd ...
- creating dbm for file /home/nalamara/myapache/htdocs/asp/eg/li/listboxlink, db SDBM_File, serializer: Data::Dumper ...
- deleting session - files_deleted: 1; session_id: listboxlink; ...
- group check 09, next in 22 sec ...
- group check 0a, next in 9 sec ...
- group check 0e, next in 11 sec ...
- not timed out with 1035312576 ...
- group check 0d, next in 5 sec ...
- group check 0b, next in 11 sec ...
- group check 0f, next in 5 sec ...
- group check 02, next in 15 sec ...
- group check 04, next in 29 sec ...
- group check 03, next in 13 sec ...
- cleanup groups - deleted: 0; ...
- Application_OnEnd ...
- executing Application_OnEnd ...
- Application_OnStart ...
- executing Application_OnStart ...
- Session_OnStart - session: 0ecc7cafa40331a70840a05361a49e72; ...
- executing Session_OnStart ...
- updating LastSessionTimeout from 1035311745 ...
- includes have not changed for script samplegraph1.asp ...
- parse file samplegraph1.asp ...
- parsing samplegraph1.asp ...
- start parse of data - 823 ...
- undefing sub Apache::ASP::Demo::__ASP__home_nalamara_myapache_htdocs_asp_eg_samplegraph1_aspxbb9175c238d1c4683f1529d060e92a9b code CODE(0x13a2fe8) ...
- compiling into package Apache::ASP::Demo subid [Apache::ASP::Demo::__ASP__home_nalamara_myapache_htdocs_asp_eg_samplegraph1_aspxbb9175c238d1c4683f1529d060e92a9b] ...
- maybe use strict error: Bareword "Cwd::cwd" not allowed while "strict subs" in use at /sbcimp/run/pd/cpan/5.6.1-2002.03/lib/GD/Text.pm line 271. BEGIN failed--compilation aborted at /sbcimp/run/pd/cpan/5.6.1-2002.03/lib/GD/Text/Align.pm line 50. BEGIN failed--compilation aborted at /sbcimp/run/pd/cpan/5.6.1-2002.03/lib/GD/Graph.pm line 38. BEGIN failed--compilation aborted at /sbcimp/run/pd/cpan/5.6.1-2002.03/lib/GD/Graph/axestype.pm line 18. BEGIN failed--compilation aborted at /sbcimp/run/pd/c ...
- undefing sub Apache::ASP::Demo::__ASP__home_nalamara_myapache_htdocs_asp_eg_samplegraph1_aspxbb9175c238d1c4683f1529d060e92a9b code CODE(0x13a2fe8) ...
- ASP Done Processing - asp: Apache::ASP=HASH(0x84d900); ...
- errors out <li> maybe use strict error: Bareword "Cwd::cwd" not allowed while "strict subs" in use at /sbcimp/run/pd/cpan/5.6.1-2002.03/lib/GD/Text.pm line 271. BEGIN failed--compilation aborted at /sbcimp/run/pd/cpan/5.6.1-2002.03/lib/GD/Text/Align.pm line 50. BEGIN failed--compilation aborted at /sbcimp/run/pd/cpan/5.6.1-2002.03/lib/GD/Graph.pm line 38. BEGIN failed--compilation aborted at /sbcimp/run/pd/cpan/5.6.1-2002.03/lib/GD/Graph/axestype.pm line 18. BEGIN failed--co ...
Compile Error maybe use strict error: Bareword "Cwd::cwd" not allowed while "strict subs" in use at /sbcimp/run/pd/cpan/5.6.1-2002.03/lib/GD/Text.pm line 271. BEGIN failed--compilation aborted at /sbcimp/run/pd/cpan/5.6.1-2002.03/lib/GD/Text/Align.pm line 50. BEGIN failed--compilation aborted at /sbcimp/run/pd/cpan/5.6.1-2002.03/lib/GD/Graph.pm line 38. BEGIN failed--compilation aborted at /sbcimp/run/pd/cpan/5.6.1-2002.03/lib/GD/Graph/axestype.pm line 18. BEGIN failed--compilation aborted at /sbcimp/run/pd/c ... Compiled Data with Error -: package Apache::ASP::Demo; ;; sub Apache::ASP::Demo::__ASP__home_nalamara_myapache_htdocs_asp_eg_samplegraph1_aspxbb9175c238d1c4683f1529d060e92a9b { ;; package Apache::ASP::Demo; ;; use strict;;use vars qw($Application $Session $Response $Server $Request);;use lib qw(/home/nalamara/myapache/htdocs/asp/eg//.);;; -: #line 1 samplegraph1.asp 1: ; 2: 3: 4: ; 5: $|++; 6: UseStrict config; 7: use GD::Graph::bars; 8: 9: 10: my @data = "(["Jan-01","Feb-01","Mar-01","Apr-01","May-01"," 11: "Jun-01","Jul-01","Aug-01","Sep-01"],[21,25,33,39,49,48,40,45,15],[58,55,62,48,45,44,41,35,43]); 12: 13: my $graph = new GD::Graph::bars; 14: 15: $graph->set( 16: x_label => 'Month', 17: y_label => 'Revenue ($1,000s)', 18: title => 'Monthly Online vs. Catalog Sales for 2001', 19: bar_spacing => 3, 20: long_ticks => 1, 21: show_values => 1, 22: ) or warn $graph->error; 23: 24: $graph->set_legend( 'Online', 'Catalog' ); 25: 26: $graph->plot(\@data) or die $graph->error; 27: 28: my $chart = $graph; 29: my $name = "TestGraph"; 30: my $ext = $chart->export_format; 31: 32: open(OUT, ">$name.$ext") or die "Cannot open $name.$ext for write: $!"; 33: binmode OUT; 34: print OUT $chart->gd->$ext(); 35: close OUT; 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: ; ;;no lib qw(/home/nalamara/myapache/htdocs/asp/eg//.); ;; }
An error has occured with the Apache::ASP script just run. If you are the developer working on this script, and cannot work through this problem, please try researching it at the Apache::ASP web site, specifically the FAQ section. Failing that, check out your support options, and if necessary include this debug output with any query.
Visit our website at http://www.ubswarburg.com This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. This message is provided for informational purposes and should not be construed as a solicitation or offer to buy or sell any securities or related financial instruments.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
