JMS集群部署问题 java.net.ConnectException: Connection refused; No available router to destination

时间:2021-10-13 07:12:16

1:本地spring配置如下

<!-- JndiTemplate -->
<bean id="jndiTpl" class="org.springframework.jndi.JndiTemplate">
<property name="environment">
<props>
<prop key="java.naming.factory.initial">weblogic.jndi.WLInitialContextFactory</prop>
<prop key="java.naming.provider.url">t3://localhost:9401</prop>
</props>
</property>
</bean>

在本地服务器测试没有问题,部署到集群服务器上,报以下错误:

 [Root exception is java.net.ConnectException: t3://localhost:9401: Destination unreachable; nested exception is:
java.net.ConnectException: Connection refused; No available router to destination]
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:)
at org.springframework.beans.factory.support.AbstractBeanFactory$.getObject(AbstractBeanFactory.java:)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:)
at org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:)
at org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:)
at org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:)
at org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:)
at org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:)
at javax.servlet.GenericServlet.init(GenericServlet.java:)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:)
at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:)

集群一共两台服务器:

csServer1:192.168.0.140:9401

csServer2:192.168.0.111:9401

csCluster:192.168.0.140:9401(查看config.xml配置文件)

问题出在以下配置上:

<prop key="java.naming.provider.url">t3://localhost:9401</prop>

把他修改为集群服务的地址就可以了:

t3://192.168.0.140:9401

JMS集群部署问题 java.net.ConnectException: Connection refused; No available router to destination的更多相关文章

  1. Debian部署RMI异常:java&period;rmi&period;ConnectException&colon; Connection refused to host&colon; 127&period;0&period;1&period;1&semi;

    现象:在windows上部署RMI很顺利,但移到debian上部署后,客户端报异常: java.rmi.ConnectException: Connection refused to host: 12 ...

  2. Call From master&sol;192&period;168&period;128&period;135 to master&colon;8485 failed on connection exception&colon; java&period;net&period;ConnectException&colon; Connection refused

    hadoop集群搭建了ha,初次启动正常,最近几天启动时偶尔发现,namenode1节点启动后一段时间(大约10几秒-半分钟左右),namenode1上namenode进程停掉,查看日志: -- :: ...

  3. JedisConnectionException&colon; java&period;net&period;ConnectException&colon; Connection refused

    出现问题 我遇到的一个问题,在连接redis的时候出现了错误!错误如下: JedisConnectionException: java.net.ConnectException: Connection ...

  4. Caused by&colon; java&period;net&period;ConnectException&colon; Call From master&sol;192&period;168&period;199&period;130 to master&colon;9000 failed on connection exception&colon; java&period;net&period;ConnectException&colon; Connection refused&semi; For more details see&colon; http&colon;&sol;&sol;wiki&period;

    1:安装好hive,准备启动的时候出现下面的错误(由于hive是基于Hadoop的,所以必须先将你的集群启动起来,我就是没有启动集群,直接启动hive导致的错误): [root@master bin] ...

  5. error&colon; not found&colon; value sqlContext&sol;import sqlContext&period;implicits&period;&lowbar;&sol;error&colon; not found&colon; value sqlContext &sol;import sqlContext&period;sql&sol;Caused by&colon; java&period;net&period;ConnectException&colon; Connection refused

    1.今天启动启动spark的spark-shell命令的时候报下面的错误,百度了很多,也没解决问题,最后想着是不是没有启动hadoop集群的问题 ,可是之前启动spark-shell命令是不用启动ha ...

  6. WARN Session 0x0 for server null&comma; unexpected error&comma; closing socket connection and attempting reconnect &lpar;org&period;apache&period;zookeeper&period;ClientCnxn&rpar; java&period;net&period;ConnectException&colon; Connection refused

    1.启动kafka的脚本程序报如下所示的错误: [hadoop@slaver1 script_hadoop]$ kafka-start.sh start kafkaServer... [-- ::,] ...

  7. Caused by&colon; java&period;net&period;ConnectException&colon; Connection refused&colon; master&sol;192&period;168&period;3&period;129&colon;7077

    1:启动Spark Shell,spark-shell是Spark自带的交互式Shell程序,方便用户进行交互式编程,用户可以在该命令行下用scala编写spark程序. 启动Spark Shell, ...

  8. 访问Storm ui界面,出现org&period;apache&period;thrift7&period;transport&period;TTransportException&colon; java&period;net&period;ConnectException&colon; Connection refused的问题解决(图文详解)

    不多说,直接上干货! 前期博客 apache-storm-0.9.6.tar.gz的集群搭建(3节点)(图文详解) 问题详情 org.apache.thrift7.transport.TTranspo ...

  9. Eureka服务注册中心错误:com&period;sun&period;jersey&period;api&period;client&period;ClientHandlerException&colon; java&period;net&period;ConnectException&colon; Connection refused&colon; connect

    报错信息 14:43:45.484 [main] INFO com.netflix.discovery.DiscoveryClient - Getting all instance registry ...

随机推荐

  1. UI基础

    知识点一:OC不允许直接修改对象的结构体属性的成员,允许直接修改对象的结构体属性 示例代码: CGRect tempFrame = self.frame; tempFrame.origin.x += ...

  2. 025&period; asp&period;net中GridView的排序和过滤

    前台HTML代码: <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Defaul ...

  3. 解决Thinkpad E450 外接显示器后没有声音的问题

    昨天把公司配的ThinkPad E450 带回来了,今天用的时候一切正常没什么问题. 因为要看边看视频边做点别的,我就外接一台显示器,说出来我的这台显示器,你们绝对想不到是什么 显示器.我的这台显示器 ...

  4. iOS&lowbar;38&lowbar;手势

    Pan平移手势 终于效果图: Swipe轻扫手势 LongPress长按手势 Pinch和Rotation手势 捏合(缩放)和旋转 终于效果图: 涂鸦 终于效果图: 事件分3大类:触摸.加速计.远程遥 ...

  5. 点赞增加的jquery写法

    $('.dianzan').click(function(){ $(this).find('span').html(parseInt($(this).find('span').html())+1) } ...

  6. 【Android Developers Training】 23&period; 序言:保存数据

    注:本文翻译自Google官方的Android Developers Training文档,译者技术一般,由于喜爱安卓而产生了翻译的念头,纯属个人兴趣爱好. 原文链接:http://developer ...

  7. 【十八】php文件下载源码

    index.php <!DOCTYPE html> <html> <head> <title></title> <meta chars ...

  8. 一个Dotnet数据框架的bug

    好久没写C#代码了,今天在维护公司老项目时,偶然发现一个BUG.记录一下,后面的同学就不要踩坑啦. -------------------------------------------------- ...

  9. codeforces&lowbar;Codeforces Round &num;541 &lpar;Div&period; 2&rpar;&lowbar;abc

    A. Sea Battle time limit per test 1 second memory limit per test 256 megabytes input standard input ...

  10. python学习笔记(11)--测验3&colon; Python基础语法&lpar;下&rpar; &lpar;第7周&rpar;

    斐波那契数列计算 B 描述 斐波那契数列如下: F(0) = 0, F(1) = 1 F(n) = F(n-1) + F(n-2) 编写一个计算斐波那契数列的函数,采用递归方式,输出不超过n的所有斐波 ...