This topic contains 3 replies, has 2 voices, and was last updated by jderdziak 6 years, 5 months ago.
- Topic
Hi,
After creating a new calendar event, consume dumps this error. I have created two custom entities, CampusCRM\EventNameBundle\Entity\EventName, and CampusCRM\EventNameBundle\Entity\EventTopics. Both have one-to-many relationships with CalendarEvent. I am guessing there is a problem serializing CalendarEvent, since I have added these two related Entites. Is my guess correct? How do I fix it?
123456789101112131415161718192021222324252627282930313233ERROR: Consuming interrupted by exception. "Notice: Array to string conversion" {"processor":"Oro\Bundle\DataAuditBundle\Async\AuditChangedEntitiesProcessor","topic":"oro.data_audit.entities_changed","message":{"entities_inserted":[{"entity_class":"Oro\Bundle\CalendarBundle\Entity\CalendarEvent","entity_id":35,"change_set":{"use_hangout":[null,false],"teaching_week":[null,10],"semester":[null,"2017B"],"title":[null,{"entity_class":"CampusCRM\EventNameBundle\Entity\EventName","entity_id":4,"change_set":[]}],"start":[null,"2017-10-10T11:09:38+0000"],"end":[null,"2017-10-10T12:09:38+0000"],"allDay":[null,false],"cancelled":[null,false],"createdAt":[null,"2017-10-10T11:10:47+0000"],"updatedAt":[null,"2017-10-10T11:10:47+0000"],"calendar":[null,{"entity_class":"Oro\Bundle\CalendarBundle\Entity\Calendar","entity_id":1,"change_set":[]}],"oro_eventname":[null,{"entity_class":"CampusCRM\EventNameBundle\Entity\EventName","entity_id":4,"change_set":[]}]}}],"entities_updated":[],"entities_deleted":[],"collections_updated":[],"timestamp":1507633847,"transaction_id":"2587f4fc-ce3e-473f-8174-1f2068684928","user_id":1,"user_class":"Oro\Bundle\UserBundle\Entity\User","organization_id":1}} {"exception":"[object] (Symfony\Component\Debug\Exception\ContextErrorException(code: 0): Notice: Array to string conversion at /Users/jake/Code/orocrm-dev/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:67)"}[Symfony\Component\Debug\Exception\ContextErrorException]Notice: Array to string conversionException trace:() at /Users/jake/Code/orocrm-dev/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:67Symfony\Component\Debug\ErrorHandler->handleError() at n/a:n/aPDOStatement->bindValue() at /Users/jake/Code/orocrm-dev/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:67Doctrine\DBAL\Driver\PDOStatement->bindValue() at /Users/jake/Code/orocrm-dev/www/vendor/doctrine/dbal/lib/Doctrine/DBAL/Statement.php:120Doctrine\DBAL\Statement->bindValue() at /Users/jake/Code/orocrm-dev/www/vendor/doctrine/orm/lib/Doctrine/ORM/Persisters/Entity/BasicEntityPersister.php:277Doctrine\ORM\Persisters\Entity\BasicEntityPersister->executeInserts() at /Users/jake/Code/orocrm-dev/www/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:1018Doctrine\ORM\UnitOfWork->executeInserts() at /Users/jake/Code/orocrm-dev/www/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php:378Doctrine\ORM\UnitOfWork->commit() at /Users/jake/Code/orocrm-dev/www/vendor/doctrine/orm/lib/Doctrine/ORM/EntityManager.php:356Doctrine\ORM\EntityManager->flush() at /Users/jake/Code/orocrm-dev/www/vendor/oro/platform/src/Oro/Bundle/EntityBundle/ORM/OroEntityManager.php:207Oro\Bundle\EntityBundle\ORM\OroEntityManager->flush() at /Users/jake/Code/orocrm-dev/www/vendor/oro/platform/src/Oro/Bundle/DataAuditBundle/Service/EntityChangesToAuditEntryConverter.php:146Oro\Bundle\DataAuditBundle\Service\EntityChangesToAuditEntryConverter->convert() at /Users/jake/Code/orocrm-dev/www/vendor/oro/platform/src/Oro/Bundle/DataAuditBundle/Async/AuditChangedEntitiesProcessor.php:59Oro\Bundle\DataAuditBundle\Async\AuditChangedEntitiesProcessor->process() at /Users/jake/Code/orocrm-dev/www/vendor/oro/platform/src/Oro/Component/MessageQueue/Client/DelegateMessageProcessor.php:36Oro\Component\MessageQueue\Client\DelegateMessageProcessor->process() at /Users/jake/Code/orocrm-dev/www/vendor/oro/platform/src/Oro/Component/MessageQueue/Consumption/QueueConsumer.php:172Oro\Component\MessageQueue\Consumption\QueueConsumer->doConsume() at /Users/jake/Code/orocrm-dev/www/vendor/oro/platform/src/Oro/Component/MessageQueue/Consumption/QueueConsumer.php:114Oro\Component\MessageQueue\Consumption\QueueConsumer->consume() at /Users/jake/Code/orocrm-dev/www/vendor/oro/platform/src/Oro/Component/MessageQueue/Client/ConsumeMessagesCommand.php:75Oro\Component\MessageQueue\Client\ConsumeMessagesCommand->consume() at /Users/jake/Code/orocrm-dev/www/vendor/oro/platform/src/Oro/Bundle/MessageQueueBundle/Command/ClientConsumeMessagesCommand.php:26Oro\Bundle\MessageQueueBundle\Command\ClientConsumeMessagesCommand->consume() at /Users/jake/Code/orocrm-dev/www/vendor/oro/platform/src/Oro/Component/MessageQueue/Client/ConsumeMessagesCommand.php:65Oro\Component\MessageQueue\Client\ConsumeMessagesCommand->execute() at /Users/jake/Code/orocrm-dev/www/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:259Symfony\Component\Console\Command\Command->run() at /Users/jake/Code/orocrm-dev/www/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:866Symfony\Component\Console\Application->doRunCommand() at /Users/jake/Code/orocrm-dev/www/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:193Symfony\Component\Console\Application->doRun() at /Users/jake/Code/orocrm-dev/www/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:92Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /Users/jake/Code/orocrm-dev/www/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:124Symfony\Component\Console\Application->run() at /Users/jake/Code/orocrm-dev/www/app/console:22oro:message-queue:consume [--message-limit MESSAGE-LIMIT] [--time-limit TIME-LIMIT] [--memory-limit MEMORY-LIMIT] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [-s|--shell] [--process-isolation] [-e|--env ENV] [--no-debug] [--current-user CURRENT-USER] [--current-organization CURRENT-ORGANIZATION] [--disabled-listeners DISABLED-LISTENERS] [--] <command> [<clientDestinationName>]oro_message_queue table look like this
12#body column{"entities_inserted":[{"entity_class":"Oro\\Bundle\\CalendarBundle\\Entity\\CalendarEvent","entity_id":35,"change_set":{"use_hangout":[null,false],"teaching_week":[null,10],"semester":[null,"2017B"],"title":[null,{"entity_class":"CampusCRM\\EventNameBundle\\Entity\\EventName","entity_id":4,"change_set":[]}],"start":[null,"2017-10-10T11:09:38+0000"],"end":[null,"2017-10-10T12:09:38+0000"],"allDay":[null,false],"cancelled":[null,false],"createdAt":[null,"2017-10-10T11:10:47+0000"],"updatedAt":[null,"2017-10-10T11:10:47+0000"],"calendar":[null,{"entity_class":"Oro\\Bundle\\CalendarBundle\\Entity\\Calendar","entity_id":1,"change_set":[]}],"oro_eventname":[null,{"entity_class":"CampusCRM\\EventNameBundle\\Entity\\EventName","entity_id":4,"change_set":[]}]}}],"entities_updated":[],"entities_deleted":[],"collections_updated":[],"timestamp":1507633847,"transaction_id":"2587f4fc-ce3e-473f-8174-1f2068684928","user_id":1,"user_class":"Oro\\Bundle\\UserBundle\\Entity\\User","organization_id":1}12#properties column{"oro.message_queue.client.topic_name":"oro.data_audit.entities_changed","oro.message_queue.client.processor_name":"oro_dataaudit.async.audit_changed_entities","oro.message_queue.client.queue_name":"oro.default","oro-redeliver-count":3}
The forum ‘OroCRM’ is closed to new topics and replies.