http://opendata.kedirikab.go.id/dataset/request?p=dataset%2Frequest

Exceptions

An exception occurred in driver: SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?

Exceptions 3

Doctrine\DBAL\Exception\ ConnectionException

  1.             case '42P07':
  2.                 return new TableExistsException($message$exception);
  3.             case '08006':
  4.                 return new Exception\ConnectionException($message$exception);
  5.             case '7':
  6.                 // Prior to fixing https://bugs.php.net/bug.php?id=64705 (PHP 7.3.22 and PHP 7.4.10),
  7.                 // in some cases (mainly connection errors) the PDO exception wouldn't provide a SQLSTATE via its code.
  8.                 // The exception code would be always set to 7 here.
  1.         if ($driverEx instanceof DriverException) {
  2.             return $driverEx;
  3.         }
  4.         if ($driver instanceof ExceptionConverterDriver && $driverEx instanceof DeprecatedDriverException) {
  5.             return $driver->convertException($msg$driverEx);
  6.         }
  7.         return new Exception($msg0$driverEx);
  8.     }
  1.      *
  2.      * @return Exception
  3.      */
  4.     public static function driverException(Driver $driverThrowable $driverEx)
  5.     {
  6.         return self::wrapException($driver$driverEx'An exception occurred in driver: ' $driverEx->getMessage());
  7.     }
  8.     /**
  9.      * @return Exception
  10.      */
  1.                 $pdo->exec('SET NAMES \'' $params['charset'] . '\'');
  2.             }
  3.             return $pdo;
  4.         } catch (PDOException $e) {
  5.             throw Exception::driverException($this$e);
  6.         }
  7.     }
  8.     /**
  9.      * Constructs the Postgres PDO DSN.
  1.         $driverOptions $this->params['driverOptions'] ?? [];
  2.         $user          $this->params['user'] ?? null;
  3.         $password      $this->params['password'] ?? null;
  4.         $this->_conn $this->_driver->connect($this->params$user$password$driverOptions);
  5.         $this->transactionNestingLevel 0;
  6.         if ($this->autoCommit === false) {
  7.             $this->beginTransaction();
  1.      *
  2.      * @return DriverConnection
  3.      */
  4.     public function getWrappedConnection()
  5.     {
  6.         $this->connect();
  7.         assert($this->_conn !== null);
  8.         return $this->_conn;
  9.     }
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php -> getWrappedConnection (line 1290)
  1.     {
  2.         if ($qcp !== null) {
  3.             return $this->executeCacheQuery($sql$params$types$qcp);
  4.         }
  5.         $connection $this->getWrappedConnection();
  6.         $logger $this->_config->getSQLLogger();
  7.         if ($logger) {
  8.             $logger->startQuery($sql$params$types);
  9.         }
  1.      *
  2.      * @return Result
  3.      */
  4.     public function execute(Connection $conn, array $params, array $types)
  5.     {
  6.         return $conn->executeQuery($this->_sqlStatements$params$types$this->queryCacheProfile);
  7.     }
  8. }
  1.             $sqlParams,
  2.             $types,
  3.             $this->_em->getConnection()->getParams()
  4.         );
  5.         return $executor->execute($this->_em->getConnection(), $sqlParams$types);
  6.     }
  7.     /**
  8.      * @param array<string,mixed> $sqlParams
  9.      * @param array<string,Type>  $types
  1.             $setCacheEntry = static function ($data) use ($cache$result$cacheItem$realCacheKey): void {
  2.                 $cache->save($cacheItem->set($result + [$realCacheKey => $data]));
  3.             };
  4.         }
  5.         $stmt $this->_doExecute();
  6.         if (is_numeric($stmt)) {
  7.             $setCacheEntry($stmt);
  8.             return $stmt;
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php -> executeIgnoreQueryCache (line 1166)
  1.     {
  2.         if ($this->cacheable && $this->isCacheEnabled()) {
  3.             return $this->executeUsingQueryCache($parameters$hydrationMode);
  4.         }
  5.         return $this->executeIgnoreQueryCache($parameters$hydrationMode);
  6.     }
  7.     /**
  8.      * Execute query ignoring second level cache.
  9.      *
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function getEntities()
  5.     {
  6.         return $this->queryBuilder->getQuery()->execute();
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.      * {@inheritdoc}
  2.      */
  3.     protected function loadChoices(): iterable
  4.     {
  5.         return $this->objectLoader
  6.             $this->objectLoader->getEntities()
  7.             : $this->manager->getRepository($this->class)->findAll();
  8.     }
  9.     /**
  10.      * @internal to be remove in Symfony 6
  1.      *
  2.      * {@inheritdoc}
  3.      */
  4.     public function loadChoiceList(callable $value null): ChoiceListInterface
  5.     {
  6.         return new ArrayChoiceList($this->choices ?? $this->choices $this->loadChoices(), $value);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function getChoices()
  5.     {
  6.         return $this->loader->loadChoiceList($this->value)->getChoices();
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.     {
  2.         $labelTranslationParameters = \func_num_args() > func_get_arg(6) : [];
  3.         $preferredViews = [];
  4.         $preferredViewsOrder = [];
  5.         $otherViews = [];
  6.         $choices $list->getChoices();
  7.         $keys $list->getOriginalKeys();
  8.         if (!\is_callable($preferredChoices)) {
  9.             if (empty($preferredChoices)) {
  10.                 $preferredChoices null;
  1.                 return $accessor->getValue($choice$labelTranslationParameters);
  2.             };
  3.         }
  4.         return $this->decoratedFactory->createView(
  5.             $list,
  6.             $preferredChoices,
  7.             $label,
  8.             $index,
  9.             $groupBy,
  10.             $attr,
  1.         $hash self::generateHash([$list$preferredChoices$label$index$groupBy$attr$labelTranslationParameters]);
  2.         if (!isset($this->views[$hash])) {
  3.             $this->views[$hash] = $this->decoratedFactory->createView(
  4.                 $list,
  5.                 $preferredChoices,
  6.                 $label,
  7.                 $index,
  8.                 $groupBy,
  9.                 $attr,
  1.             $options['preferred_choices'],
  2.             $options['choice_label'],
  3.             $options['choice_name'],
  4.             $options['group_by'],
  5.             $options['choice_attr'],
  6.             $options['choice_translation_parameters']
  7.         );
  8.     }
  9. }
in vendor/symfony/form/Extension/Core/Type/ChoiceType.php -> createChoiceListView (line 253)
  1.         $choiceList $form->getConfig()->getAttribute('choice_list');
  2.         /** @var ChoiceListView $choiceListView */
  3.         $choiceListView $form->getConfig()->hasAttribute('choice_list_view')
  4.             ? $form->getConfig()->getAttribute('choice_list_view')
  5.             : $this->createChoiceListView($choiceList$options);
  6.         $view->vars array_replace($view->vars, [
  7.             'multiple' => $options['multiple'],
  8.             'expanded' => $options['expanded'],
  9.             'preferred_choices' => $choiceListView->preferredChoices,
  1.     {
  2.         if (null !== $this->parent) {
  3.             $this->parent->buildView($view$form$options);
  4.         }
  5.         $this->innerType->buildView($view$form$options);
  6.         foreach ($this->typeExtensions as $extension) {
  7.             $extension->buildView($view$form$options);
  8.         }
  9.     }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function buildView(FormView $viewFormInterface $form, array $options)
  5.     {
  6.         $this->proxiedType->buildView($view$form$options);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.      * {@inheritdoc}
  2.      */
  3.     public function buildView(FormView $viewFormInterface $form, array $options)
  4.     {
  5.         if (null !== $this->parent) {
  6.             $this->parent->buildView($view$form$options);
  7.         }
  8.         $this->innerType->buildView($view$form$options);
  9.         foreach ($this->typeExtensions as $extension) {
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function buildView(FormView $viewFormInterface $form, array $options)
  5.     {
  6.         $this->proxiedType->buildView($view$form$options);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
in vendor/symfony/form/Form.php -> buildView (line 1062)
  1.         // The methods createView(), buildView() and finishView() are called
  2.         // explicitly here in order to be able to override either of them
  3.         // in a custom resolved form type.
  4.         $view $type->createView($this$parent);
  5.         $type->buildView($view$this$options);
  6.         foreach ($this->children as $name => $child) {
  7.             $view->children[$name] = $child->createView($view);
  8.         }
in vendor/symfony/form/Form.php -> createView (line 1065)
  1.         $view $type->createView($this$parent);
  2.         $type->buildView($view$this$options);
  3.         foreach ($this->children as $name => $child) {
  4.             $view->children[$name] = $child->createView($view);
  5.         }
  6.         $this->sort($view->children);
  7.         $type->finishView($view$this$options);
Form->createView() in src/Controller/Frontend/DatasetController.php (line 284)
  1.             return $this->redirectToRoute('dataset');
  2.         }
  3.         return $this->render('/frontend/dataset/form.html.twig', [
  4.             'form' => $form->createView(),
  5.             'header_kategori' => $this->getHeaderKategori(),
  6.         ]);
  7.     }
  8.     /**
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  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) {
  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() in public/index.php (line 20)
  1.     Debug::enable();
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Doctrine\DBAL\Driver\PDO\ Exception

SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?

  1.  */
  2. final class Exception extends PDOException
  3. {
  4.     public static function new(\PDOException $exception): self
  5.     {
  6.         return new self($exception);
  7.     }
  8. }
  1.         try {
  2.             parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
  3.             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
  4.             $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  5.         } catch (PDOException $exception) {
  6.             throw Exception::new($exception);
  7.         }
  8.     }
  9.     /**
  10.      * {@inheritdoc}
  1.      */
  2.     public function connect(array $params$username null$password null, array $driverOptions = [])
  3.     {
  4.         try {
  5.             $pdo = new PDO\Connection(
  6.                 $this->_constructPdoDsn($params),
  7.                 $username,
  8.                 $password,
  9.                 $driverOptions
  10.             );
  1.         $driverOptions $this->params['driverOptions'] ?? [];
  2.         $user          $this->params['user'] ?? null;
  3.         $password      $this->params['password'] ?? null;
  4.         $this->_conn $this->_driver->connect($this->params$user$password$driverOptions);
  5.         $this->transactionNestingLevel 0;
  6.         if ($this->autoCommit === false) {
  7.             $this->beginTransaction();
  1.      *
  2.      * @return DriverConnection
  3.      */
  4.     public function getWrappedConnection()
  5.     {
  6.         $this->connect();
  7.         assert($this->_conn !== null);
  8.         return $this->_conn;
  9.     }
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php -> getWrappedConnection (line 1290)
  1.     {
  2.         if ($qcp !== null) {
  3.             return $this->executeCacheQuery($sql$params$types$qcp);
  4.         }
  5.         $connection $this->getWrappedConnection();
  6.         $logger $this->_config->getSQLLogger();
  7.         if ($logger) {
  8.             $logger->startQuery($sql$params$types);
  9.         }
  1.      *
  2.      * @return Result
  3.      */
  4.     public function execute(Connection $conn, array $params, array $types)
  5.     {
  6.         return $conn->executeQuery($this->_sqlStatements$params$types$this->queryCacheProfile);
  7.     }
  8. }
  1.             $sqlParams,
  2.             $types,
  3.             $this->_em->getConnection()->getParams()
  4.         );
  5.         return $executor->execute($this->_em->getConnection(), $sqlParams$types);
  6.     }
  7.     /**
  8.      * @param array<string,mixed> $sqlParams
  9.      * @param array<string,Type>  $types
  1.             $setCacheEntry = static function ($data) use ($cache$result$cacheItem$realCacheKey): void {
  2.                 $cache->save($cacheItem->set($result + [$realCacheKey => $data]));
  3.             };
  4.         }
  5.         $stmt $this->_doExecute();
  6.         if (is_numeric($stmt)) {
  7.             $setCacheEntry($stmt);
  8.             return $stmt;
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php -> executeIgnoreQueryCache (line 1166)
  1.     {
  2.         if ($this->cacheable && $this->isCacheEnabled()) {
  3.             return $this->executeUsingQueryCache($parameters$hydrationMode);
  4.         }
  5.         return $this->executeIgnoreQueryCache($parameters$hydrationMode);
  6.     }
  7.     /**
  8.      * Execute query ignoring second level cache.
  9.      *
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function getEntities()
  5.     {
  6.         return $this->queryBuilder->getQuery()->execute();
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.      * {@inheritdoc}
  2.      */
  3.     protected function loadChoices(): iterable
  4.     {
  5.         return $this->objectLoader
  6.             $this->objectLoader->getEntities()
  7.             : $this->manager->getRepository($this->class)->findAll();
  8.     }
  9.     /**
  10.      * @internal to be remove in Symfony 6
  1.      *
  2.      * {@inheritdoc}
  3.      */
  4.     public function loadChoiceList(callable $value null): ChoiceListInterface
  5.     {
  6.         return new ArrayChoiceList($this->choices ?? $this->choices $this->loadChoices(), $value);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function getChoices()
  5.     {
  6.         return $this->loader->loadChoiceList($this->value)->getChoices();
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.     {
  2.         $labelTranslationParameters = \func_num_args() > func_get_arg(6) : [];
  3.         $preferredViews = [];
  4.         $preferredViewsOrder = [];
  5.         $otherViews = [];
  6.         $choices $list->getChoices();
  7.         $keys $list->getOriginalKeys();
  8.         if (!\is_callable($preferredChoices)) {
  9.             if (empty($preferredChoices)) {
  10.                 $preferredChoices null;
  1.                 return $accessor->getValue($choice$labelTranslationParameters);
  2.             };
  3.         }
  4.         return $this->decoratedFactory->createView(
  5.             $list,
  6.             $preferredChoices,
  7.             $label,
  8.             $index,
  9.             $groupBy,
  10.             $attr,
  1.         $hash self::generateHash([$list$preferredChoices$label$index$groupBy$attr$labelTranslationParameters]);
  2.         if (!isset($this->views[$hash])) {
  3.             $this->views[$hash] = $this->decoratedFactory->createView(
  4.                 $list,
  5.                 $preferredChoices,
  6.                 $label,
  7.                 $index,
  8.                 $groupBy,
  9.                 $attr,
  1.             $options['preferred_choices'],
  2.             $options['choice_label'],
  3.             $options['choice_name'],
  4.             $options['group_by'],
  5.             $options['choice_attr'],
  6.             $options['choice_translation_parameters']
  7.         );
  8.     }
  9. }
in vendor/symfony/form/Extension/Core/Type/ChoiceType.php -> createChoiceListView (line 253)
  1.         $choiceList $form->getConfig()->getAttribute('choice_list');
  2.         /** @var ChoiceListView $choiceListView */
  3.         $choiceListView $form->getConfig()->hasAttribute('choice_list_view')
  4.             ? $form->getConfig()->getAttribute('choice_list_view')
  5.             : $this->createChoiceListView($choiceList$options);
  6.         $view->vars array_replace($view->vars, [
  7.             'multiple' => $options['multiple'],
  8.             'expanded' => $options['expanded'],
  9.             'preferred_choices' => $choiceListView->preferredChoices,
  1.     {
  2.         if (null !== $this->parent) {
  3.             $this->parent->buildView($view$form$options);
  4.         }
  5.         $this->innerType->buildView($view$form$options);
  6.         foreach ($this->typeExtensions as $extension) {
  7.             $extension->buildView($view$form$options);
  8.         }
  9.     }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function buildView(FormView $viewFormInterface $form, array $options)
  5.     {
  6.         $this->proxiedType->buildView($view$form$options);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.      * {@inheritdoc}
  2.      */
  3.     public function buildView(FormView $viewFormInterface $form, array $options)
  4.     {
  5.         if (null !== $this->parent) {
  6.             $this->parent->buildView($view$form$options);
  7.         }
  8.         $this->innerType->buildView($view$form$options);
  9.         foreach ($this->typeExtensions as $extension) {
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function buildView(FormView $viewFormInterface $form, array $options)
  5.     {
  6.         $this->proxiedType->buildView($view$form$options);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
in vendor/symfony/form/Form.php -> buildView (line 1062)
  1.         // The methods createView(), buildView() and finishView() are called
  2.         // explicitly here in order to be able to override either of them
  3.         // in a custom resolved form type.
  4.         $view $type->createView($this$parent);
  5.         $type->buildView($view$this$options);
  6.         foreach ($this->children as $name => $child) {
  7.             $view->children[$name] = $child->createView($view);
  8.         }
in vendor/symfony/form/Form.php -> createView (line 1065)
  1.         $view $type->createView($this$parent);
  2.         $type->buildView($view$this$options);
  3.         foreach ($this->children as $name => $child) {
  4.             $view->children[$name] = $child->createView($view);
  5.         }
  6.         $this->sort($view->children);
  7.         $type->finishView($view$this$options);
Form->createView() in src/Controller/Frontend/DatasetController.php (line 284)
  1.             return $this->redirectToRoute('dataset');
  2.         }
  3.         return $this->render('/frontend/dataset/form.html.twig', [
  4.             'form' => $form->createView(),
  5.             'header_kategori' => $this->getHeaderKategori(),
  6.         ]);
  7.     }
  8.     /**
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  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) {
  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() in public/index.php (line 20)
  1.     Debug::enable();
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

PDOException

SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?

  1.      * @throws PDOException In case of an error.
  2.      */
  3.     public function __construct($dsn$user null$password null, ?array $options null)
  4.     {
  5.         try {
  6.             parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
  7.             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
  8.             $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  9.         } catch (PDOException $exception) {
  10.             throw Exception::new($exception);
  11.         }
  1.      * @throws PDOException In case of an error.
  2.      */
  3.     public function __construct($dsn$user null$password null, ?array $options null)
  4.     {
  5.         try {
  6.             parent::__construct($dsn, (string) $user, (string) $password, (array) $options);
  7.             $this->setAttribute(PDO::ATTR_STATEMENT_CLASS, [Statement::class, []]);
  8.             $this->setAttribute(PDO::ATTR_ERRMODEPDO::ERRMODE_EXCEPTION);
  9.         } catch (PDOException $exception) {
  10.             throw Exception::new($exception);
  11.         }
  1.      */
  2.     public function connect(array $params$username null$password null, array $driverOptions = [])
  3.     {
  4.         try {
  5.             $pdo = new PDO\Connection(
  6.                 $this->_constructPdoDsn($params),
  7.                 $username,
  8.                 $password,
  9.                 $driverOptions
  10.             );
  1.         $driverOptions $this->params['driverOptions'] ?? [];
  2.         $user          $this->params['user'] ?? null;
  3.         $password      $this->params['password'] ?? null;
  4.         $this->_conn $this->_driver->connect($this->params$user$password$driverOptions);
  5.         $this->transactionNestingLevel 0;
  6.         if ($this->autoCommit === false) {
  7.             $this->beginTransaction();
  1.      *
  2.      * @return DriverConnection
  3.      */
  4.     public function getWrappedConnection()
  5.     {
  6.         $this->connect();
  7.         assert($this->_conn !== null);
  8.         return $this->_conn;
  9.     }
in vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php -> getWrappedConnection (line 1290)
  1.     {
  2.         if ($qcp !== null) {
  3.             return $this->executeCacheQuery($sql$params$types$qcp);
  4.         }
  5.         $connection $this->getWrappedConnection();
  6.         $logger $this->_config->getSQLLogger();
  7.         if ($logger) {
  8.             $logger->startQuery($sql$params$types);
  9.         }
  1.      *
  2.      * @return Result
  3.      */
  4.     public function execute(Connection $conn, array $params, array $types)
  5.     {
  6.         return $conn->executeQuery($this->_sqlStatements$params$types$this->queryCacheProfile);
  7.     }
  8. }
  1.             $sqlParams,
  2.             $types,
  3.             $this->_em->getConnection()->getParams()
  4.         );
  5.         return $executor->execute($this->_em->getConnection(), $sqlParams$types);
  6.     }
  7.     /**
  8.      * @param array<string,mixed> $sqlParams
  9.      * @param array<string,Type>  $types
  1.             $setCacheEntry = static function ($data) use ($cache$result$cacheItem$realCacheKey): void {
  2.                 $cache->save($cacheItem->set($result + [$realCacheKey => $data]));
  3.             };
  4.         }
  5.         $stmt $this->_doExecute();
  6.         if (is_numeric($stmt)) {
  7.             $setCacheEntry($stmt);
  8.             return $stmt;
in vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php -> executeIgnoreQueryCache (line 1166)
  1.     {
  2.         if ($this->cacheable && $this->isCacheEnabled()) {
  3.             return $this->executeUsingQueryCache($parameters$hydrationMode);
  4.         }
  5.         return $this->executeIgnoreQueryCache($parameters$hydrationMode);
  6.     }
  7.     /**
  8.      * Execute query ignoring second level cache.
  9.      *
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function getEntities()
  5.     {
  6.         return $this->queryBuilder->getQuery()->execute();
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.      * {@inheritdoc}
  2.      */
  3.     protected function loadChoices(): iterable
  4.     {
  5.         return $this->objectLoader
  6.             $this->objectLoader->getEntities()
  7.             : $this->manager->getRepository($this->class)->findAll();
  8.     }
  9.     /**
  10.      * @internal to be remove in Symfony 6
  1.      *
  2.      * {@inheritdoc}
  3.      */
  4.     public function loadChoiceList(callable $value null): ChoiceListInterface
  5.     {
  6.         return new ArrayChoiceList($this->choices ?? $this->choices $this->loadChoices(), $value);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function getChoices()
  5.     {
  6.         return $this->loader->loadChoiceList($this->value)->getChoices();
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.     {
  2.         $labelTranslationParameters = \func_num_args() > func_get_arg(6) : [];
  3.         $preferredViews = [];
  4.         $preferredViewsOrder = [];
  5.         $otherViews = [];
  6.         $choices $list->getChoices();
  7.         $keys $list->getOriginalKeys();
  8.         if (!\is_callable($preferredChoices)) {
  9.             if (empty($preferredChoices)) {
  10.                 $preferredChoices null;
  1.                 return $accessor->getValue($choice$labelTranslationParameters);
  2.             };
  3.         }
  4.         return $this->decoratedFactory->createView(
  5.             $list,
  6.             $preferredChoices,
  7.             $label,
  8.             $index,
  9.             $groupBy,
  10.             $attr,
  1.         $hash self::generateHash([$list$preferredChoices$label$index$groupBy$attr$labelTranslationParameters]);
  2.         if (!isset($this->views[$hash])) {
  3.             $this->views[$hash] = $this->decoratedFactory->createView(
  4.                 $list,
  5.                 $preferredChoices,
  6.                 $label,
  7.                 $index,
  8.                 $groupBy,
  9.                 $attr,
  1.             $options['preferred_choices'],
  2.             $options['choice_label'],
  3.             $options['choice_name'],
  4.             $options['group_by'],
  5.             $options['choice_attr'],
  6.             $options['choice_translation_parameters']
  7.         );
  8.     }
  9. }
in vendor/symfony/form/Extension/Core/Type/ChoiceType.php -> createChoiceListView (line 253)
  1.         $choiceList $form->getConfig()->getAttribute('choice_list');
  2.         /** @var ChoiceListView $choiceListView */
  3.         $choiceListView $form->getConfig()->hasAttribute('choice_list_view')
  4.             ? $form->getConfig()->getAttribute('choice_list_view')
  5.             : $this->createChoiceListView($choiceList$options);
  6.         $view->vars array_replace($view->vars, [
  7.             'multiple' => $options['multiple'],
  8.             'expanded' => $options['expanded'],
  9.             'preferred_choices' => $choiceListView->preferredChoices,
  1.     {
  2.         if (null !== $this->parent) {
  3.             $this->parent->buildView($view$form$options);
  4.         }
  5.         $this->innerType->buildView($view$form$options);
  6.         foreach ($this->typeExtensions as $extension) {
  7.             $extension->buildView($view$form$options);
  8.         }
  9.     }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function buildView(FormView $viewFormInterface $form, array $options)
  5.     {
  6.         $this->proxiedType->buildView($view$form$options);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.      * {@inheritdoc}
  2.      */
  3.     public function buildView(FormView $viewFormInterface $form, array $options)
  4.     {
  5.         if (null !== $this->parent) {
  6.             $this->parent->buildView($view$form$options);
  7.         }
  8.         $this->innerType->buildView($view$form$options);
  9.         foreach ($this->typeExtensions as $extension) {
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function buildView(FormView $viewFormInterface $form, array $options)
  5.     {
  6.         $this->proxiedType->buildView($view$form$options);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
in vendor/symfony/form/Form.php -> buildView (line 1062)
  1.         // The methods createView(), buildView() and finishView() are called
  2.         // explicitly here in order to be able to override either of them
  3.         // in a custom resolved form type.
  4.         $view $type->createView($this$parent);
  5.         $type->buildView($view$this$options);
  6.         foreach ($this->children as $name => $child) {
  7.             $view->children[$name] = $child->createView($view);
  8.         }
in vendor/symfony/form/Form.php -> createView (line 1065)
  1.         $view $type->createView($this$parent);
  2.         $type->buildView($view$this$options);
  3.         foreach ($this->children as $name => $child) {
  4.             $view->children[$name] = $child->createView($view);
  5.         }
  6.         $this->sort($view->children);
  7.         $type->finishView($view$this$options);
Form->createView() in src/Controller/Frontend/DatasetController.php (line 284)
  1.             return $this->redirectToRoute('dataset');
  2.         }
  3.         return $this->render('/frontend/dataset/form.html.twig', [
  4.             'form' => $form->createView(),
  5.             'header_kategori' => $this->getHeaderKategori(),
  6.         ]);
  7.     }
  8.     /**
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  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) {
  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() in public/index.php (line 20)
  1.     Debug::enable();
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Stack Traces 3

[3/3] ConnectionException
Doctrine\DBAL\Exception\ConnectionException:
An exception occurred in driver: SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused
	Is the server running on that host and accepting TCP/IP connections?

  at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php:88
  at Doctrine\DBAL\Driver\AbstractPostgreSQLDriver->convertException()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:182)
  at Doctrine\DBAL\DBALException::wrapException()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:169)
  at Doctrine\DBAL\DBALException::driverException()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php:52)
  at Doctrine\DBAL\Driver\PDOPgSql\Driver->connect()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:412)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1952)
  at Doctrine\DBAL\Connection->getWrappedConnection()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1290)
  at Doctrine\DBAL\Connection->executeQuery()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:31)
  at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:325)
  at Doctrine\ORM\Query->_doExecute()
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1212)
  at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache()
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1166)
  at Doctrine\ORM\AbstractQuery->execute()
     (vendor/symfony/doctrine-bridge/Form/ChoiceList/ORMQueryBuilderLoader.php:49)
  at Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader->getEntities()
     (vendor/symfony/doctrine-bridge/Form/ChoiceList/DoctrineChoiceLoader.php:58)
  at Symfony\Bridge\Doctrine\Form\ChoiceList\DoctrineChoiceLoader->loadChoices()
     (vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php:36)
  at Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader->loadChoiceList()
     (vendor/symfony/form/ChoiceList/LazyChoiceList.php:61)
  at Symfony\Component\Form\ChoiceList\LazyChoiceList->getChoices()
     (vendor/symfony/form/ChoiceList/Factory/DefaultChoiceListFactory.php:81)
  at Symfony\Component\Form\ChoiceList\Factory\DefaultChoiceListFactory->createView()
     (vendor/symfony/form/ChoiceList/Factory/PropertyAccessDecorator.php:230)
  at Symfony\Component\Form\ChoiceList\Factory\PropertyAccessDecorator->createView()
     (vendor/symfony/form/ChoiceList/Factory/CachingFactoryDecorator.php:235)
  at Symfony\Component\Form\ChoiceList\Factory\CachingFactoryDecorator->createView()
     (vendor/symfony/form/Extension/Core/Type/ChoiceType.php:496)
  at Symfony\Component\Form\Extension\Core\Type\ChoiceType->createChoiceListView()
     (vendor/symfony/form/Extension/Core/Type/ChoiceType.php:253)
  at Symfony\Component\Form\Extension\Core\Type\ChoiceType->buildView()
     (vendor/symfony/form/ResolvedFormType.php:147)
  at Symfony\Component\Form\ResolvedFormType->buildView()
     (vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php:103)
  at Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy->buildView()
     (vendor/symfony/form/ResolvedFormType.php:144)
  at Symfony\Component\Form\ResolvedFormType->buildView()
     (vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php:103)
  at Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy->buildView()
     (vendor/symfony/form/Form.php:1062)
  at Symfony\Component\Form\Form->createView()
     (vendor/symfony/form/Form.php:1065)
  at Symfony\Component\Form\Form->createView()
     (src/Controller/Frontend/DatasetController.php:284)
  at App\Controller\Frontend\DatasetController->form()
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:20)                
[2/3] Exception
Doctrine\DBAL\Driver\PDO\Exception:
SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused
	Is the server running on that host and accepting TCP/IP connections?

  at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDO/Exception.php:18
  at Doctrine\DBAL\Driver\PDO\Exception::new()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:44)
  at Doctrine\DBAL\Driver\PDOConnection->__construct()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php:27)
  at Doctrine\DBAL\Driver\PDOPgSql\Driver->connect()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:412)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1952)
  at Doctrine\DBAL\Connection->getWrappedConnection()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1290)
  at Doctrine\DBAL\Connection->executeQuery()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:31)
  at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:325)
  at Doctrine\ORM\Query->_doExecute()
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1212)
  at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache()
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1166)
  at Doctrine\ORM\AbstractQuery->execute()
     (vendor/symfony/doctrine-bridge/Form/ChoiceList/ORMQueryBuilderLoader.php:49)
  at Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader->getEntities()
     (vendor/symfony/doctrine-bridge/Form/ChoiceList/DoctrineChoiceLoader.php:58)
  at Symfony\Bridge\Doctrine\Form\ChoiceList\DoctrineChoiceLoader->loadChoices()
     (vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php:36)
  at Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader->loadChoiceList()
     (vendor/symfony/form/ChoiceList/LazyChoiceList.php:61)
  at Symfony\Component\Form\ChoiceList\LazyChoiceList->getChoices()
     (vendor/symfony/form/ChoiceList/Factory/DefaultChoiceListFactory.php:81)
  at Symfony\Component\Form\ChoiceList\Factory\DefaultChoiceListFactory->createView()
     (vendor/symfony/form/ChoiceList/Factory/PropertyAccessDecorator.php:230)
  at Symfony\Component\Form\ChoiceList\Factory\PropertyAccessDecorator->createView()
     (vendor/symfony/form/ChoiceList/Factory/CachingFactoryDecorator.php:235)
  at Symfony\Component\Form\ChoiceList\Factory\CachingFactoryDecorator->createView()
     (vendor/symfony/form/Extension/Core/Type/ChoiceType.php:496)
  at Symfony\Component\Form\Extension\Core\Type\ChoiceType->createChoiceListView()
     (vendor/symfony/form/Extension/Core/Type/ChoiceType.php:253)
  at Symfony\Component\Form\Extension\Core\Type\ChoiceType->buildView()
     (vendor/symfony/form/ResolvedFormType.php:147)
  at Symfony\Component\Form\ResolvedFormType->buildView()
     (vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php:103)
  at Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy->buildView()
     (vendor/symfony/form/ResolvedFormType.php:144)
  at Symfony\Component\Form\ResolvedFormType->buildView()
     (vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php:103)
  at Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy->buildView()
     (vendor/symfony/form/Form.php:1062)
  at Symfony\Component\Form\Form->createView()
     (vendor/symfony/form/Form.php:1065)
  at Symfony\Component\Form\Form->createView()
     (src/Controller/Frontend/DatasetController.php:284)
  at App\Controller\Frontend\DatasetController->form()
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:20)                
[1/3] PDOException
PDOException:
SQLSTATE[08006] [7] connection to server at "127.0.0.1", port 5432 failed: Connection refused
	Is the server running on that host and accepting TCP/IP connections?

  at vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40
  at PDO->__construct()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:40)
  at Doctrine\DBAL\Driver\PDOConnection->__construct()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOPgSql/Driver.php:27)
  at Doctrine\DBAL\Driver\PDOPgSql\Driver->connect()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:412)
  at Doctrine\DBAL\Connection->connect()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1952)
  at Doctrine\DBAL\Connection->getWrappedConnection()
     (vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:1290)
  at Doctrine\DBAL\Connection->executeQuery()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query/Exec/SingleSelectExecutor.php:31)
  at Doctrine\ORM\Query\Exec\SingleSelectExecutor->execute()
     (vendor/doctrine/orm/lib/Doctrine/ORM/Query.php:325)
  at Doctrine\ORM\Query->_doExecute()
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1212)
  at Doctrine\ORM\AbstractQuery->executeIgnoreQueryCache()
     (vendor/doctrine/orm/lib/Doctrine/ORM/AbstractQuery.php:1166)
  at Doctrine\ORM\AbstractQuery->execute()
     (vendor/symfony/doctrine-bridge/Form/ChoiceList/ORMQueryBuilderLoader.php:49)
  at Symfony\Bridge\Doctrine\Form\ChoiceList\ORMQueryBuilderLoader->getEntities()
     (vendor/symfony/doctrine-bridge/Form/ChoiceList/DoctrineChoiceLoader.php:58)
  at Symfony\Bridge\Doctrine\Form\ChoiceList\DoctrineChoiceLoader->loadChoices()
     (vendor/symfony/form/ChoiceList/Loader/AbstractChoiceLoader.php:36)
  at Symfony\Component\Form\ChoiceList\Loader\AbstractChoiceLoader->loadChoiceList()
     (vendor/symfony/form/ChoiceList/LazyChoiceList.php:61)
  at Symfony\Component\Form\ChoiceList\LazyChoiceList->getChoices()
     (vendor/symfony/form/ChoiceList/Factory/DefaultChoiceListFactory.php:81)
  at Symfony\Component\Form\ChoiceList\Factory\DefaultChoiceListFactory->createView()
     (vendor/symfony/form/ChoiceList/Factory/PropertyAccessDecorator.php:230)
  at Symfony\Component\Form\ChoiceList\Factory\PropertyAccessDecorator->createView()
     (vendor/symfony/form/ChoiceList/Factory/CachingFactoryDecorator.php:235)
  at Symfony\Component\Form\ChoiceList\Factory\CachingFactoryDecorator->createView()
     (vendor/symfony/form/Extension/Core/Type/ChoiceType.php:496)
  at Symfony\Component\Form\Extension\Core\Type\ChoiceType->createChoiceListView()
     (vendor/symfony/form/Extension/Core/Type/ChoiceType.php:253)
  at Symfony\Component\Form\Extension\Core\Type\ChoiceType->buildView()
     (vendor/symfony/form/ResolvedFormType.php:147)
  at Symfony\Component\Form\ResolvedFormType->buildView()
     (vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php:103)
  at Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy->buildView()
     (vendor/symfony/form/ResolvedFormType.php:144)
  at Symfony\Component\Form\ResolvedFormType->buildView()
     (vendor/symfony/form/Extension/DataCollector/Proxy/ResolvedTypeDataCollectorProxy.php:103)
  at Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy->buildView()
     (vendor/symfony/form/Form.php:1062)
  at Symfony\Component\Form\Form->createView()
     (vendor/symfony/form/Form.php:1065)
  at Symfony\Component\Form\Form->createView()
     (src/Controller/Frontend/DatasetController.php:284)
  at App\Controller\Frontend\DatasetController->form()
     (vendor/symfony/http-kernel/HttpKernel.php:163)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:20)