Re: [javagroups-users] failed creating connection to ISSUE
Brought to you by:
belaban
|
From: <Chr...@jb...> - 2011-03-16 14:04:16
|
Thanks Bela,
We thought we were setting the bind_address with -Djgroups.bind.address=
but I guess it was wrong and we needed to use -Djgroups.bind_addr= (or
both? )
I added the -Djgroups.bind_addr= and also -Djava.net.preferIPv4Stack=true
and think we're on the brink of it but have a new error....
Caused by: java.net.UnknownHostException: =10.17.11.72
Here is my new settings
-Djgroups.bind.address=10.17.11.72
-Djgroups.tcpping.initial_hosts=JBVWEBP19E[7800],JBVWEBP19F[7801]
-Djgroups.bind_addr=10.17.11.72
-Djava.net.preferIPv4Stack=true
I know what the error means but not sure why it's happening due to the
server is accessible.... The only thing I can figure is this has
something to do with it being a virtual server...
Any ideas?
###Full Stack Trace##
2011/03/16 08:37:59 ERROR
net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProvider.init(JGroupsCacheManagerPeerProvider.java:134)
[][Thread-2]
Failed to create JGroups Channel, replication will not function.
JGroups properties:
null
org.jgroups.ChannelException: unable to setup the protocol stack
at org.jgroups.JChannel.init(JChannel.java:1709)
at org.jgroups.JChannel.<init>(JChannel.java:251)
at org.jgroups.JChannel.<init>(JChannel.java:217)
at
net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProvider.init(JGroupsCacheManagerPeerProvider.java:129)
at net.sf.ehcache.CacheManager.init(CacheManager.java:355)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:220)
at
net.sf.ehcache.hibernate.EhCacheProvider.start(EhCacheProvider.java:99)
at
com.liferay.portal.dao.orm.hibernate.CacheProviderWrapper.start(CacheProviderWrapper.java:64)
at
com.liferay.portal.dao.orm.hibernate.EhCacheProvider.start(EhCacheProvider.java:69)
at
org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge.start(RegionFactoryCacheProviderBridge.java:72)
at
org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:221)
at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1341)
at
org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
at
org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)
at
org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at
org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:495)
at
org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:353)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:903)
at
##Removed For Space###
Caused by: java.lang.Exception: Property assignment of bind_addr in
TCP with original property value =10.17.11.72 and converted to null
could not be assigned
at
org.jgroups.stack.Configurator.resolveAndAssignField(Configurator.java:1122)
at
org.jgroups.stack.Configurator.createLayer(Configurator.java:444)
at
org.jgroups.stack.Configurator.createProtocols(Configurator.java:384)
at
org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:88)
at
org.jgroups.stack.Configurator.setupProtocolStack(Configurator.java:55)
at org.jgroups.stack.ProtocolStack.setup(ProtocolStack.java:458)
at org.jgroups.JChannel.init(JChannel.java:1706)
... 136 more
Caused by: java.lang.Exception: Conversion of bind_addr in TCP with
original property value =10.17.11.72 failed
at
org.jgroups.conf.PropertyHelper.getConvertedValue(PropertyHelper.java:85)
at
org.jgroups.stack.Configurator.resolveAndAssignField(Configurator.java:1116)
... 142 more
Caused by: java.net.UnknownHostException: =10.17.11.72
at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:850)
at
java.net.InetAddress.getAddressFromNameService(InetAddress.java:1201)
at java.net.InetAddress.getAllByName0(InetAddress.java:1154)
at java.net.InetAddress.getAllByName(InetAddress.java:1084)
at java.net.InetAddress.getAllByName(InetAddress.java:1020)
at java.net.InetAddress.getByName(InetAddress.java:970)
at
org.jgroups.conf.PropertyConverters$Default.convert(PropertyConverters.java:200)
at
org.jgroups.conf.PropertyHelper.getConvertedValue(PropertyHelper.java:82)
... 143 more
----
Chris Whittle
SWAT Team Developer
J.B. Hunt Transport Services, Inc.
Office Phone:(479) 419-3122
Ext:73122
Chr...@jb...
No trees were harmed in the sending of this message. A large number of
electrons were inconvenienced but recycled
Chris Whittle
SWAT Team Developer
J.B. Hunt Transport Services, Inc.
Office Phone:(479) 419-3122
Ext:73122
Chr...@jb...
No trees were harmed in the sending of this message. A large number of
electrons were inconvenienced but recycled
From:
Bela Ban <be...@ya...>
To:
jav...@li...
Date:
03/16/2011 01:42 AM
Subject:
Re: [javagroups-users] failed creating connection to ISSUE
The core issue is that you don't have IPv6 addresses configured:
org.jgroups.stack.Configurator.setDefaultValues(Configurator.java:729)
[][Thread-2] unable to find an address other than loopback for IP
version IPv6
I suggest either configure an IPv6 address, or use IPv4
(-Djava.net.preferIPv4Stack=true).
It's also a good idea to set the bind_addr in UDP, FD_SOCK and
STREAMING_STATE_TRANSFER (if you use those). You can also set it via
system prop -Djgroups.bind_addr=1.2.3.4
On 3/15/11 9:42 PM, Chr...@jb... wrote:
> org.jgroups.stack.Configurator.setDefaultValues(Configurator.java:729)
> [][Thread-2]
> unable to find an address other than loopback for IP version IPv6
--
Bela Ban
Lead JGroups / Clustering Team
JBoss
------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
javagroups-users mailing list
jav...@li...
https://lists.sourceforge.net/lists/listinfo/javagroups-users
|