Symfony Exception

NotFoundHttpException

HTTP 404 Not Found

LemaireBundle\Entity\Car object not found by the @ParamConverter annotation.

Exception

Symfony\Component\HttpKernel\Exception\ NotFoundHttpException

  1.         if (null === $object && false === $configuration->isOptional()) {
  2.             $message sprintf('%s object not found by the @%s annotation.'$class$this->getAnnotationName($configuration));
  3.             if ($errorMessage) {
  4.                 $message .= ' '.$errorMessage;
  5.             }
  6.             throw new NotFoundHttpException($message);
  7.         }
  8.         $request->attributes->set($name$object);
  9.         return true;
DoctrineParamConverter->apply(object(Request), object(ParamConverter)) in vendor/sensio/framework-extra-bundle/Request/ParamConverter/ParamConverterManager.php (line 92)
  1.             return;
  2.         }
  3.         foreach ($this->all() as $converter) {
  4.             if ($converter->supports($configuration)) {
  5.                 if ($converter->apply($request$configuration)) {
  6.                     return;
  7.                 }
  8.             }
  9.         }
  10.     }
ParamConverterManager->applyConverter(object(Request), object(ParamConverter)) in vendor/sensio/framework-extra-bundle/Request/ParamConverter/ParamConverterManager.php (line 48)
  1.         if (is_object($configurations)) {
  2.             $configurations = [$configurations];
  3.         }
  4.         foreach ($configurations as $configuration) {
  5.             $this->applyConverter($request$configuration);
  6.         }
  7.     }
  8.     /**
  9.      * Applies converter on request based on the given configuration.
ParamConverterManager->apply(object(Request), array('car' => object(ParamConverter))) in vendor/sensio/framework-extra-bundle/EventListener/ParamConverterListener.php (line 78)
  1.         // automatically apply conversion for non-configured objects
  2.         if ($this->autoConvert) {
  3.             $configurations $this->autoConfigure($r$request$configurations);
  4.         }
  5.         $this->manager->apply($request$configurations);
  6.     }
  7.     private function autoConfigure(\ReflectionFunctionAbstract $rRequest $request$configurations)
  8.     {
  9.         foreach ($r->getParameters() as $param) {
ParamConverterListener->onKernelController(object(FilterControllerEvent), 'kernel.controller', object(TraceableEventDispatcher))
call_user_func(array(object(ParamConverterListener), 'onKernelController'), object(FilterControllerEvent), 'kernel.controller', object(TraceableEventDispatcher)) in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php (line 104)
  1.     {
  2.         $this->called true;
  3.         $e $this->stopwatch->start($this->name'event_listener');
  4.         call_user_func($this->listener$event$eventName$this->dispatcher ?: $dispatcher);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
WrappedListener->__invoke(object(FilterControllerEvent), 'kernel.controller', object(ContainerAwareEventDispatcher)) in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line 212)
  1.     {
  2.         foreach ($listeners as $listener) {
  3.             if ($event->isPropagationStopped()) {
  4.                 break;
  5.             }
  6.             \call_user_func($listener$event$eventName$this);
  7.         }
  8.     }
  9.     /**
  10.      * Sorts the internal list of listeners for the given event by priority.
EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.controller', object(FilterControllerEvent)) in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php (line 44)
  1.         if (null === $event) {
  2.             $event = new Event();
  3.         }
  4.         if ($listeners $this->getListeners($eventName)) {
  5.             $this->doDispatch($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
EventDispatcher->dispatch('kernel.controller', object(FilterControllerEvent)) in vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php (line 139)
  1.         $this->preProcess($eventName);
  2.         $this->preDispatch($eventName$event);
  3.         $e $this->stopwatch->start($eventName'section');
  4.         $this->dispatcher->dispatch($eventName$event);
  5.         if ($e->isStarted()) {
  6.             $e->stop();
  7.         }
TraceableEventDispatcher->dispatch('kernel.controller', object(FilterControllerEvent)) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 139)
  1.         if (false === $controller $this->resolver->getController($request)) {
  2.             throw new NotFoundHttpException(sprintf('Unable to find the controller for path "%s". The route is wrongly configured.'$request->getPathInfo()));
  3.         }
  4.         $event = new FilterControllerEvent($this$controller$request$type);
  5.         $this->dispatcher->dispatch(KernelEvents::CONTROLLER$event);
  6.         $controller $event->getController();
  7.         // controller arguments
  8.         $arguments $this->argumentResolver->getArguments($request$controller);
HttpKernel->handleRaw(object(Request), 1) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php (line 68)
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level'ob_get_level());
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
HttpKernel->handle(object(Request), 1, true) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php (line 200)
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
Kernel->handle(object(Request), 1, true) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php (line 466)
  1.             $trustedProxies[] = '127.0.0.1';
  2.             Request::setTrustedProxies($trustedProxiesRequest::HEADER_X_FORWARDED_ALL);
  3.         }
  4.         // always a "master" request (as the real master request can be in cache)
  5.         $response $this->kernel->handle($requestHttpKernelInterface::MASTER_REQUEST$catch);
  6.         // FIXME: we probably need to also catch exceptions if raw === true
  7.         // we don't implement the stale-if-error on Requests, which is nonetheless part of the RFC
  8.         if (null !== $entry && in_array($response->getStatusCode(), array(500502503504))) {
  9.             if (null === $age $entry->headers->getCacheControlDirective('stale-if-error')) {
HttpCache->forward(object(Request), true, null) in vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php (line 57)
  1.     protected function forward(Request $request$raw falseResponse $entry null)
  2.     {
  3.         $this->getKernel()->boot();
  4.         $this->getKernel()->getContainer()->set('cache'$this);
  5.         return parent::forward($request$raw$entry);
  6.     }
  7.     /**
  8.      * Returns an array of options to customize the Cache configuration.
  9.      *
HttpCache->forward(object(Request), true) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php (line 420)
  1.         // avoid that the backend sends no content
  2.         $subRequest->headers->remove('if_modified_since');
  3.         $subRequest->headers->remove('if_none_match');
  4.         $response $this->forward($subRequest$catch);
  5.         if ($response->isCacheable()) {
  6.             $this->store($request$response);
  7.         }
HttpCache->fetch(object(Request), true) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php (line 317)
  1.         }
  2.         if (null === $entry) {
  3.             $this->record($request'miss');
  4.             return $this->fetch($request$catch);
  5.         }
  6.         if (!$this->isFreshEnough($request$entry)) {
  7.             $this->record($request'stale');
HttpCache->lookup(object(Request), true) in vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php (line 192)
  1.                 reload the cache by fetching a fresh response and caching it (if possible).
  2.             */
  3.             $this->record($request'reload');
  4.             $response $this->fetch($request$catch);
  5.         } else {
  6.             $response $this->lookup($request$catch);
  7.         }
  8.         $this->restoreResponseBody($request$response);
  9.         if (HttpKernelInterface::MASTER_REQUEST === $type && $this->options['debug']) {
HttpCache->handle(object(Request)) in web/app.php (line 24)
  1. // When using the HttpCache, you need to call the method in your front controller instead of relying on the configuration parameter
  2. // Request::enableHttpMethodParameterOverride();
  3. $request Request::createFromGlobals();
  4. $response $kernel->handle($request);
  5. $response->send();
  6. $kernel->terminate($request$response);

Logs 1

Level Channel Message
INFO 10:10:20 request Matched route "car_show".
INFO 10:10:20 security Populated the TokenStorage with an anonymous Token.
DEBUG 10:10:20 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
DEBUG 10:10:20 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
DEBUG 10:10:20 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
DEBUG 10:10:20 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
DEBUG 10:10:20 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
DEBUG 10:10:20 event Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\ResolveControllerNameSubscriber::onKernelRequest".
DEBUG 10:10:20 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
DEBUG 10:10:20 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest".
DEBUG 10:10:20 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
DEBUG 10:10:20 doctrine SELECT t0.id AS id_1, t0.ref AS ref_2, t0.date AS date_3, t0.datesold AS datesold_4, t0.serie AS serie_5, t0.motorisation AS motorisation_6, t0.immatriculation AS immatriculation_7, t0.cvfiscaux AS cvfiscaux_8, t0.description AS description_9, t0.annee AS annee_10, t0.kms AS kms_11, t0.prixdestock AS prixdestock_12, t0.prixgarantie AS prixgarantie_13, t0.tempsgarantie AS tempsgarantie_14, t0.vendu AS vendu_15, t0.promotion AS promotion_16, t0.centrale AS centrale_17, t0.date_centrale AS date_centrale_18, t0.status_centrale AS status_centrale_19, t0.comment_centrale AS comment_centrale_20, t0.active AS active_21, t0.couleur AS couleur_22, t0.boitevitesse AS boitevitesse_23, t0.portes AS portes_24, t0.places AS places_25, t0.options AS options_26, t0.modele_id AS modele_id_27, t0.energie_id AS energie_id_28, t0.type_id AS type_id_29 FROM car t0 WHERE t0.id = ?
ERROR 10:10:20 request Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "LemaireBundle\Entity\Car object not found by the @ParamConverter annotation." at /home/lemairea/www/vendor/sensio/framework-extra-bundle/Request/ParamConverter/DoctrineParamConverter.php line 87
DEBUG 10:10:20 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\DebugHandlersListener::configure".
DEBUG 10:10:20 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\ValidateRequestListener::onKernelRequest".
DEBUG 10:10:20 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\SessionListener::onKernelRequest".
DEBUG 10:10:20 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\FragmentListener::onKernelRequest".
DEBUG 10:10:20 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\RouterListener::onKernelRequest".
DEBUG 10:10:20 event Notified event "kernel.request" to listener "Symfony\Bundle\FrameworkBundle\EventListener\ResolveControllerNameSubscriber::onKernelRequest".
DEBUG 10:10:20 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\LocaleListener::onKernelRequest".
DEBUG 10:10:20 event Notified event "kernel.request" to listener "Symfony\Component\HttpKernel\EventListener\TranslatorListener::onKernelRequest".
DEBUG 10:10:20 event Notified event "kernel.request" to listener "Symfony\Bundle\SecurityBundle\Debug\TraceableFirewallListener::onKernelRequest".
DEBUG 10:10:20 event Notified event "kernel.controller" to listener "Symfony\Component\EventDispatcher\Debug\WrappedListener::__invoke".
DEBUG 10:10:20 event Notified event "kernel.controller" to listener "Symfony\Component\EventDispatcher\Debug\WrappedListener::__invoke".
DEBUG 10:10:20 event Notified event "kernel.controller" to listener "Symfony\Component\EventDispatcher\Debug\WrappedListener::__invoke".
DEBUG 10:10:20 event Notified event "kernel.controller" to listener "Symfony\Component\EventDispatcher\Debug\WrappedListener::__invoke".
DEBUG 10:10:20 event Notified event "kernel.controller" to listener "Symfony\Component\EventDispatcher\Debug\WrappedListener::__invoke".
DEBUG 10:10:20 event Notified event "kernel.controller" to listener "Symfony\Component\EventDispatcher\Debug\WrappedListener::__invoke".
DEBUG 10:10:20 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\SecurityListener::onKernelControllerArguments".
DEBUG 10:10:20 event Notified event "kernel.controller_arguments" to listener "Sensio\Bundle\FrameworkExtraBundle\EventListener\IsGrantedListener::onKernelControllerArguments".

Stack Trace

NotFoundHttpException

Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
LemaireBundle\Entity\Car object not found by the @ParamConverter annotation.

  at vendor/sensio/framework-extra-bundle/Request/ParamConverter/DoctrineParamConverter.php:87
  at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\DoctrineParamConverter->apply(object(Request), object(ParamConverter))
     (vendor/sensio/framework-extra-bundle/Request/ParamConverter/ParamConverterManager.php:92)
  at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->applyConverter(object(Request), object(ParamConverter))
     (vendor/sensio/framework-extra-bundle/Request/ParamConverter/ParamConverterManager.php:48)
  at Sensio\Bundle\FrameworkExtraBundle\Request\ParamConverter\ParamConverterManager->apply(object(Request), array('car' => object(ParamConverter)))
     (vendor/sensio/framework-extra-bundle/EventListener/ParamConverterListener.php:78)
  at Sensio\Bundle\FrameworkExtraBundle\EventListener\ParamConverterListener->onKernelController(object(FilterControllerEvent), 'kernel.controller', object(TraceableEventDispatcher))
  at call_user_func(array(object(ParamConverterListener), 'onKernelController'), object(FilterControllerEvent), 'kernel.controller', object(TraceableEventDispatcher))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/WrappedListener.php:104)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(FilterControllerEvent), 'kernel.controller', object(ContainerAwareEventDispatcher))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:212)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.controller', object(FilterControllerEvent))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/EventDispatcher.php:44)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch('kernel.controller', object(FilterControllerEvent))
     (vendor/symfony/symfony/src/Symfony/Component/EventDispatcher/Debug/TraceableEventDispatcher.php:139)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch('kernel.controller', object(FilterControllerEvent))
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:139)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php:68)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:200)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request), 1, true)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:466)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(object(Request), true, null)
     (vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php:57)
  at Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache->forward(object(Request), true)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:420)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(object(Request), true)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:317)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(object(Request), true)
     (vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php:192)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(object(Request))
     (web/app.php:24)