您的位置:首页 > 编程语言 > Java开发

Invocation of init method failed; nested exception is javax.naming.CommunicationException [Root exce

2013-08-29 15:05 639 查看
[2013-08-29 11:10:42,664 main] SpringContextManager ERROR Can't start spring with current config

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'colline' defined in resource loaded from byte array: Cannot create inner bean 'org.apache.camel.component.jms.JmsConfiguration#ec0f07' of type [org.apache.camel.component.jms.JmsConfiguration]
while setting bean property 'configuration'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.camel.component.jms.JmsConfiguration#ec0f07' defined in resource loaded from byte array: Cannot
resolve reference to bean 'collineJmsFactory' while setting bean property 'connectionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'collineJmsFactory' defined in resource loaded from byte
array: Invocation of init method failed; nested exception is javax.naming.CommunicationException [Root exception is java.rmi.NoSuchObjectException: no such object in table]

at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]

at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1360)[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1118)[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:517)[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]

at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:294)[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]

at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]

at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]

at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]

at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)[spring-beans-3.1.1.RELEASE.jar:3.1.1.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)[spring-context-3.1.1.RELEASE.jar:3.1.1.RELEASE]

at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)[spring-context-3.1.1.RELEASE.jar:3.1.1.RELEASE]

at com.lombardrisk.reform.integration.SpringContextManager.startSpringContext(SpringContextManager.java:127)[reform-camel-1.1.0.3.jar:1.1.0.3-r5441]

at com.lombardrisk.reform.integration.SpringContextManager.startSpring(SpringContextManager.java:42)[reform-camel-1.1.0.3.jar:1.1.0.3-r5441]

at com.lombardrisk.reform.integration.ReformIntegration.main(ReformIntegration.java:23)[reform-camel-1.1.0.3.jar:1.1.0.3-r5441]

JMS 服务器无故连接不上,查了半天原因,发现是/etc/hosts 里面的配置有问题,加上JMS Server的IP和hostName 将

127.0.0.1 localhost

172.20.20.233 sha-lisa-a

172.20.30.181 sha-lri-pc-111

重新启动程序,一切正常。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐