求完整ehcache jgroups 分布式测试代码
求完整ehcache jgroups 分布式测试代码
在网上找了好多代码都测试不成功,谁有测试通过的代码给一个测试例子
非常感谢啊
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
求完整ehcache jgroups 分布式测试代码
在网上找了好多代码都测试不成功,谁有测试通过的代码给一个测试例子
非常感谢啊
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(6)
https://issues.jboss.org/browse/JBPAPP-975
红薯大哥,我使用的是IBM AIX机器和IBM WebSphere服务器,所以是在IBM的服务器容器中运行的,但是我看到一个官方的说明,https://issues.jboss.org/browse/JBPAPP-975,这个问题不知道能否解决?
红薯,您好,我两台小机AIX上运行时,报如下错误,帮忙看看怎么解决呀?谢谢!
[5/29/13 11:20:42:237 GMT+08:00] 00001fc3 JChannel I org.jgroups.JChannel init JGroups version: 2.4.1 SP-4
[5/29/13 11:20:42:608 GMT+08:00] 00001fee UDP I org.jgroups.protocols.UDP createSockets sockets will use interface 10.91.234.23
[5/29/13 11:20:42:634 GMT+08:00] 00001fc3 JGroupManager E failed to start protocol stack
org.jgroups.ChannelException: failed to start protocol stack
at org.jgroups.JChannel.connect(JChannel.java:389)
at org.jgroups.blocks.NotificationBus.start(NotificationBus.java:127)
at net.sf.ehcache.distribution.jgroups.JGroupManager.<init>(JGroupManager.java:70)
at net.sf.ehcache.distribution.jgroups.JGroupsCacheManagerPeerProviderFactory.createCachePeerProvider(JGroupsCacheManagerPeerProviderFactory.java:52)
at net.sf.ehcache.config.ConfigurationHelper.createCachePeerProviders(ConfigurationHelper.java:128)
at net.sf.ehcache.CacheManager.configure(CacheManager.java:537)
at net.sf.ehcache.CacheManager.init(CacheManager.java:320)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:276)
at com.ldcchina.tester.ehcache.MyCacheManager.contextInitialized(MyCacheManager.java:18)
at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:653)
at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:370)
at com.ibm.ws.wswebcontainer.webapp.WebApp.initialize(WebApp.java:293)
at com.ibm.ws.wswebcontainer.webapp.WebGroup.addWebApplication(WebGroup.java:93)
at com.ibm.ws.wswebcontainer.VirtualHost.addWebApplication(VirtualHost.java:162)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApp(WebContainer.java:673)
at com.ibm.ws.wswebcontainer.WebContainer.addWebApplication(WebContainer.java:626)
at com.ibm.ws.webcontainer.component.WebContainerImpl.install(WebContainerImpl.java:335)
at com.ibm.ws.webcontainer.component.WebContainerImpl.start(WebContainerImpl.java:551)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.start(ApplicationMgrImpl.java:1250)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.fireDeployedObjectStart(DeployedApplicationImpl.java:1140)
at com.ibm.ws.runtime.component.DeployedModuleImpl.start(DeployedModuleImpl.java:569)
at com.ibm.ws.runtime.component.DeployedApplicationImpl.start(DeployedApplicationImpl.java:819)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:921)
at com.ibm.ws.runtime.component.ApplicationMgrImpl$1.run(ApplicationMgrImpl.java:1437)
at com.ibm.ws.security.auth.ContextManagerImpl.runAs(ContextManagerImpl.java:4157)
at com.ibm.ws.security.auth.ContextManagerImpl.runAsSystem(ContextManagerImpl.java:4254)
at com.ibm.ws.security.core.SecurityContext.runAsSystem(SecurityContext.java:245)
at com.ibm.ws.runtime.component.ApplicationMgrImpl.startApplication(ApplicationMgrImpl.java:1442)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:68)
at sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:271)
at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1092)
at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:973)
at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:231)
at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:238)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:833)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:802)
at com.ibm.ws.management.AdminServiceImpl$1.run(AdminServiceImpl.java:1139)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:118)
at com.ibm.ws.management.AdminServiceImpl.invoke(AdminServiceImpl.java:1032)
at com.ibm.ws.management.connector.AdminServiceDelegator.invoke(AdminServiceDelegator.java:139)
at sun.reflect.GeneratedMethodAccessor6180.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at com.ibm.ws.management.connector.soap.SOAPConnector.invoke(SOAPConnector.java:361)
at com.ibm.ws.management.connector.soap.SOAPConnector.service(SOAPConnector.java:215)
at com.ibm.ws.management.connector.soap.SOAPConnection.handleRequest(SOAPConnection.java:64)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:742)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:528)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1497)
Caused by: java.lang.Exception: exception caused by UDP.start()
at org.jgroups.stack.Protocol.handleSpecialDownEvent(Protocol.java:582)
at org.jgroups.stack.DownHandler.run(Protocol.java:118)
Caused by: java.lang.Exception: problem creating sockets (bind_addr=/10.91.234.23, mcast_addr=231.12.21.132:45566)
at org.jgroups.protocols.UDP.start(UDP.java:372)
at org.jgroups.stack.Protocol.handleSpecialDownEvent(Protocol.java:571)
... 1 more
Caused by: java.net.SocketException: The socket name is not available on this system.
at java.net.PlainDatagramSocketImpl.setOption(PlainDatagramSocketImpl.java:442)
at java.net.MulticastSocket.setInterface(MulticastSocket.java:443)
at org.jgroups.protocols.UDP.createSockets(UDP.java:475)
at org.jgroups.protocols.UDP.start(UDP.java:367)
... 2 more
[5/29/13 11:20:42:770 GMT+08:00] 00001fc3 SystemOut O test coming.....
刘柄成,开源中国社区(http://www.oschina.net)站长,DLOG4J 作者,十年的 Java 开发经验,热衷于开源软件的开发和应用。 http://www.dlog4j.com
http://www.ibm.com/developerworks/cn/java/j-lo-ehcache/
前两年俺在 IBM 上发表的一篇文章,可看看
怎么没人回答呢?