Skip to content

event_machine_projection keeps failing: call to a member function run() on null #18

@pmartelletti

Description

@pmartelletti

@codeliner was trying to create prototype suggested here: proophsoftware/es-emergency-call#8

But I'm having issues running the docker image; on particular, the event_machine_projection service keeps failing to start. The logs show the following:

event_machine_projection_1  | Fatal error: Uncaught Error: Call to a member function run() on null in /app/vendor/proophsoftware/event-machine/src/Projecting/ProjectionRunner.php:93
event_machine_projection_1  | Stack trace:
event_machine_projection_1  | #0 /app/vendor/proophsoftware/event-machine/src/EventMachine.php(617): Prooph\EventMachine\Projecting\ProjectionRunner->run(false, NULL)
event_machine_projection_1  | #1 /app/bin/event_machine_projection.php(21): Prooph\EventMachine\EventMachine->runProjections(false)
event_machine_projection_1  | #2 {main}
event_machine_projection_1  |   thrown in /app/vendor/proophsoftware/event-machine/src/Projecting/ProjectionRunner.php on line 93

I've checked the code, and seems like EventMachine.php is trying to create a projection runner, but the projection manager in the service container is null.

$this->container->get(self::SERVICE_ID_PROJECTION_MANAGER)

Any ideas why this could be happening? Have you heard this issue before?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions