Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-4485

Remote non-indexed query fails if compat mode enabled

    Details

      Description

      NonIndexedEmbeddedCompatTest.testRemoteQuery fails:

      2014-07-07 12:33:40,333 ERROR [HotRodDecoder] (HotRodServerWorker-12-1) ISPN005003: Exception reported
      java.lang.IllegalStateException: Unknown entity name sample_bank_account.Account
      at org.infinispan.objectfilter.impl.hql.FilterQueryResolverDelegate.registerPersisterSpace(FilterQueryResolverDelegate.java:47)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.entityName(GeneratedHQLResolver.java:12729)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.persisterSpaceRoot(GeneratedHQLResolver.java:3064)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.persisterSpace(GeneratedHQLResolver.java:2956)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.persisterSpaces(GeneratedHQLResolver.java:2893)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.fromClause(GeneratedHQLResolver.java:2803)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.selectFrom(GeneratedHQLResolver.java:2704)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.querySpec(GeneratedHQLResolver.java:2182)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.queryExpression(GeneratedHQLResolver.java:2106)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.queryStatement(GeneratedHQLResolver.java:1745)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.queryStatementSet(GeneratedHQLResolver.java:1658)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.statement(GeneratedHQLResolver.java:654)
      at org.hibernate.hql.ast.spi.QueryResolverProcessor.process(QueryResolverProcessor.java:52)
      at org.hibernate.hql.QueryParser.parseQuery(QueryParser.java:82)
      at org.infinispan.objectfilter.impl.BaseMatcher.parse(BaseMatcher.java:200)
      at org.infinispan.objectfilter.impl.BaseMatcher.getObjectFilter(BaseMatcher.java:91)
      at org.infinispan.objectfilter.impl.ReflectionMatcher.getObjectFilter(ReflectionMatcher.java:19)
      at org.infinispan.query.dsl.embedded.impl.FilterAndConverter.getObjectFilter(FilterAndConverter.java:68)
      at org.infinispan.query.dsl.embedded.impl.EmbeddedQuery.<init>(EmbeddedQuery.java:51)
      at org.infinispan.query.remote.QueryFacadeImpl.executeNonIndexedQuery(QueryFacadeImpl.java:83)
      at org.infinispan.query.remote.QueryFacadeImpl.query(QueryFacadeImpl.java:70)
      at org.infinispan.server.hotrod.Decoder2x$.customReadKey(Decoder2x.scala:297)
      at org.infinispan.server.hotrod.HotRodDecoder.customDecodeKey(HotRodDecoder.scala:155)
      at org.infinispan.server.core.AbstractProtocolDecoder.org$infinispan$server$core$AbstractProtocolDecoder$$decodeKey(AbstractProtocolDecoder.scala:170)
      at org.infinispan.server.core.AbstractProtocolDecoder.decodeDispatch(AbstractProtocolDecoder.scala:71)
      at org.infinispan.server.core.AbstractProtocolDecoder.decode(AbstractProtocolDecoder.scala:61)
      at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:362)
      at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:149)
      at org.infinispan.server.core.AbstractProtocolDecoder.channelRead(AbstractProtocolDecoder.scala:471)
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:332)
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:318)
      at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)
      at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:125)
      at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:507)
      at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:464)
      at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:378)
      at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:350)
      at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
      at java.lang.Thread.run(Thread.java:745)
      2014-07-07 12:33:40,335 ERROR [HotRodDecoder] (HotRodServerWorker-12-1) ISPN005009: Unexpected error before any request parameters read
      io.netty.handler.codec.DecoderException: org.infinispan.server.hotrod.HotRodException: java.lang.IllegalStateException: Unknown entity name sample_bank_account.Account
      at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:417)
      at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:149)
      at org.infinispan.server.core.AbstractProtocolDecoder.channelRead(AbstractProtocolDecoder.scala:471)
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:332)
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:318)
      at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)
      at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:125)
      at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:507)
      at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:464)
      at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:378)
      at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:350)
      at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: org.infinispan.server.hotrod.HotRodException: java.lang.IllegalStateException: Unknown entity name sample_bank_account.Account
      at org.infinispan.server.hotrod.HotRodDecoder.createServerException(HotRodDecoder.scala:204)
      at org.infinispan.server.core.AbstractProtocolDecoder.decodeDispatch(AbstractProtocolDecoder.scala:77)
      at org.infinispan.server.core.AbstractProtocolDecoder.decode(AbstractProtocolDecoder.scala:61)
      at io.netty.handler.codec.ReplayingDecoder.callDecode(ReplayingDecoder.java:362)
      ... 12 more
      Caused by: java.lang.IllegalStateException: Unknown entity name sample_bank_account.Account
      at org.infinispan.objectfilter.impl.hql.FilterQueryResolverDelegate.registerPersisterSpace(FilterQueryResolverDelegate.java:47)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.entityName(GeneratedHQLResolver.java:12729)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.persisterSpaceRoot(GeneratedHQLResolver.java:3064)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.persisterSpace(GeneratedHQLResolver.java:2956)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.persisterSpaces(GeneratedHQLResolver.java:2893)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.fromClause(GeneratedHQLResolver.java:2803)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.selectFrom(GeneratedHQLResolver.java:2704)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.querySpec(GeneratedHQLResolver.java:2182)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.queryExpression(GeneratedHQLResolver.java:2106)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.queryStatement(GeneratedHQLResolver.java:1745)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.queryStatementSet(GeneratedHQLResolver.java:1658)
      at org.hibernate.hql.ast.origin.hql.resolve.GeneratedHQLResolver.statement(GeneratedHQLResolver.java:654)
      at org.hibernate.hql.ast.spi.QueryResolverProcessor.process(QueryResolverProcessor.java:52)
      at org.hibernate.hql.QueryParser.parseQuery(QueryParser.java:82)
      at org.infinispan.objectfilter.impl.BaseMatcher.parse(BaseMatcher.java:200)
      at org.infinispan.objectfilter.impl.BaseMatcher.getObjectFilter(BaseMatcher.java:91)
      at org.infinispan.objectfilter.impl.ReflectionMatcher.getObjectFilter(ReflectionMatcher.java:19)
      at org.infinispan.query.dsl.embedded.impl.FilterAndConverter.getObjectFilter(FilterAndConverter.java:68)
      at org.infinispan.query.dsl.embedded.impl.EmbeddedQuery.<init>(EmbeddedQuery.java:51)
      at org.infinispan.query.remote.QueryFacadeImpl.executeNonIndexedQuery(QueryFacadeImpl.java:83)
      at org.infinispan.query.remote.QueryFacadeImpl.query(QueryFacadeImpl.java:70)
      at org.infinispan.server.hotrod.Decoder2x$.customReadKey(Decoder2x.scala:297)
      at org.infinispan.server.hotrod.HotRodDecoder.customDecodeKey(HotRodDecoder.scala:155)
      at org.infinispan.server.core.AbstractProtocolDecoder.org$infinispan$server$core$AbstractProtocolDecoder$$decodeKey(AbstractProtocolDecoder.scala:170)
      at org.infinispan.server.core.AbstractProtocolDecoder.decodeDispatch(AbstractProtocolDecoder.scala:71)
      ... 14 more
      2014-07-07 12:33:40,338 WARN [Codec20] (main) ISPN004005: Error received from the server: io.netty.handler.codec.DecoderException: org.infinispan.server.hotrod.HotRodException: java.lang.IllegalStateException: Unknown entity name sample_bank_account.Account
      org.infinispan.client.hotrod.exceptions.HotRodClientException:Request for message id[18] returned server error (status=0x85): io.netty.handler.codec.DecoderException: org.infinispan.server.hotrod.HotRodException: java.lang.IllegalStateException: Unknown entity name sample_bank_account.Account
      at org.infinispan.client.hotrod.impl.protocol.Codec20.checkForErrorsInResponseStatus(Codec20.java:285)
      at org.infinispan.client.hotrod.impl.protocol.Codec20.readPartialHeader(Codec20.java:85)
      at org.infinispan.client.hotrod.impl.protocol.Codec20.readHeader(Codec20.java:71)
      at org.infinispan.client.hotrod.impl.operations.HotRodOperation.readHeaderAndValidate(HotRodOperation.java:56)
      at org.infinispan.client.hotrod.impl.operations.QueryOperation.executeOperation(QueryOperation.java:57)
      at org.infinispan.client.hotrod.impl.operations.QueryOperation.executeOperation(QueryOperation.java:24)
      at org.infinispan.client.hotrod.impl.operations.RetryOnFailureOperation.execute(RetryOnFailureOperation.java:49)
      at org.infinispan.client.hotrod.impl.query.RemoteQuery.executeQuery(RemoteQuery.java:72)
      at org.infinispan.client.hotrod.impl.query.RemoteQuery.list(RemoteQuery.java:62)
      at org.infinispan.client.hotrod.marshall.EmbeddedCompatTest.testRemoteQuery(EmbeddedCompatTest.java:137)
      at org.infinispan.client.hotrod.marshall.NonIndexedEmbeddedCompatTest.testRemoteQuery(NonIndexedEmbeddedCompatTest.java:34)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                anistor Nistor Adrian
                Reporter:
                anistor Nistor Adrian
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: