attempting to get data from indexed table produces -java.lang.NoSuchMethodError: org.hibernate.query.internal.ParameterMetadataImpl

The version of Hibernate Search you’re using is simply too old, and not compatible with the version of Hibernate ORM provided by Spring Boot.

You should check the compatibility matrix on the Hibernate website and pick the Hibernate Search version accordingly.

Spring Boot 2.1.4.RELEASE uses Hibernate ORM 5.3.9.Final. According to the compatibility matrix, with Hibernate ORM 5.3.x, you should use Hibernate Search 5.10.x. As indicated here, the latest release in the 5.10 series is currently 5.10.9.Final.

So, change this:

            <dependency>
                <groupId>org.hibernate</groupId>
                <artifactId>hibernate-search-orm</artifactId>
                <version>5.8.2.Final</version>
            </dependency>

To this:

            <dependency>
                <groupId>org.hibernate</groupId>
                <artifactId>hibernate-search-orm</artifactId>
                <version>5.10.9.Final</version>
            </dependency>

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top