httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pinate <>
Subject [users@httpd] Can't call method "jar" without a package
Date Fri, 28 Feb 2014 01:36:23 GMT
Hi,We have just installed Auth handler (Apache )  using mod_perl2 and CAS.1.
Initially, we had the  Internal Server Error "Expected token not present",
as per these below links suggested this could be because of our invalid
cookie format. But for our application to work, we need those
we changed as seen belowReplace from    my $jar = $req->jar or
return;    $jar->cookie_class(__PACKAGE__);    return $jar->get(shift) if
@_;    return wantarray ? %$jar : $jar;to  my $jar = eval {$req->jar()} ||
$@->jar;             #------------line 42
eval{$jar->cookie_class(__PACKAGE__)}; return $jar->get(shift) if @_; return
wantarray ? %$jar : $jar;My interpretation of the code in line#42 is if
there is some parsing error of cookie, ignore the error and use that cookie 
anyway.2. This fixed the above error, all is working fine in our internal
network..we can browse the web 3. However, when we access the target
application from external via vpn and also with some browsers. We are having
below Can't call method "jar" without a package or object reference at
/usr/lib64/perl5/vendor_perl/Apache2/ Can someone shed some light
into this?FYI, based on my troubleshooting and investigationI can see that
there is still cookie parsing error executing eval {$req->jar()} in line 42,
but somehow $@ is undefined. Hence  calling $@->jar cause such error.Don't
know why it is only failing in certain conditions as explained?  Could
anyone suggest some direction or a possible solution?ThanksPinate 

View this message in context:
Sent from the Apache HTTP Server - Users mailing list archive at
View raw message