Failed to start service jboss.jgroups.channel.hibernate: org.jboss.msc.service.StartException in service jboss.jgroups.channel.hibernate: java.lang.NullPointerException
radzish Jul 2, 2012 2:19 PMHi,
Sometimes (quite often) I am getting following exception during server startup while trying to deploy application:
18:09:17,221 INFO [org.jboss.weld.Version] (MSC service thread 1-2) WELD-000900 1.1.5 (AS71)
18:09:21,645 INFO [stdout] (pool-14-thread-1)
18:09:21,645 INFO [stdout] (pool-14-thread-1) -------------------------------------------------------------------
18:09:21,646 INFO [stdout] (pool-14-thread-1) GMS: address=ip-10-238-61-210/content, cluster=content, physical address=10.238.61.210:7600
18:09:21,663 INFO [stdout] (pool-14-thread-1) -------------------------------------------------------------------
18:09:21,760 INFO [stdout] (pool-27-thread-1)
18:09:21,767 INFO [stdout] (pool-27-thread-1) -------------------------------------------------------------------
18:09:21,768 INFO [stdout] (pool-27-thread-1) GMS: address=ip-10-238-61-210/hibernate, cluster=hibernate, physical address=10.238.61.210:7600
18:09:21,769 INFO [stdout] (pool-27-thread-1) -------------------------------------------------------------------
18:09:21,796 INFO [stdout] (pool-17-thread-1)
18:09:21,796 INFO [stdout] (pool-17-thread-1) -------------------------------------------------------------------
18:09:21,802 INFO [stdout] (pool-17-thread-1) GMS: address=ip-10-238-61-210/web, cluster=web, physical address=10.238.61.210:7600
18:09:21,807 INFO [stdout] (pool-17-thread-1) -------------------------------------------------------------------
18:09:25,650 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-1) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
18:09:25,651 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (MSC service thread 1-2) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
18:09:26,106 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-18-thread-1) ISPN000078: Starting JGroups Channel
18:09:26,113 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-18-thread-1) ISPN000094: Received new cluster view: [ip-10-226-123-229/web|11] [ip-10-226-123-229/web, ip-10-238-61-210/web]
18:09:26,115 INFO [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (pool-18-thread-1) ISPN000079: Cache local address is ip-10-238-61-210/web, physical addresses are [10.238.61.210:7600]
18:09:26,122 INFO [org.infinispan.factories.GlobalComponentRegistry] (pool-18-thread-1) ISPN000128: Infinispan version: Infinispan 'Brahma' 5.1.2.FINAL
18:09:26,126 INFO [org.infinispan.config.ConfigurationValidatingVisitor] (pool-18-thread-1) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be pasivated.
18:09:26,521 INFO [org.infinispan.jmx.CacheJmxRegistration] (pool-18-thread-1) ISPN000031: MBeans were successfully registered to the platform mbean server.
18:09:26,606 ERROR [org.jboss.msc.service.fail] (pool-27-thread-1) MSC00001: Failed to start service jboss.jgroups.channel.hibernate: org.jboss.msc.service.StartException in service jboss.jgroups.channel.hibernate: java.lang.NullPointerException
at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:62) [jboss-as-clustering-common-7.1.1.Final.jar:7.1.1.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [rt.jar:1.7.0_03]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [rt.jar:1.7.0_03]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_03]
Caused by: java.lang.NullPointerException
at org.jboss.as.clustering.jgroups.subsystem.ChannelService.start(ChannelService.java:51) [jboss-as-clustering-jgroups-7.1.1.Final.jar:7.1.1.Final]
at org.jboss.as.clustering.msc.AsynchronousService$1.run(AsynchronousService.java:59) [jboss-as-clustering-common-7.1.1.Final.jar:7.1.1.Final]
... 3 more
18:09:26,618 WARNING [org.jgroups.protocols.TCP] (FD_SOCK pinger,hibernate,ip-10-238-61-210/hibernate) logical address cache didn't contain all physical address, sending up a discovery request
Sometimes after few restarts it goes away and server starts normally, sometimes i need to stop all nodes, cleanup table JGROUPSPING (using for discovery) and start again.
Can anyone tell me how to avoid the issue.