vendredi 12 novembre 2021

java.lang.reflect.GenericSignatureFormatError for CompletableFuture after Java update to 17 version

I have updated the Java version of our company application from 8 to 17. On local machine it works fine, both in building and on run-time calls. Also on GitHub it is deployed fine, along with the Junit test execution.

The problem is after I deploy the application on Heroku. The Heroku build is on success, but on runtime, when I call the methods, I receive this error:

"message": "Handler dispatch failed; nested exception is java.lang.reflect.GenericSignatureFormatError: Signature Parse error: expected a class type\n\tRemaining input: java/util/concurrent/CompletableFuture",

It's something related to java reflection methods and the method's signature. My controller rest method return a CompletableFuture Object. Something is not good with the CompletableFuture.........





Aucun commentaire:

Enregistrer un commentaire