meilisearch / meilisearch-java

Java client for Meilisearch

Home Page:https://meilisearch.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JDK high versions of various problems

HK-hub opened this issue · comments

Description
The higher version of the JDK is full of various serialization, modularization issues, and there are problems with JSON serialization enumeration, in the matchingStrategy field of the SearchRequest entity class
I am using JDK 17

Expected behavior
What you expected to happen.

Current behavior
What happened.

Screenshots or Logs
If applicable, add screenshots or logs to help explain your problem.
image

Environment (please complete the following information):

  • OS: Windows 10
  • Java:version: 17 LTS
  • Meilisearch version: latest
  • Meiliserach execute type: docker images
  • meilisearch-java version: 0.11.0

Hi @HK-hub,
Thank you for raising this issue. There are a lot of issues with the usage of JDK 17. I have to check that properly as soon as I can. Currently, this package is only compatible with JDK 11

Moreover, under JDK version 17, the SDK package for meili Search is almost unusable, it can't serialize the request correctly, and it can't serialize the response (because there is a reflection access permission error), and the request construction can't be done correctly, which basically means it can't be used, so I can only package it myself under JDK version 17, according to the official documentation

Hi @HK-hub, I'm investigating your issue and also this one #580.

I would like to know exactly what is happening in the code. If you can send me some error messages would be appreciated!

Also, I built this very simple java app, where I try to use to reproduce java errors: https://github.com/brunoocasali/meili-java

As you can see there, I'm using the latest meilisearch java and meilisearch itself with docker. And I'm using Azul JDK 17.

Hi @HK-hub,
The last release should have solved this issue. Can you update us if you still have this problem? Thanks

With no response for several weeks, we consider this problem resolved.