Mailing List Archive

Error: "You requested a stash, but one does not exist"
Hi there, I just set up a new virtual machine with WinServer 2012. I've installed Strawberry Perl 5.20.1 and installed all needed modules from CPAN. My Catalyst-Application starts up correctly (no error seen) as Catalyst Standalone Server. Trying to access via Webbrowser (http://localhost:3000) runs into an error: Caught exception in Engine: "You requested a stash, but one does not exist at .....\site\lib\Catalyst.pm line 517." The very same application runs without any complaints on my old VM (Win2003 Server, Strawberry Perl 5.18.0) Any ideas whats going wrong? Johannes
Re: Error: "You requested a stash, but one does not exist" [ In reply to ]
Johannes,
We're going to need a ton more info to help.  The likely reason is that about 9 months ago the stash was moved to the middleware layer, which makes it context bound and you are asking for the stash in application scope.  We need to know stuff like what version you upgraded from and configuration info, etc.  How all the log trace looks up to the error is also needed.
Please review the changlog, upgrading and delta pods as well, since that might assist.
jnap

On Monday, February 23, 2015 3:14 AM, Johannes Kilian <Jo.Kilian@gmx.de> wrote:


Hi there, I just set up a new virtual machine with WinServer 2012. I've installed Strawberry Perl 5.20.1 and installed all needed modules from CPAN. My Catalyst-Application starts up correctly (no error seen) as Catalyst Standalone Server. Trying to access via Webbrowser (http://localhost:3000) runs into an error: Caught exception in Engine: "You requested a stash, but one does not exist at .....\site\lib\Catalyst.pm line 517." The very same application runs without any complaints on my old VM (Win2003 Server, Strawberry Perl 5.18.0)  Any ideas whats going wrong? Johannes
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/
Re: Error: "You requested a stash, but one does not exist" [ In reply to ]
Hello John, On Monday, February 23, 2015, John Napiorkowski <jjn1056@yahoo.com> wrote: ...The likely reason is that about 9 months ago the stash was moved to the middleware layer, which makes it context bound and you are asking for the stash in application scope.... Yes - you are right. Completly forgot about this - while I stuck in developing on Perl 5.18/Catalyst 5.8xxxx until yesterday. The error was indeed still using stash within application scope. After moving all stash access from application scope into the controller scope (root controller) everything works again as expected. Thanks for your valueable hint. Regards Johannes
Re: Error: "You requested a stash, but one does not exist" [ In reply to ]
Johannes,
If you have time to add a note in the Upgrading.POD file, feel free to send a pull request ;) => perl-catalyst/catalyst-runtime

On Tuesday, February 24, 2015 5:12 AM, Johannes Kilian <Jo.Kilian@gmx.de> wrote:


Hello John, On Monday, February 23, 2015, John Napiorkowski <jjn1056@yahoo.com> wrote:...The likely reason is that about 9 months ago the stash was moved to the middleware layer, which makes it context bound and you are asking for the stash in application scope....  Yes - you are right. Completly forgot about this - while I stuck in developing on Perl 5.18/Catalyst 5.8xxxx until yesterday.The error was indeed still using stash within application scope. After moving all stash access from application scope into the controller scope (root controller) everything works again as expected. Thanks for your valueable hint. RegardsJohannes
_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/