-
Bug
-
Resolution: Done
-
Major
-
None
-
None
-
None
This can be reproduced by running this test:
IRemoteCache<int, User> userCache = remoteManager.GetCache<int, User>(NAMED_CACHE); QueryRequest qr = new QueryRequest(); qr.JpqlString = "from sample_bank_account.User u where u.accountIds = 2 or u.accountIds = 3 order by u.id asc"; QueryResponse result = userCache.Query(qr); List<User> listOfUsers = unwrapResults<User>(result);
The user.id is declared in Proto schema as follows:
/** * @IndexedField(index=true, store=true) */ required int32 id = 1;
Stacktrace:
Infinispan.HotRod.Exceptions.TransportException : timeout (host: 127.0.0.1 port: 11222)
4: at Infinispan.HotRod.SWIGGen.RemoteByteArrayCache.query(VectorByte str, UInt32 size) in C:\workdir\dotnet-client\build_windows\swig\RemoteByteArrayCache.cs:line 310
4: at Infinispan.HotRod.Impl.RemoteCacheSWIGGenImpl`2.Query(QueryRequest qr) in C:\workdir\dotnet-client\src\main\cs\Infinispan\HotRod\Impl\RemoteCacheSWIGImpl.cs:line 236
4: at Infinispan.HotRod.Tests.RemoteQueryTest.ContainsAnyTest() in C:\workdir\dotnet-client\src\test\cs\Infinispan\HotRod\RemoteQueryTest.cs:line 349
The server log shows the following:
10:13:51,372 WARN [org.hibernate.search.reader.impl.ManagedMultiReader] (HotRodServerHandler-4-33) HSEARCH000289: Requested sort field(s) id are not configured for entity type org.infinispan.query.remote.impl.indexing.ProtobufValueWrapper mapped to index org.infinispan.query.remote.impl.indexing.ProtobufValueWrapper, thus an uninverting reader must be created. You should declare the missing sort fields using @SortableField. 4: 10:13:51,375 ERROR [stderr] (HotRodServerHandler-4-33) Exception in thread "HotRodServerHandler-4-33" java.lang.NoClassDefFoundError: org/apache/lucene/uninverting/UninvertingReader$Type 4: 10:13:51,376 ERROR [stderr] (HotRodServerHandler-4-33) at org.hibernate.search.reader.impl.ManagedMultiReader.getMappings(ManagedMultiReader.java:178) 4: 10:13:51,378 ERROR [stderr] (HotRodServerHandler-4-33) at org.hibernate.search.reader.impl.ManagedMultiReader.getEffectiveReaders(ManagedMultiReader.java:93) 4: 10:13:51,378 ERROR [stderr] (HotRodServerHandler-4-33) at org.hibernate.search.reader.impl.ManagedMultiReader.createInstance(ManagedMultiReader.java:73) 4: 10:13:51,379 ERROR [stderr] (HotRodServerHandler-4-33) at org.hibernate.search.reader.impl.MultiReaderFactory.openReader(MultiReaderFactory.java:42) 4: 10:13:51,380 ERROR [stderr] (HotRodServerHandler-4-33) at org.hibernate.search.query.engine.impl.LuceneHSQuery.buildSearcher(LuceneHSQuery.java:472) 4: 10:13:51,382 ERROR [stderr] (HotRodServerHandler-4-33) at org.hibernate.search.query.engine.impl.LuceneHSQuery.buildSearcher(LuceneHSQuery.java:363) 4: 10:13:51,394 ERROR [stderr] (HotRodServerHandler-4-33) at org.hibernate.search.query.engine.impl.LuceneHSQuery.queryEntityInfos(LuceneHSQuery.java:126) 4: 10:13:51,394 ERROR [stderr] (HotRodServerHandler-4-33) at org.infinispan.query.impl.CacheQueryImpl.list(CacheQueryImpl.java:161) 4: 10:13:51,395 ERROR [stderr] (HotRodServerHandler-4-33) at org.infinispan.query.dsl.embedded.impl.EmbeddedLuceneQuery.listInternal(EmbeddedLuceneQuery.java:75) 4: 10:13:51,395 ERROR [stderr] (HotRodServerHandler-4-33) at org.infinispan.query.dsl.embedded.impl.EmbeddedLuceneQuery.list(EmbeddedLuceneQuery.java:69) 4: 10:13:51,395 ERROR [stderr] (HotRodServerHandler-4-33) at org.infinispan.query.remote.impl.QueryFacadeImpl.makeResponse(QueryFacadeImpl.java:84) 4: 10:13:51,395 ERROR [stderr] (HotRodServerHandler-4-33) at org.infinispan.query.remote.impl.QueryFacadeImpl.query(QueryFacadeImpl.java:64) 4: 10:13:51,397 ERROR [stderr] (HotRodServerHandler-4-33) at org.infinispan.server.hotrod.HotRodServer.query(HotRodServer.scala:78) 4: 10:13:51,397 ERROR [stderr] (HotRodServerHandler-4-33) at org.infinispan.server.hotrod.ContextHandler.realRead(ContextHandler.java:146) 4: 10:13:51,397 ERROR [stderr] (HotRodServerHandler-4-33) at org.infinispan.server.hotrod.ContextHandler.lambda$channelRead0$1(ContextHandler.java:56) 4: 10:13:51,397 ERROR [stderr] (HotRodServerHandler-4-33) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 4: 10:13:51,397 ERROR [stderr] (HotRodServerHandler-4-33) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 4: 10:13:51,397 ERROR [stderr] (HotRodServerHandler-4-33) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:145) 4: 10:13:51,397 ERROR [stderr] (HotRodServerHandler-4-33) at java.lang.Thread.run(Thread.java:745) 4: 10:13:51,398 ERROR [stderr] (HotRodServerHandler-4-33) Caused by: java.lang.ClassNotFoundException: org.apache.lucene.uninverting.UninvertingReader$Type from [Module "org.hibernate.search.engine:main" from local module loader @33e5ccce (finder: local module finder @5a42bbf4 (roots: c:\workdir\infinispan-server-9.0.0.Alpha2\modules,c:\workdir\infinispan-server-9.0.0.Alpha2\modules\system\layers\base))] 4: 10:13:51,398 ERROR [stderr] (HotRodServerHandler-4-33) at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198) 4: 10:13:51,398 ERROR [stderr] (HotRodServerHandler-4-33) at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:363) 4: 10:13:51,398 ERROR [stderr] (HotRodServerHandler-4-33) at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:351) 4: 10:13:51,398 ERROR [stderr] (HotRodServerHandler-4-33) at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:93) 4: 10:13:51,398 ERROR [stderr] (HotRodServerHandler-4-33) ... 19 more