I'm also seeing similar NPE when issuing query that the Query object resolves to: DelegatingQuery{jpaQuery=FROM com.client.quickstart.pojo.Stock _gen0, namedParameters=null, projection=null, startOffset=0, maxResults=100} 11:08:17,131 ERROR [org.teiid.PROCESSOR] (Worker4_QueryProcessorQueue8) TEIID30019 Unexpected exception for request fqVh1J7q9E0s.1: java.lang.NullPointerException at org.infinispan.query.dsl.embedded.impl.QueryEngine.parse(QueryEngine.java:623) at org.infinispan.query.dsl.embedded.impl.QueryEngine.buildQuery(QueryEngine.java:93)
If it helps, I confirmed this is only a library mode issue. Did not see this when using the hot rod client to access remote cache.
Hi, this is a very basic use case and there are tests, e.g. here: https://github.com/infinispan/infinispan/blob/master/query/src/test/java/org/infinispan/query/dsl/embedded/QueryDslConditionsTest.java#L209 Can you please provide trace logs, and possibly a reproducer? I'm not able to reproduce this. Thanks
Thru debug, I'm seeing that in QueryEngine, the call to method: protected BaseMatcher getFirstPhaseMatcher() { return SecurityActions.getCacheComponentRegistry(cache).getComponent(ReflectionMatcher.class); } is returning null; Attached is the server.log with TRACE logging.
Hi Van, since ReflectionMatcher was not found in Infinispan's component registry I suspect infinispan-query.jar module was not loaded. Is it in the classpath? This module is needed even if you plan to do indexless query. If it is in CP and your cache is indexed it should log "INFO Registering Query interceptor" right after registering ReflectionMatcher, but I cannot see this in the log. So is the cache indexed? Adrian