[infinispan-issues] [JBoss JIRA] Commented: (ISPN-702) RankCalculatorListener registered to late

Galder Zamarreño (JIRA) jira-events at lists.jboss.org
Mon Oct 18 02:59:54 EDT 2010


    [ https://jira.jboss.org/browse/ISPN-702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12557533#action_12557533 ] 

Galder Zamarreño commented on ISPN-702:
---------------------------------------

Jacek, how are you starting Hot Rod? From the command line or script, or programmatically from some Java code?

Out of curiosity as well, which cache are you interacting against? The default cache? Or a named cache?

This sounds like a side effect of ISPN-669

> RankCalculatorListener registered to late
> -----------------------------------------
>
>                 Key: ISPN-702
>                 URL: https://jira.jboss.org/browse/ISPN-702
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Cache Server
>    Affects Versions: 4.2.0.ALPHA3
>            Reporter: Jacek Gerbszt
>            Assignee: Galder Zamarreño
>            Priority: Critical
>
> Any call to HotRod Server v. 4.2.0.ALPHA3 ends with the exception:
> 2010-10-14 17:39:36,953 ERROR [org.infinispan.server.core.AbstractProtocolDecoder$] (HotRodServerWorker-1-22) Exception reported
> org.infinispan.server.core.ServerException: java.lang.IllegalStateException: If clustered, Version prefix cannot be 0. Rank calculator probably not in use.
>         at org.infinispan.server.core.AbstractProtocolDecoder.decode(AbstractProtocolDecoder.scala:53)
>         at org.infinispan.server.core.transport.netty.DecoderAdapter.decode(DecoderAdapter.scala:18)
>         at org.infinispan.server.core.transport.netty.DecoderAdapter.decode(DecoderAdapter.scala:14)
>         at org.jboss.netty.handler.codec.replay.ReplayingDecoder.callDecode(ReplayingDecoder.java:471)
>         at org.jboss.netty.handler.codec.replay.ReplayingDecoder.messageReceived(ReplayingDecoder.java:444)
>         at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:274)
>         at org.jboss.netty.channel.Channels.fireMessageReceived(Channels.java:261)
>         at org.jboss.netty.channel.socket.nio.NioWorker.read(NioWorker.java:350)
>         at org.jboss.netty.channel.socket.nio.NioWorker.processSelectedKeys(NioWorker.java:281)
>         at org.jboss.netty.channel.socket.nio.NioWorker.run(NioWorker.java:201)
>         at org.jboss.netty.util.internal.IoWorkerRunnable.run(IoWorkerRunnable.java:46)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> The reason is that RankCalculatorListener is registered to late - in org.infinispan.server.core.start() method, which is called at the end of overriding org.infinispan.server.hotrod.HotRodServer.start(), which in turn starts all the defined caches.
> Maybe there is a need for adding a new lifecycle method to ProtocolServer - create(). Like in JMX services.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the infinispan-issues mailing list