IllegalArgumentException when updating the version of Hibernate-search from 3.3.0.Final to 5.6.6.Final and newer.

Description

Here is a link to a message describing the problem on the forum discourse.hibernate.org.

Environment

I have:

IntelliJ IDEA 2019.3.1 (Community Edition)
Build #IC-193.5662.53, built on December 18, 2019
Runtime version: 11-ea+121 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.15.0-74-generic
GC: ParNew, ConcurrentMarkSweep
Memory: 1204M
Cores: 6
Registry:

Non-Bundled Plugins: DBN, Lombook Plugin, OdpsStudio, com.jetbrains.ChooseRuntime, marcglasberg.HibernateInspectionsPlugin, org.dnltsk.mapfileplugin, org.jetbrains.kotlin

Hibernate version 5.4.10.Final
Database: MariaDB

Activity

Show:
Yoann Rodière
January 21, 2020, 12:04 PM

This is quite a huge leap. There are many, many problems that could be caused by things you forgot to change in your own code/build. Also, Hibernate Search 5.6 is quite old and not actively maintained.

I'll close this ticket. Please open a question on our discourse forums or on stackoverflow with if you want some help. Make sure to include the version of all your dependencies.

Some advice:

Noname Noferstname
January 22, 2020, 7:27 AM

Did I understand you correctly: are there incompatible versions? But is that normal?

Yoann Rodière
January 22, 2020, 7:45 AM

Yes, there are incompatible versions. Hibernate ORM and Lucene change their APIs from time to time, thus a single version of Hibernate Search cannot be compatible with all versions of ORM and Lucene.

You should look at the version of Hibernate ORM you're using, then pick a compatible version of Hibernate Search, then make sure to use the required version of Lucene.

Noname Noferstname
January 27, 2020, 6:09 AM

@Yoann Rodière, Thanks! I will try.

Rejected

Assignee

Yoann Rodière

Reporter

Noname Noferstname

Labels

Suitable for new contributors

None

Pull Request

None

Feedback Requested

None

Components

Affects versions

Priority

Major
Configure