Post

2 followers Follow
1
Avatar

gemfire 8.2.0 This process is attempting to join with a loopback address (null) using a locator that does not have a local address (<<server-name>>/<<server-ip-address>>

when i try to connect on GemFire 8.2.0 getting below exception
Spring v4.1.6
gemfire-8.2.0.jar

I even tried to use the same jar files that was there in lib folder of Pivotal_GemFire_820_b17919_Windows.zip
Error :
[warn 2015/10/23 10:12:08.727 IST <localhost-startStop-1> tid=0x12] Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'claimChecks': Cannot resolve reference to bean 'gemfireCache' while setting bean property 'cache'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gemfireCache': FactoryBean threw exception on object creation; nested exception is com.gemstone.gemfire.distributed.internal.DistributionException: An Exception was thrown while connecting to Jgroups.
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1477)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1222)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:537)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:476)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:303)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:299)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:736)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:757)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:480)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:403)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:106)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'gemfireCache': FactoryBean threw exception on object creation; nested exception is com.gemstone.gemfire.distributed.internal.DistributionException: An Exception was thrown while connecting to Jgroups.
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:175)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1517)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:251)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
... 28 more
Caused by: com.gemstone.gemfire.distributed.internal.DistributionException: An Exception was thrown while connecting to Jgroups.
at com.gemstone.gemfire.distributed.internal.membership.jgroup.JGroupMembershipManager.createChannel(JGroupMembershipManager.java:1598)
at com.gemstone.gemfire.distributed.internal.membership.jgroup.JGroupMembershipManager.initialize(JGroupMembershipManager.java:1655)
at com.gemstone.gemfire.distributed.internal.membership.jgroup.JGroupMemberFactory.newMembershipManager(JGroupMemberFactory.java:112)
at com.gemstone.gemfire.distributed.internal.membership.MemberFactory.newMembershipManager(MemberFactory.java:89)
at com.gemstone.gemfire.distributed.internal.DistributionManager.<init>(DistributionManager.java:1214)
at com.gemstone.gemfire.distributed.internal.DistributionManager.<init>(DistributionManager.java:1266)
at com.gemstone.gemfire.distributed.internal.DistributionManager.create(DistributionManager.java:610)
at com.gemstone.gemfire.distributed.internal.InternalDistributedSystem.initialize(InternalDistributedSystem.java:620)
at com.gemstone.gemfire.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:281)
at com.gemstone.gemfire.distributed.DistributedSystem.connect(DistributedSystem.java:1651)
at com.gemstone.gemfire.cache.CacheFactory.create(CacheFactory.java:227)
at org.springframework.data.gemfire.CacheFactoryBean.createCache(CacheFactoryBean.java:391)
at org.springframework.data.gemfire.CacheFactoryBean.resolveCache(CacheFactoryBean.java:296)
at org.springframework.data.gemfire.CacheFactoryBean.init(CacheFactoryBean.java:247)
at org.springframework.data.gemfire.CacheFactoryBean.getObject(CacheFactoryBean.java:847)
at org.springframework.data.gemfire.CacheFactoryBean.getObject(CacheFactoryBean.java:81)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168)
... 33 more
Caused by: com.gemstone.org.jgroups.ChannelException: unable to setup the protocol stack
at com.gemstone.org.jgroups.JChannel.<init>(JChannel.java:303)
at com.gemstone.org.jgroups.JChannel.<init>(JChannel.java:265)
at com.gemstone.gemfire.distributed.internal.membership.jgroup.JGroupMembershipManager.createChannel(JGroupMembershipManager.java:1511)
... 49 more
Caused by: com.gemstone.gemfire.GemFireConfigException: This process is attempting to join with a loopback address (null) using a locator that does not have a local address (<<server-name>>/<<server-ip-address>>). On Unix this usually means that /etc/hosts is misconfigured.
at com.gemstone.org.jgroups.protocols.TCPGOSSIP.createInitialHosts(TCPGOSSIP.java:416)
at com.gemstone.org.jgroups.protocols.TCPGOSSIP.setProperties(TCPGOSSIP.java:90)
at com.gemstone.org.jgroups.stack.Protocol.setPropertiesInternal(Protocol.java:283)
at com.gemstone.org.jgroups.stack.Configurator$ProtocolConfiguration.createLayer(Configurator.java:709)
at com.gemstone.org.jgroups.stack.Configurator.createProtocols(Configurator.java:292)
at com.gemstone.org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:72)
at com.gemstone.org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:234)
at com.gemstone.org.jgroups.JChannel.<init>(JChannel.java:293)
... 51 more

Md Baseer

Please sign in to leave a comment.

1 comment

0
Avatar

This is generally an issue with the etc/hosts file. On windows, I think that is here: Windows\System32\drivers\etc\hosts.

Can you post your GemFire server log file as well as the locator log file?

Barry Oglesby 0 votes