java的maven项目分布式的

宇华王 发布于 2017/05/27 21:24
阅读 643
收藏 0

@Gaussic 你好,想跟你请教个问题:分布式的maven项目,更新完项目,启动时就出现了如下错误:

五月 27, 2017 9:21:36 下午 org.apache.catalina.core.StandardContext listenerStart
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'paySettlementService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.pay.api.mc.CiticTransferMessageService com.pay.soa.web.sett.service.impl.PaySettlementService.citicTransferMessageService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'citicTransferMessageService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.pay.api.mc.CiticTransferMessageService. No provider available for the service com.pay.api.mc.CiticTransferMessageService from the url zookeeper://localhost:2181/com.alibaba.dubbo.registry.RegistryService?application=pay-soa-consumer&check=true&dubbo=2.8.4&interface=com.pay.api.mc.CiticTransferMessageService&logger=slf4j&methods=productionWithdrawMessage,productionTransferMessage&organization=&owner=pay-soa-consumer&pid=14352&protocol=dubbo&revision=0.0.1-SNAPSHOT&side=consumer&timeout=120000&timestamp=1495891295969 to the consumer 192.168.1.41 use dubbo version 2.8.4
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:289)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1146)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
    at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:296)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:293)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:633)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:932)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
    at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Caused by: org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.pay.api.mc.CiticTransferMessageService com.pay.soa.web.sett.service.impl.PaySettlementService.citicTransferMessageService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'citicTransferMessageService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.pay.api.mc.CiticTransferMessageService. No provider available for the service com.pay.api.mc.CiticTransferMessageService from the url zookeeper://localhost:2181/com.alibaba.dubbo.registry.RegistryService?application=pay-soa-consumer&check=true&dubbo=2.8.4&interface=com.pay.api.mc.CiticTransferMessageService&logger=slf4j&methods=productionWithdrawMessage,productionTransferMessage&organization=&owner=pay-soa-consumer&pid=14352&protocol=dubbo&revision=0.0.1-SNAPSHOT&side=consumer&timeout=120000&timestamp=1495891295969 to the consumer 192.168.1.41 use dubbo version 2.8.4
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:517)
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:87)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:286)
    ... 22 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'citicTransferMessageService': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalStateException: Failed to check the status of the service com.pay.api.mc.CiticTransferMessageService. No provider available for the service com.pay.api.mc.CiticTransferMessageService from the url zookeeper://localhost:2181/com.alibaba.dubbo.registry.RegistryService?application=pay-soa-consumer&check=true&dubbo=2.8.4&interface=com.pay.api.mc.CiticTransferMessageService&logger=slf4j&methods=productionWithdrawMessage,productionTransferMessage&organization=&owner=pay-soa-consumer&pid=14352&protocol=dubbo&revision=0.0.1-SNAPSHOT&side=consumer&timeout=120000&timestamp=1495891295969 to the consumer 192.168.1.41 use dubbo version 2.8.4
    at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:149)
    at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:102)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1468)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:249)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:194)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:917)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:860)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:775)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:489)
    ... 24 more
Caused by: java.lang.IllegalStateException: Failed to check the status of the service com.huaying.pay.api.mc.CiticTransferMessageService. No provider available for the service com.pay.api.mc.CiticTransferMessageService from the url zookeeper://localhost:2181/com.alibaba.dubbo.registry.RegistryService?application=pay-soa-consumer&check=true&dubbo=2.8.4&interface=com.pay.api.mc.CiticTransferMessageService&logger=slf4j&methods=productionWithdrawMessage,productionTransferMessage&organization=&owner=pay-soa-consumer&pid=14352&protocol=dubbo&revision=0.0.1-SNAPSHOT&side=consumer&timeout=120000&timestamp=1495891295969 to the consumer 192.168.1.41 use dubbo version 2.8.4
    at com.alibaba.dubbo.config.ReferenceConfig.createProxy(ReferenceConfig.java:420)
    at com.alibaba.dubbo.config.ReferenceConfig.init(ReferenceConfig.java:300)
    at com.alibaba.dubbo.config.ReferenceConfig.get(ReferenceConfig.java:138)
    at com.alibaba.dubbo.config.spring.ReferenceBean.getObject(ReferenceBean.java:65)
    at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142)
    ... 32 more

五月 27, 2017 9:21:36 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error listenerStart
五月 27, 2017 9:21:36 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/pay-soa] startup failed due to previous errors
五月 27, 2017 9:21:36 下午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
五月 27, 2017 9:21:36 下午 org.apache.catalina.core.ApplicationContext log
信息: Shutting down logback
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/pay-soa] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/pay-soa] registered the JDBC driver [com.alibaba.druid.mock.MockDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [localhost-startStop-1-SendThread(192.168.1.85:2181)] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [__DEFAULT__] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0041pply%0057age%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [Statistics Thread-__DEFAULT__-1] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0041ccount%0051uick%0042ank%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0042ank%0042ranch%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0042ank%0043ard%0050refix%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0042ank%0043ode%004eame%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0043ontacts%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0050ay%004cine%0055p%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0050ay%0041ccount%004dall%0055ser%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0041pi%0053ecret%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0042ank%0049nfo%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%004cogin%004cog%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%004eotify%0052ecord%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%004fper%004cog%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0050ay%0053upport%0042ank%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0050re%0050ayment%0049nfo%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0053ecurity%0054oken%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0054ransfer%0042ase%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%00412b%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0041ccount%0042ank%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0041ccount%0049nfo%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%00422a%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0046und%0041ccount%0041mount%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0046und%0041ccount%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0046unds%0044etails%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0051uick%0050ay%0052ecord%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [%0054ransaction%0044etail%004dapper.data] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [DubboRegistryFailedRetryTimer-thread-1] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [ZkClient-EventThread-53-localhost:2181] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [localhost-startStop-1-SendThread(0:0:0:0:0:0:0:1:2181)] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [localhost-startStop-1-EventThread] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/pay-soa] appears to have started a thread named [DubboSaveRegistryCache-thread-1] but has failed to stop it. This is very likely to create a memory leak.
五月 27, 2017 9:21:36 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-bio-1171"]
五月 27, 2017 9:21:36 下午 org.apache.catalina.loader.WebappClassLoader loadClass
信息: Illegal access: this web application instance has been stopped already.  Could not load org.apache.zookeeper.server.ZooTrace.  The eventual following stack trace is caused by an error thrown for debugging purposes as well as to attempt to terminate the thread which caused the illegal access, and has no functional impact.
java.lang.IllegalStateException
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1588)
    at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1128)

 

 

 

如果我把这个对象注释,下次就会提示下一个对象的提示错误!错误的类在*/impl文件夹下

加载中
0
m
mm韩
查看bean id为这个" paySettlementService " b的bean注入是不是出现问题了,这问题在网上搜一大把
返回顶部
顶部