keystore-management icon indicating copy to clipboard operation
keystore-management copied to clipboard

bug on [email protected] with CQEngine

Open max402 opened this issue 5 years ago • 3 comments

Caused by: java.lang.IllegalStateException: Could not resolve sufficient generic type information from the given function of type: de.adorsys.keymanagement.core.view.EntryViewImpl$$Lambda$1355/000000002649A4F0, resolved: [class net.jodah.typetools.TypeResolver$Unknown, class net.jodah.typetools.TypeResolver$Unknown]. If the function you supplied was created from a lambda expression, then it's likely that the host JVM does not allow the generic type information to be read from lambda expressions. Alternatively, if you supplied a class-based implementation of the function, then you must ensure that you specified the generic types of the function when it was compiled. As a workaround, you can use the counterpart methods in QueryFactory which allow the generic types to be specified explicitly. at com.googlecode.cqengine.query.QueryFactory.validateSimpleFunctionGenericTypes(QueryFactory.java:1084) at com.googlecode.cqengine.query.QueryFactory.resolveSimpleFunctionGenericTypes(QueryFactory.java:1070) at com.googlecode.cqengine.query.QueryFactory.attribute(QueryFactory.java:848) at de.adorsys.keymanagement.core.view.EntryViewImpl.<clinit>(EntryViewImpl.java:35)

https://github.com/npgall/cqengine/blob/master/documentation/LambdaAttributes.md

max402 avatar Apr 22 '20 09:04 max402

I am facing a similar issue any idea on it ?

cemkayan avatar Aug 15 '21 11:08 cemkayan

Generic attributes should be explicitly specified, so this would require making a new release of the library. The easiest workaround is to change JRE to i.e. https://adoptopenjdk.net/releases.html

valb3r avatar Aug 16 '21 05:08 valb3r

thanks for your message and suggestion... switched to below one, but still having the same issue openjdk version "11.0.12" 2021-07-20 OpenJDK Runtime Environment Temurin-11.0.12+7 (build 11.0.12+7)

cemkayan avatar Aug 16 '21 06:08 cemkayan

Use of CQEngine was refactored in the transition to JDK17. The issue is no more relevant

max402 avatar Jun 10 '24 12:06 max402