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
重新启动程序,一切正常。
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
重新启动程序,一切正常。
相关文章推荐
- Invocation of init method failed; nested exception is org.hibernate.HibernateException: Unable to instantiate default tuplizer [
- Invocation of init method failed; nested exception is java.lang.NoSuchMethodError:问题解决
- Invocation of init method failed; nested exception is java.lang.NoSuchMethodError
- Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path reso
- CXF2.7.0配置REST和spring时报错:Error creating bean with name '***': Invocation of init method failed; nested exception is ***.ServiceConstructionException
- Invocation of init method failed; nested exception is java.lang.NoSuchMethodError:问题解决
- Invocation of init method failed; nested exception is org.hibernate.PropertyAccessException: Illegal
- ssh框架: Invocation of init method failed; nested exception is org.hibernate.InvalidMappingException:
- CXF2.7.0 Error creating bean with name '***': Invocation of init method failed; nested exception is
- Invocation of init method failed; nested exception is org.apache.ibatis.binding.BindingException: In
- Invocation of init method failed; nested exception is org.activiti.engine.ActivitiException: couldn'
- Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlMapClient' is required的解决办法及详细介绍
- Invocation of init method failed; nested exception is org.hibernate.MappingException
- Invocation of init method failed; nested exception is java.lang.NoSuchMethodError:
- Invocation of init method failed; nested exception is java.lang.NoSuchMethod
- Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: 'sessionFa
- Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/hibernate/
- Invocation of init method failed; nested exception is java.lang.NoSuchMethodError:
- Invocation of init method failed; nested exception is java.lang.IllegalStateException:
- MyBatis与Spring MVC结合时,使用DAO注入出现:Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required