[jboss-jira] [JBoss JIRA] (AS7-5699) Exception in thread "KeyAffinityService Thread Pool -- 1" java.lang.ArrayIndexOutOfBoundsException: 1

Scott Marlow (JIRA) jira-events at lists.jboss.org
Tue Oct 9 08:26:03 EDT 2012


    [ https://issues.jboss.org/browse/AS7-5699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12724964#comment-12724964 ] 

Scott Marlow commented on AS7-5699:
-----------------------------------

ISPN-2000 added the while loop to KeyAffinityServiceImpl.getKeyForAddress().  After we figure out why we are looping endlessly for queue [], address node-0/web, we can look into why we are looping and what needs to change.  ISPN-2000 mentions:
{quote}
This was still hanging in tests for me, I found it was happening as the threads were ignoring the interruption request from the Executor service managing them.
{quote}
                
> Exception in thread "KeyAffinityService Thread Pool -- 1" java.lang.ArrayIndexOutOfBoundsException: 1
> -----------------------------------------------------------------------------------------------------
>
>                 Key: AS7-5699
>                 URL: https://issues.jboss.org/browse/AS7-5699
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: Clustering
>         Environment: affects: snapshot
>            Reporter: Radoslav Husar
>            Assignee: Paul Ferraro
>             Fix For: 7.2.0.Alpha1
>
>         Attachments: 71_surebootclient_threaddump.txt, 71_tcp_node0_threaddump.txt, 71_tcp_node0_threaddump.txt, 71_tcp_node1_threaddump.txt, five_dumps_jbossas-clustering-SYNC-tcp-0_threaddump.txt, jbossas-clustering-SYNC-tcp-0_threaddump.txt, jbossas-clustering-SYNC-tcp-1_threaddump.txt, launch_threaddump.txt, surefirebooter_threaddump.txt
>
>
> After ISPN upgrade.
> {noformat}
> 23:20:16,415 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015876: Starting deployment of "distributable.war"
> 23:20:16,424 INFO  [org.jboss.as.server.deployment.scanner] (MSC service thread 1-4) JBAS015012: Started FileSystemDeploymentService for directory /home/smarlow/work/as7/testsuite/integration/clust/target/jbossas-clustering-SYNC-tcp-0/standalone/deployments
> 23:20:16,767 WARN  [org.jgroups.stack.Configurator] (ServerService Thread Pool -- 63) [JGRP00013] TP.discard_incompatible_packets has been deprecated: incompatible packets are discarded anyway
> 23:20:16,957 INFO  [stdout] (ServerService Thread Pool -- 63) 
> 23:20:16,957 INFO  [stdout] (ServerService Thread Pool -- 63) -------------------------------------------------------------------
> 23:20:16,957 INFO  [stdout] (ServerService Thread Pool -- 63) GMS: address=node-0/web, cluster=web, physical address=fccc:0:0:0:0:0:0:1%1:7600
> 23:20:16,957 INFO  [stdout] (ServerService Thread Pool -- 63) -------------------------------------------------------------------
> 23:20:17,104 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-5) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
> 23:20:17,105 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-6) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
> 23:20:17,106 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-5) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
> 23:20:17,106 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-6) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
> 23:20:17,107 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-4) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
> 23:20:17,108 INFO  [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-4) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated.
> 23:20:17,136 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (ServerService Thread Pool -- 63) ISPN000078: Starting JGroups Channel
> 23:20:17,140 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (ServerService Thread Pool -- 63) ISPN000094: Received new cluster view: [node-1/web|3] [node-1/web, node-0/web]
> 23:20:17,140 INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (ServerService Thread Pool -- 63) ISPN000079: Cache local address is node-0/web, physical addresses are [fccc:0:0:0:0:0:0:1%1:7600]
> 23:20:17,141 INFO  [org.infinispan.factories.GlobalComponentRegistry] (ServerService Thread Pool -- 63) ISPN000128: Infinispan version: Infinispan 'Delirium' 5.2.0.Beta1
> 23:20:17,164 INFO  [org.infinispan.factories.TransactionManagerFactory] (ServerService Thread Pool -- 56) ISPN000161: Using a batchMode transaction manager
> 23:20:17,164 INFO  [org.infinispan.factories.TransactionManagerFactory] (ServerService Thread Pool -- 63) ISPN000161: Using a batchMode transaction manager
> 23:20:17,274 INFO  [org.infinispan.jmx.CacheJmxRegistration] (ServerService Thread Pool -- 56) ISPN000031: MBeans were successfully registered to the platform MBean server.
> 23:20:17,274 INFO  [org.infinispan.jmx.CacheJmxRegistration] (ServerService Thread Pool -- 63) ISPN000031: MBeans were successfully registered to the platform MBean server.
> 23:20:17,394 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 56) JBAS010281: Started default-host/distributable cache from web container
> 23:20:17,396 INFO  [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 63) JBAS010281: Started repl cache from web container
> 23:20:17,405 INFO  [org.jboss.as.clustering] (MSC service thread 1-5) JBAS010238: Number of cluster members: 2
> 23:20:17,414 INFO  [org.jboss.web] (MSC service thread 1-7) JBAS018210: Register web context: /distributable
> 23:20:17,533 INFO  [org.jboss.as.server] (Controller Boot Thread) JBAS018559: Deployed "distributable.war"
> 23:20:17,688 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://fccc::1:9990/management
> 23:20:17,689 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://fccc::1:9990
> 23:20:17,689 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss AS 7.2.0.Alpha1-SNAPSHOT "Steropes" started in 3445ms - Started 171 of 324 services (152 services are passive or on-demand)
> 23:54:12,922 ERROR [stderr] (KeyAffinityService Thread Pool -- 1) Exception in thread "KeyAffinityService Thread Pool -- 1" java.lang.ArrayIndexOutOfBoundsException: 1
> 23:54:12,923 ERROR [stderr] (KeyAffinityService Thread Pool -- 1) 	at org.infinispan.distribution.ch.DefaultConsistentHash.locatePrimaryOwnerForSegment(DefaultConsistentHash.java:137)
> 23:54:12,923 ERROR [stderr] (KeyAffinityService Thread Pool -- 1) 	at org.infinispan.distribution.ch.DefaultConsistentHash.locatePrimaryOwner(DefaultConsistentHash.java:152)
> 23:54:12,923 ERROR [stderr] (KeyAffinityService Thread Pool -- 1) 	at org.infinispan.affinity.KeyAffinityServiceImpl.getAddressForKey(KeyAffinityServiceImpl.java:347)
> 23:54:12,924 ERROR [stderr] (KeyAffinityService Thread Pool -- 1) 	at org.infinispan.affinity.KeyAffinityServiceImpl.access$700(KeyAffinityServiceImpl.java:59)
> 23:54:12,924 ERROR [stderr] (KeyAffinityService Thread Pool -- 1) 	at org.infinispan.affinity.KeyAffinityServiceImpl$KeyGeneratorWorker.generateKeys(KeyAffinityServiceImpl.java:270)
> 23:54:12,924 ERROR [stderr] (KeyAffinityService Thread Pool -- 1) 	at org.infinispan.affinity.KeyAffinityServiceImpl$KeyGeneratorWorker.run(KeyAffinityServiceImpl.java:242)
> 23:54:12,925 ERROR [stderr] (KeyAffinityService Thread Pool -- 1) 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 23:54:12,925 ERROR [stderr] (KeyAffinityService Thread Pool -- 1) 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 23:54:12,925 ERROR [stderr] (KeyAffinityService Thread Pool -- 1) 	at java.lang.Thread.run(Thread.java:662)
> 23:54:12,925 ERROR [stderr] (KeyAffinityService Thread Pool -- 1) 	at org.jboss.threads.JBossThread.run(JBossThread.java:122)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list