spring mvc - Infinispan not using specified JGroups configuration file and throwing Exception -


i'm relatively new using jgroups , infinispan , have 2 part question:

configuration file infinispan.xml:

<jgroups>     <stack-file name="configurationfile" path="cache/default-jgroups-tcp.xml"/> </jgroups> <threads /> <cache-container default-cache="dist" shutdown-hook="register">     <jmx duplicate-domains="true"/>      <distributed-cache name="distcache" owners="2" mode="async" /> </cache-container> 

default-jgroups-tcp.xml located in src/main/resource/cache folder. contents of default-jgroups-tcp.xml copied pre-configured jgroups files provided infinispan-core.jar.

when running infinispan see:

info  jgroupstransport - ispn000088: unable use jgroups configuration mechanisms provided in properties {stackfilepath-configurationfile=cache/default-jgroups-tcp.xml, stack-configurationfile=configurationfile}. using default jgroups configuration! 

and right after exception appear:

severe: failed setting ip_ttl java.lang.reflect.invocationtargetexception     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source)     @ java.lang.reflect.method.invoke(unknown source)     @ org.jgroups.protocols.udp.settimetolive(udp.java:339)     @ org.jgroups.protocols.udp.createsockets(udp.java:368)     @ org.jgroups.protocols.udp.start(udp.java:270)     @ org.jgroups.stack.protocolstack.startstack(protocolstack.java:965)     @ org.jgroups.jchannel.startstack(jchannel.java:885)     @ org.jgroups.jchannel._preconnect(jchannel.java:547)     @ org.jgroups.jchannel.connect(jchannel.java:282)     @ org.jgroups.jchannel.connect(jchannel.java:273)     @ org.infinispan.remoting.transport.jgroups.jgroupstransport.startjgroupschannelifneeded(jgroupstransport.java:201)     @ org.infinispan.remoting.transport.jgroups.jgroupstransport.start(jgroupstransport.java:192)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(unknown source)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(unknown source)     @ java.lang.reflect.method.invoke(unknown source)     @ org.infinispan.commons.util.reflectionutil.invokeaccessibly(reflectionutil.java:168)     @ org.infinispan.factories.abstractcomponentregistry$prioritizedmethod.invoke(abstractcomponentregistry.java:869)     @ org.infinispan.factories.abstractcomponentregistry.invokestartmethods(abstractcomponentregistry.java:638)     @ org.infinispan.factories.abstractcomponentregistry.internalstart(abstractcomponentregistry.java:627)     @ org.infinispan.factories.abstractcomponentregistry.start(abstractcomponentregistry.java:530)     @ org.infinispan.factories.globalcomponentregistry.start(globalcomponentregistry.java:221)     @ org.infinispan.manager.defaultcachemanager.wireandstartcache(defaultcachemanager.java:573)     @ org.infinispan.manager.defaultcachemanager.createcache(defaultcachemanager.java:539)     @ org.infinispan.manager.defaultcachemanager.getcache(defaultcachemanager.java:416)     @ com.viasat.sng.cache.manager.getasyncdistributedcache(manager.java:43)     @ com.viasat.sng.controller.infcontroller.<init>(infcontroller.java:50)     @ sun.reflect.nativeconstructoraccessorimpl.newinstance0(native method)     @ sun.reflect.nativeconstructoraccessorimpl.newinstance(unknown source)     @ sun.reflect.delegatingconstructoraccessorimpl.newinstance(unknown source)     @ java.lang.reflect.constructor.newinstance(unknown source)     @ org.springframework.beans.beanutils.instantiateclass(beanutils.java:148)     @ org.springframework.beans.factory.support.simpleinstantiationstrategy.instantiate(simpleinstantiationstrategy.java:87)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.instantiatebean(abstractautowirecapablebeanfactory.java:1000)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbeaninstance(abstractautowirecapablebeanfactory.java:953)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:487)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:458)     @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:295)     @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:223)     @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:292)     @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:194)     @ org.springframework.beans.factory.support.defaultlistablebeanfactory.preinstantiatesingletons(defaultlistablebeanfactory.java:626)     @ org.springframework.context.support.abstractapplicationcontext.finishbeanfactoryinitialization(abstractapplicationcontext.java:932)     @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:479)     @ org.springframework.web.servlet.frameworkservlet.configureandrefreshwebapplicationcontext(frameworkservlet.java:651)     @ org.springframework.web.servlet.frameworkservlet.createwebapplicationcontext(frameworkservlet.java:599)     @ org.springframework.web.servlet.frameworkservlet.createwebapplicationcontext(frameworkservlet.java:665)     @ org.springframework.web.servlet.frameworkservlet.initwebapplicationcontext(frameworkservlet.java:518)     @ org.springframework.web.servlet.frameworkservlet.initservletbean(frameworkservlet.java:459)     @ org.springframework.web.servlet.httpservletbean.init(httpservletbean.java:136)     @ javax.servlet.genericservlet.init(genericservlet.java:158)     @ org.apache.catalina.core.standardwrapper.initservlet(standardwrapper.java:1284)     @ org.apache.catalina.core.standardwrapper.loadservlet(standardwrapper.java:1197)     @ org.apache.catalina.core.standardwrapper.load(standardwrapper.java:1087)     @ org.apache.catalina.core.standardcontext.loadonstartup(standardcontext.java:5231)     @ org.apache.catalina.core.standardcontext.startinternal(standardcontext.java:5518)     @ org.apache.catalina.util.lifecyclebase.start(lifecyclebase.java:150)     @ org.apache.catalina.core.containerbase.addchildinternal(containerbase.java:901)     @ org.apache.catalina.core.containerbase.addchild(containerbase.java:877)     @ org.apache.catalina.core.standardhost.addchild(standardhost.java:649)     @ org.apache.catalina.startup.hostconfig.deploywar(hostconfig.java:1083)     @ org.apache.catalina.startup.hostconfig$deploywar.run(hostconfig.java:1879)     @ java.util.concurrent.executors$runnableadapter.call(unknown source)     @ java.util.concurrent.futuretask.run(unknown source)     @ java.util.concurrent.threadpoolexecutor.runworker(unknown source)     @ java.util.concurrent.threadpoolexecutor$worker.run(unknown source)     @ java.lang.thread.run(unknown source) caused by: java.io.ioexception: method not implemented!     @ java.net.dualstackplaindatagramsocketimpl.settimetolive(unknown source)     ... 69 more 

i have 2 questions:

1) why jgroups configuration not able used? tried different path combinations , having point directly pre-configured jgroups file provided infinispan-core.jar.

2) why using default jgroups configuration cause java.lang.reflect.invocationtargetexception thrown or fail set ip_ttl?

any or input appreciated, thanks!

2) on windows, there 2 implementations of datagramsocket: dualstackplaindatagramsocketimpl , twostacksplaindatagramsocketimpl. first (used default on vista , higher) throws exception. second does implement settimetolive(). need use second. can done in 2 ways:

set -djava.net.preferipv4stack=true, or

use impl.prefix system property (google details).

1) seems classpath doesn't include config file, have tried setting absolute rather relative pather, e.g. /home/yourhome/config/jgroups-tcp.xml ?

here's link wiki: https://github.com/belaban/jgroups/wiki/faq


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -