Skip to content
This repository has been archived by the owner on Sep 23, 2022. It is now read-only.

ServiceCircularReferenceException #163

Closed
mbontemps opened this issue Mar 6, 2014 · 8 comments
Closed

ServiceCircularReferenceException #163

mbontemps opened this issue Mar 6, 2014 · 8 comments
Labels

Comments

@mbontemps
Copy link
Member

I regularly see these errors in my logs with the latest rad-bundle (5fa07b0):

Uncaught exception 'Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException' with message 'Circular reference detected for service "knp_rad.domain_event.dispatcher.delayed", path: "knp_rad.domain_event.dispatcher.delayed -> doctrine.dbal.default_connection.event_manager".' in /home/my_project/app/bootstrap.php.cache:2010
Stack trace:
#0 /home/my_project/app/cache/prod/appProdDebugProjectContainer.php(5037): Symfony\Component\DependencyInjection\Container->get('knp_rad.domain_...')
#1 /home/my_project/app/bootstrap.php.cache(2033): appProdDebugProjectContainer->getDoctrine_Dbal_DefaultConnection_EventManagerService()
#2 /home/my_project/app/cache/prod/appProdDebugProjectContainer.php(2728): Symfony\Component\DependencyInjection\Container->get('doctrine.dbal.d...')
#3 /home/my_project/app/bootstrap.php.cache(2033): app in /home/my_project/app/bootstrap.php.cache on line 2010

I haven't yet managed to see where this is coming from… any idea?

@mbontemps mbontemps added the bug label Mar 6, 2014
@Nek-
Copy link
Contributor

Nek- commented Mar 15, 2014

Probably #144 relatead.

@docteurklein
Copy link
Contributor

no clue exactly, but I don't think it's #144 related since it has been fixed.

Can you paste or link to something that I can reproduce ?

@mbontemps
Copy link
Member Author

Hard to reproduce, but I finally got a clue of where this is happening.

It's when used together with the https://github.com/nelmio/NelmioCorsBundle

Every OPTIONS request (but not the first one) leads to this error…

@mbontemps
Copy link
Member Author

I've reproduced the issue in a minimal environment.

https://github.com/mbontemps/bug-rad-cors

There is a script in here which does the OPTIONS request - and fails:

https://travis-ci.org/mbontemps/bug-rad-cors

@mbontemps
Copy link
Member Author

And… more info: my tests pass with versions prior to 2a8fa14, so this comes from THIS commit!

Hope that helps!

@docteurklein
Copy link
Contributor

thanks a lot!

@mbontemps
Copy link
Member Author

I can confirm that this works for me, thanks! 👍

@docteurklein
Copy link
Contributor

thanks for the feedback :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants