schmittjoh / JMSSerializerBundle

Easily serialize, and deserialize data of any complexity (supports XML, JSON, YAML)
http://jmsyst.com/bundles/JMSSerializerBundle
MIT License
1.8k stars 311 forks source link

You have requested a non-existent service "jms_serializer.handler_registry". #883

Open palanisamy-emis opened 2 years ago

palanisamy-emis commented 2 years ago
Q A
Bug report? yes/no
Feature request? yes/no
BC Break report? yes/no
RFC? yes/no

Steps required to reproduce the problem

  1. I have used "jms/serializer-bundle": "^4.0", in my composer.json file
  2. PHP version = 8.1.0, symfony version = 4.4
  3. when i try to create database using the below command
  4. doctrine:database:create --env=dev --if-not-exists

Expected Result

Actual Result

goetas commented 2 years ago

did you clear the cache ?

mario-fehr commented 2 years ago

Same problem here and yes cleared the cache.

EdwardObala1 commented 2 years ago

I have this issue and have cleared the cache and its still around has anyone managed to solve it?

Blacksmoke16 commented 2 years ago

Seems to be fixable by upgrading friendsofsymfony/rest-bundle to ^3.1.0, assuming you're using the REST Bundle.

Ref: https://github.com/schmittjoh/JMSSerializerBundle/issues/877#issuecomment-955196303