java error while populating elasticsearch index

I have an app made with symfony and I’m using FOS elastica-bundle everything was working well but since I needed to update many of my bundles, I’ve decided to update FOS elastica-bundle as well to the master version (other versions are missing a feature I need)

Anyway, since my old config file wasn’t good anymore ("type" has been removed), I’ve followed the manual and after using the same basic configuration they use, I wanted to give it a try and see if it was working….aaaaand it does not. Of course.

Here’s the error I get:

In Http.php line 183:
                                                                                                                                                         
  class java.util.ArrayList cannot be cast to class java.util.Map (java.util.ArrayList and java.util.Map are in module java.base of loader 'bootstrap')  

here’s my config file:

fos_elastica:
    clients:
        default: { url: '%env(ELASTICSEARCH_URL)%' }
    indexes:
        videos:
            persistence:
                driver: orm
                model: AppEntityVideo
                provider: ~
                finder: ~
            properties:
                title: ~
                duration: ~
#                tags: { boost: 2 }
                createdAt: ~

and my services.yaml:


services:
    # default configuration for services in *this* file
    _defaults:
        autowire: true      # Automatically injects dependencies in your services.
        autoconfigure: true # Automatically registers your services as commands, event subscribers, etc.
        bind:
            $videoFinder: '@fos_elastica.index.videos'

The message comes from a depency (http.php in ruflin/elastica), so I’m wondering if it truly is a depency problem, or if I failed something in my configuration

Thanks

Source: Symfony Questions

Was this helpful?

0 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *