-
Bug
-
Resolution: Obsolete
-
Major
-
None
-
9.4.5.Final
-
None
-
DataGrid Sprint #31, DataGrid Sprint #32, DataGrid Sprint #33, DataGrid Sprint #34
-
A simple query for a cache which contains User classes will fail for queries with the error below.
UserData class for the cache:
public class Test implements Serializable {
private int testId;
public Test(){}
public Test(int myId)
public int getTestId()
{return animalId;}public void setTestId(int testId)
{ this.testId = testId;}}
Simple EJB for test
@Singleton
@Startup
public class TestInfinispanQuery4EAPConfig {
@Resource(lookup = "java:jboss/datagrid-infinispan/container/jdg-container/cache/EAPcache")
private Cache<String, Object> cache;
@PostConstruct
public void LoadDBToMemory()
}
Caused by: java.lang.IllegalStateException: ISPN028510: Unknown entity name org.infinispan.wfink.web.Test
at org.infinispan.objectfilter.impl.syntax.parser.QueryResolverDelegateImpl.registerPersisterSpace(QueryResolverDelegateImpl.java:60)
at org.infinispan.objectfilter.impl.ql.parse.QueryResolver.entityName(QueryResolver.java:6683)
at org.infinispan.objectfilter.impl.ql.parse.QueryResolver.persisterSpaceRoot(QueryResolver.java:1302)
at org.infinispan.objectfilter.impl.ql.parse.QueryResolver.persisterSpace(QueryResolver.java:1203)
at org.infinispan.objectfilter.impl.ql.parse.QueryResolver.persisterSpaces(QueryResolver.java:1144)
at org.infinispan.objectfilter.impl.ql.parse.QueryResolver.fromClause(QueryResolver.java:1060)
at org.infinispan.objectfilter.impl.ql.parse.QueryResolver.selectFrom(QueryResolver.java:969)
at org.infinispan.objectfilter.impl.ql.parse.QueryResolver.querySpec(QueryResolver.java:487)
at org.infinispan.objectfilter.impl.ql.parse.QueryResolver.queryStatement(QueryResolver.java:388)
at org.infinispan.objectfilter.impl.ql.parse.QueryResolver.queryStatementSet(QueryResolver.java:308)
at org.infinispan.objectfilter.impl.ql.parse.QueryResolver.statement(QueryResolver.java:241)
at org.infinispan.objectfilter.impl.ql.QueryParser.resolve(QueryParser.java:81)
at org.infinispan.objectfilter.impl.ql.QueryParser.parseQuery(QueryParser.java:69)
at org.infinispan.objectfilter.impl.syntax.parser.IckleParser.parse(IckleParser.java:19)
at org.infinispan.query.dsl.embedded.impl.QueryEngine.lambda$parse$1(QueryEngine.java:695)
at org.infinispan.query.dsl.embedded.impl.QueryCache.lambda$get$ab3121d1$1(QueryCache.java:73)
at org.infinispan.compat.FunctionMapper.apply(FunctionMapper.java:40)
at org.infinispan.commands.write.ComputeIfAbsentCommand.perform(ComputeIfAbsentCommand.java:104)
at org.infinispan.interceptors.impl.CallInterceptor.visitCommand(CallInterceptor.java:29)
at org.infinispan.interceptors.BaseAsyncInterceptor.invokeNextThenAccept(BaseAsyncInterceptor.java:100)
at org.infinispan.interceptors.impl.EntryWrappingInterceptor.setSkipRemoteGetsAndInvokeNextForDataCommand(EntryWrappingInterceptor.java:672)
- is cloned by
-
JDG-2459 Query is failing if custom classes are used inside of the cache
- Closed