我们在JBoss AS 7.2上运行我们的JEE6应用程序,mod_cluster作为负载均衡器和S3_Ping,所有这些都在不同的EC2实例上,jboss实例与standalone_full_ha config一起运行
大约一周前,我将ec2实例类型从c3.large升级到c4.large,同时我还将JDK从Java 1.6更新到1.7,我们的应用程序在迁移后运行良好但是我遇到了一个问题,其中(大约五分之一)JBoss实例在创建新实例时无法部署应用程序(下面的完整堆栈跟踪)。我发现通常我可以重新启动JBoss并且第二次重新部署工作正常但是在某些情况下我必须终止ec2实例并启动一个新实例。
在迁移过程中,我复制了整个JBoss目录,因此JBoss安装保持不变,唯一的变化是Java版本和更新版本的Amazon Linux
新Java版本:
java version "1.7.0_111"
OpenJDK Runtime Environment (amzn-2.6.7.2.68.amzn1-x86_64 u111-b01)
OpenJDK 64-Bit Server VM (build 24.111-b01, mixed mode)
我认为由于间歇性这可能是一个时间问题,我已经包含了我们用来启动新实例的启动脚本:
#! /bin/bash
echo "-------Running Instance Startup Script--------"
echo "Downloading Ear Archive"
aws s3 cp s3://processor-ear/production/Processor.ear /home/ec2-user/Processor.ear --region eu-west-1
if [ ! -f /home/ec2-user/Processor.ear ]; then
echo "Error - Processor.ear was not downloaded!"
exit 0
fi
echo "Archive download success"
echo "Downloading server config file"
aws s3 cp s3://processor-ear/production/standalone-full-ha.xml /home/ec2-user/standalone-full-ha.xml --region eu-west-1
if [ ! -f /home/ec2-user/standalone-full-ha.xml ]; then
echo "Error - standalone-full-ha.xml was not downloaded!"
exit 0
fi
echo "Server config download success"
chown ec2-user /home/ec2-user/Processor.ear
chgrp ec2-user /home/ec2-user/Processor.ear
chown jboss /home/ec2-user/standalone-full-ha.xml
chgrp jboss /home/ec2-user/standalone-full-ha.xml
cp /home/ec2-user/standalone-full-ha.xml /opt/jboss/standalone/configuration/standalone-full-ha.xml
echo "Deploying Archive"
bash /opt/jboss/bin/jboss-cli.sh --connect commands="deploy /home/ec2-user/Processor.ear"
echo "Checking deployment status..."
DEPLOYMENT_STATUS=$(bash /opt/jboss/bin/jboss-cli.sh -c --commands="cd deployment,cd Processor.ear, read-attribute status")
echo $DEPLOYMENT_STATUS
if [ '$DEPLOYMENT_STATUS' != 'OK' ]; then
service jboss restart
sleep 5
bash /opt/jboss/bin/jboss-cli.sh --connect commands="deploy /home/ec2-user/Processor.ear"
fi
正如你所看到的那样,如果第一次失败,我会在最后包含一个hack以尝试第二次重新部署
以下是jboss日志中的例外情况......
Oct 06 06:56:30,649 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (ServerService Thread Pool -- 61) ISPN000078: Starting JGroups Channel
Oct 06 06:56:30,650 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (ServerService Thread Pool -- 60) ISPN000078: Starting JGroups Channel
Oct 06 06:56:30,698 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 60) MSC00001: Failed to start service jboss.infinispan.ejb.repl: org.jboss.msc.service.StartException in service jboss.infinispan.ejb.repl: org.infinispan.manager.EmbeddedCacheManagerStartupException: org.infinispan.CacheException: Unable to invoke method public void org.infinispan.remoting.transport.jgroups.JGroupsTransport.start() on object of type JGroupsTransport
at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:87) [jboss-as-clustering-common-7.2.0.Final.jar:7.2.0.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_111]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_111]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_111]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
Caused by: org.infinispan.manager.EmbeddedCacheManagerStartupException: org.infinispan.CacheException: Unable to invoke method public void org.infinispan.remoting.transport.jgroups.JGroupsTransport.start() on object of type JGroupsTransport
at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:247)
at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:678)
at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:649)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:545)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:559)
at org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager.getCache(DefaultEmbeddedCacheManager.java:109)
at org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager.getCache(DefaultEmbeddedCacheManager.java:100)
at org.jboss.as.clustering.infinispan.subsystem.CacheService.start(CacheService.java:78)
at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:82) [jboss-as-clustering-common-7.2.0.Final.jar:7.2.0.Final]
... 4 more
Caused by: org.infinispan.CacheException: Unable to invoke method public void org.infinispan.remoting.transport.jgroups.JGroupsTransport.start() on object of type JGroupsTransport
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:205)
at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:886)
at org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:657)
at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:646)
at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:549)
at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:225)
... 12 more
Caused by: org.infinispan.CacheException: Unable to start JGroups Channel
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.startJGroupsChannelIfNeeded(JGroupsTransport.java:209)
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.start(JGroupsTransport.java:198)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_111]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_111]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_111]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_111]
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:203)
... 17 more
Caused by: java.lang.NullPointerException
at java.util.LinkedList$ListItr.next(LinkedList.java:891) [rt.jar:1.7.0_111]
at org.jgroups.protocols.TP.start(TP.java:1065)
at org.jgroups.protocols.TCP.start(TCP.java:83)
at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:948)
at org.jgroups.JChannel.startStack(JChannel.java:827)
at org.jgroups.JChannel._preConnect(JChannel.java:525)
at org.jgroups.JChannel.connect(JChannel.java:277)
at org.jgroups.JChannel.connect(JChannel.java:268)
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.startJGroupsChannelIfNeeded(JGroupsTransport.java:207)
... 23 more
Oct 06 06:56:30,702 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 61) MSC00001: Failed to start service jboss.infinispan.singleton.default: org.jboss.msc.service.StartException in service jboss.infinispan.singleton.default: org.infinispan.manager.EmbeddedCacheManagerStartupException: org.infinispan.CacheException: Unable to invoke method public void org.infinispan.remoting.transport.jgroups.JGroupsTransport.start() on object of type JGroupsTransport
at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:87) [jboss-as-clustering-common-7.2.0.Final.jar:7.2.0.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_111]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_111]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_111]
at org.jboss.threads.JBossThread.run(JBossThread.java:122) [jboss-threads-2.1.0.Final.jar:2.1.0.Final]
Caused by: org.infinispan.manager.EmbeddedCacheManagerStartupException: org.infinispan.CacheException: Unable to invoke method public void org.infinispan.remoting.transport.jgroups.JGroupsTransport.start() on object of type JGroupsTransport
at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:247)
at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:678)
at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:649)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:545)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:559)
at org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager.getCache(DefaultEmbeddedCacheManager.java:109)
at org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager.getCache(DefaultEmbeddedCacheManager.java:100)
at org.jboss.as.clustering.infinispan.subsystem.CacheService.start(CacheService.java:78)
at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:82) [jboss-as-clustering-common-7.2.0.Final.jar:7.2.0.Final]
... 4 more
Caused by: org.infinispan.CacheException: Unable to invoke method public void org.infinispan.remoting.transport.jgroups.JGroupsTransport.start() on object of type JGroupsTransport
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:205)
at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:886)
at org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:657)
at org.infinispan.factories.AbstractComponentRegistry.internalStart(AbstractComponentRegistry.java:646)
at org.infinispan.factories.AbstractComponentRegistry.start(AbstractComponentRegistry.java:549)
at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:225)
... 12 more
Caused by: org.infinispan.CacheException: Unable to start JGroups Channel
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.startJGroupsChannelIfNeeded(JGroupsTransport.java:209)
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.start(JGroupsTransport.java:198)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_111]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_111]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_111]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_111]
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:203)
... 17 more
Caused by: java.lang.NullPointerException
at java.util.LinkedList$ListItr.next(LinkedList.java:891) [rt.jar:1.7.0_111]
at org.jgroups.protocols.TP.start(TP.java:1065)
at org.jgroups.protocols.TCP.start(TCP.java:83)
at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:948)
at org.jgroups.JChannel.startStack(JChannel.java:827)
at org.jgroups.JChannel._preConnect(JChannel.java:525)
at org.jgroups.JChannel.connect(JChannel.java:277)
at org.jgroups.JChannel.connect(JChannel.java:268)
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.startJGroupsChannelIfNeeded(JGroupsTransport.java:207)
... 23 more
Oct 06 06:56:30,702 INFO [org.infinispan.factories.GlobalComponentRegistry] (ServerService Thread Pool -- 59) ISPN000128: Infinispan version: Infinispan 'Delirium' 5.2.3.Final
Oct 06 06:56:30,805 INFO [org.infinispan.factories.TransactionManagerFactory] (ServerService Thread Pool -- 59) ISPN000161: Using a batchMode transaction manager
Oct 06 06:56:30,832 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (ServerService Thread Pool -- 59) ISPN000078: Starting JGroups Channel
Oct 06 06:56:30,833 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 59) MSC00001: Failed to start service jboss.infinispan.ejb.remote-connector-client-mappings: org.jboss.msc.service.StartException in service jboss.infinispan.ejb.remote-connector-client-mappings: org.infinispan.CacheException: Unable to invoke method public void org.infinispan.remoting.transport.jgroups.JGroupsTransport.start() on object of type JGroupsTransport
at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:87)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_111]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_111]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_111]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
Caused by: org.infinispan.CacheException: Unable to invoke method public void org.infinispan.remoting.transport.jgroups.JGroupsTransport.start() on object of type JGroupsTransport
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:205)
at org.infinispan.factories.AbstractComponentRegistry$PrioritizedMethod.invoke(AbstractComponentRegistry.java:886)
at org.infinispan.factories.AbstractComponentRegistry.invokeStartMethods(AbstractComponentRegistry.java:657)
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:226)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:175)
at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:296)
at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:158)
at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:246)
at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:86)
at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:814)
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:220)
at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:188)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:175)
at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:296)
at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:161)
at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:246)
at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:86)
at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:814)
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:220)
at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:188)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:175)
at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:296)
at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:161)
at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:246)
at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:86)
at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:814)
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:220)
at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:188)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:175)
at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:296)
at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:161)
at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:246)
at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:86)
at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:814)
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:220)
at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:188)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:175)
at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:296)
at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:161)
at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:246)
at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:86)
at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:814)
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:220)
at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:188)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:175)
at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:296)
at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:161)
at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:246)
at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:86)
at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:814)
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:220)
at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:188)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:175)
at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:296)
at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:161)
at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:246)
at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:86)
at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:814)
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:220)
at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:188)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:175)
at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:296)
at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:161)
at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:246)
at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:86)
at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:814)
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:220)
at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:188)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:175)
at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:296)
at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:161)
at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:246)
at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:86)
at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:814)
at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:220)
at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:188)
at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:175)
at org.infinispan.factories.InternalCacheFactory.bootstrap(InternalCacheFactory.java:101)
at org.infinispan.factories.InternalCacheFactory.createAndWire(InternalCacheFactory.java:80)
at org.infinispan.factories.InternalCacheFactory.createCache(InternalCacheFactory.java:64)
at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:682)
at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:649)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:545)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:559)
at org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager.getCache(DefaultEmbeddedCacheManager.java:109)
at org.jboss.as.clustering.infinispan.DefaultEmbeddedCacheManager.getCache(DefaultEmbeddedCacheManager.java:100)
at org.jboss.as.clustering.infinispan.subsystem.CacheService.start(CacheService.java:78)
at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:82)
... 4 more
Caused by: org.infinispan.CacheException: Unable to start JGroups Channel
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.startJGroupsChannelIfNeeded(JGroupsTransport.java:209)
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.start(JGroupsTransport.java:198)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_111]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_111]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_111]
at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_111]
at org.infinispan.util.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:203)
... 91 more
Caused by: java.lang.NullPointerException
at java.util.LinkedList$ListItr.next(LinkedList.java:891) [rt.jar:1.7.0_111]
at org.jgroups.protocols.TP.start(TP.java:1065)
at org.jgroups.protocols.TCP.start(TCP.java:83)
at org.jgroups.stack.ProtocolStack.startStack(ProtocolStack.java:948)
at org.jgroups.JChannel.startStack(JChannel.java:827)
at org.jgroups.JChannel._preConnect(JChannel.java:525)
at org.jgroups.JChannel.connect(JChannel.java:277)
at org.jgroups.JChannel.connect(JChannel.java:268)
at org.infinispan.remoting.transport.jgroups.JGroupsTransport.startJGroupsChannelIfNeeded(JGroupsTransport.java:207)
... 97 more
之前有任何JGroups / JBoss的人见过吗?如果需要,可以提供更多配置详细信息
答案 0 :(得分:2)
好的,问题是探测处理程序是在非线程安全的链表中注册的。这在3.2.12中已经确定(见[1])。
因此要么升级到JGroups 3.2.12,要么尝试将enable_diagnostics
设置为false。 3.2.12应与3.2.7兼容,但我不知道这是否已经过测试。