2009年12月2日星期三

Re: [fw-mvc] Uncaught exception

 Hi Andre!

This usually happens if tow resources in the bootstrap require the same resource.
For example (methods in the Bootstrap.php):

- the resource db requires the resource cache
- but the resource cache also requires the resource db

So this is the point when the framework throws an exception, cause it can not resolve the dependencies as two resources require each other...

Have look in your application.ini and the Bootstrap.php

Regards,

Christoph

Am 02.12.2009 15:40, schrieb Andre Fernandes:
Hello,
I have created a new project using the command line ('zf create project zf1') and when I try to execute that using the browser I get the following error:

Fatal error: Uncaught exception 'Zend_Application_Bootstrap_Exception' with message 'Circular resource dependency detected' in
C:\Documents and Settings\andrecf\Meus documentos\zf1\library\Zend\Application\Bootstrap\BootstrapAbstract.php:655 Stack trace: #0 C:\Documents and Settings\andrecf\Meus documentos\zf1\library\Zend\Application\Bootstrap\BootstrapAbstract.php(622): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('view') #1 C:\Documents and Settings\andrecf\Meus documentos\zf1\library\Zend\Application\Bootstrap\BootstrapAbstract.php(579): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap('view') #2 C:\Documents and Settings\andrecf\Meus documentos\zf1\application\Bootstrap.php(7): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap('view') #3 C:\Documents and Settings\andrecf\Meus documentos\zf1\library\Zend\Application\Bootstrap\BootstrapAbstract.php(662): Bootstrap->_initView() #4 C:\Documents and Settings\andrecf\Meus documentos\zf1\library\Zend\Application\Bootstrap\BootstrapAbstract.ph in C:\Documents and Settings\andrecf\Meus documentos\zf1\library\Zend\Application\Bootstrap\BootstrapAbstract.php on line 655

What could that be? I am using the ZF 1.9.6. And I have not touched any source file yet.

Thanks a lot for the answers,
--
André de Camargo Fernandes



--  ------------------------------------------------------------    Christoph Rust Senior Software Developer   von Affenfels GmbH Kronenstraße 40 D-70174 Stuttgart  Telefon +49 (0) 711 305 890-36 Telefax +49 (0) 711 305 890-90 http://www.vonaffenfels.de | christoph.rust@vonaffenfels.de  Sitz der Gesellschaft: Stuttgart Handelsregister Stuttgart HRB 728101  Geschäftsführer: Christian Jehle, Jürgen Knispel 

--  ------------------------------------------------------------    Christoph Rust Senior Software Developer   von Affenfels GmbH Kronenstraße 40 D-70174 Stuttgart  Telefon +49 (0) 711 305 890-36 Telefax +49 (0) 711 305 890-90 http://www.vonaffenfels.de | christoph.rust@vonaffenfels.de  Sitz der Gesellschaft: Stuttgart Handelsregister Stuttgart HRB 728101  Geschäftsführer: Christian Jehle, Jürgen Knispel 

没有评论: