| Summary: | NPE parsing query | ||
|---|---|---|---|
| Product: | [JBoss] JBoss Data Grid 6 | Reporter: | Van Halbert <vhalbert> |
| Component: | Infinispan, Library | Assignee: | Adrian Nistor <anistor> |
| Status: | CLOSED NOTABUG | QA Contact: | Martin Gencur <mgencur> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.6.0 | CC: | anistor, jdg-bugs, rmarwaha, vhalbert |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-02-18 15:47:08 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 1308655 | ||
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. 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 |
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)