注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

和申的个人主页

专注于java开发,1985wanggang

 
 
 

日志

 
 

2011-12-26 16:38:39,968 INFO [org.springframework.core.CollectionFactory] - <JDK 1.4+ collections available> 2011-12-26 16:38:39,971 INFO [org.springframework.core.CollectionFactory] - <Commons Collections 3.x available> 2011-12-26 16:38:40,052 INFO [org.  

2011-12-26 16:40:22|  分类: 项目开发 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
Address already in use
这里端口被占了,如果需要在一台机器上注册不同端口的dubbo,

<!-- 暴露服务配置 -->
<dubbo:protocol id="protocolConfigPort" name="dubbo" port="7018"/>

俺上面的配置,指定另一个端口。

如果是因为,上一个程序没有退出,那就直接kill到上一个进程就好了。
======================================================================
======================================================================


2011-12-26 16:38:39,968 INFO [org.springframework.core.CollectionFactory] - <JDK 1.4+ collections available>
2011-12-26 16:38:39,971 INFO [org.springframework.core.CollectionFactory] - <Commons Collections 3.x available>
2011-12-26 16:38:40,052 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - <Loading XML bean definitions from class path resource [complaint_service.xml]>
2011-12-26 16:38:40,648 INFO [com.alibaba.dubbo.common.logger.LoggerFactory] - <using logger: com.alibaba.dubbo.common.logger.support.Log4jLoggerFactory>
2011-12-26 16:38:40,779 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] - <Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=33001201]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [com.alibaba.dubbo.config.RegistryConfig,protocolConfigPort,com.alibaba.intl.biz.wsbuyer.share.interfaces.WsBuyerRankRemoteService,wsBuyerRankRemoteService]; root of BeanFactory hierarchy>
2011-12-26 16:38:40,783 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] - <4 beans defined in application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=33001201]>
2011-12-26 16:38:40,787 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] - <Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@419d05]>
2011-12-26 16:38:40,789 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] - <Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@3ae941]>
2011-12-26 16:38:41,434 INFO [com.alibaba.dubbo.config.AbstractConfig] - <Export dubbo service com.alibaba.intl.biz.wsbuyer.share.interfaces.WsBuyerRankRemoteService to url dubbo://10.17.12.132:7018/com.alibaba.intl.biz.wsbuyer.share.interfaces.WsBuyerRankRemoteService?anyhost=true&application=escrow&dubbo=2.0.8-7&exported=false&interface=com.alibaba.intl.biz.wsbuyer.share.interfaces.WsBuyerRankRemoteService&methods=listBuyerRankByBuyerSeqs,deleteBuyerRankByBuyerSeqs,updateBuyerRankDynamically,paginationQueryBuyerRankByCondition,insertBuyerRank,listBuyerRankByCondition,deleteBuyerRankByCondition,updateBuyerRank&prompt=dubbo&revision=1.0.0&version=1.0.0>
2011-12-26 16:38:41,441 INFO [com.alibaba.dubbo.config.AbstractConfig] - <Register dubbo service com.alibaba.intl.biz.wsbuyer.share.interfaces.WsBuyerRankRemoteService url dubbo://10.17.12.132:7018/com.alibaba.intl.biz.wsbuyer.share.interfaces.WsBuyerRankRemoteService?anyhost=true&application=escrow&dubbo=2.0.8-7&exported=false&interface=com.alibaba.intl.biz.wsbuyer.share.interfaces.WsBuyerRankRemoteService&methods=listBuyerRankByBuyerSeqs,deleteBuyerRankByBuyerSeqs,updateBuyerRankDynamically,paginationQueryBuyerRankByCondition,insertBuyerRank,listBuyerRankByCondition,deleteBuyerRankByCondition,updateBuyerRank&prompt=dubbo&revision=1.0.0&version=1.0.0 to registry registry://10.20.154.177:9010/com.alibaba.dubbo.registry.RegistryService?registry=remote>
2011-12-26 16:38:42,362 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - <Destroying singletons in {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [com.alibaba.dubbo.config.RegistryConfig,protocolConfigPort,com.alibaba.intl.biz.wsbuyer.share.interfaces.WsBuyerRankRemoteService,wsBuyerRankRemoteService]; root of BeanFactory hierarchy}>
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.alibaba.intl.biz.wsbuyer.share.interfaces.WsBuyerRankRemoteService': Invocation of init method failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Failed to bind NettyServer on /10.17.12.132:7018, cause: Failed to bind to: /0.0.0.0:7018
Caused by: com.alibaba.dubbo.rpc.RpcException: Failed to bind NettyServer on /10.17.12.132:7018, cause: Failed to bind to: /0.0.0.0:7018
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.initServer(DubboProtocol.java:253)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.export(DubboProtocol.java:219)
at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:61)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:58)
at com.alibaba.dubbo.rpc.Protocol$Adpative.export(Protocol$Adpative.java)
at com.alibaba.dubbo.registry.support.RegistryProtocol.export(RegistryProtocol.java:83)
at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:59)
at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:56)
at com.alibaba.dubbo.rpc.Protocol$Adpative.export(Protocol$Adpative.java)
at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:421)
at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:190)
at com.alibaba.dubbo.config.ServiceConfig.export(ServiceConfig.java:107)
at com.alibaba.dubbo.config.spring.ServiceBean.afterPropertiesSet(ServiceBean.java:169)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1057)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1024)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:140)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:236)
at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:699)
at org.springframework.context.support.AbstractApplicationContext.registerListeners(AbstractApplicationContext.java:519)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:343)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:92)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:77)
at dubbo.TestStartService.init(TestStartService.java:18)
at dubbo.TestStartService.main(TestStartService.java:24)
Caused by: com.alibaba.dubbo.remoting.RemotingException: Failed to bind NettyServer on /10.17.12.132:7018, cause: Failed to bind to: /0.0.0.0:7018
at com.alibaba.dubbo.remoting.transport.AbstractServer.<init>(AbstractServer.java:74)
at com.alibaba.dubbo.remoting.transport.netty.NettyServer.<init>(NettyServer.java:62)
at com.alibaba.dubbo.remoting.transport.netty.NettyTransporter.bind(NettyTransporter.java:35)
at com.alibaba.dubbo.remoting.Transporter$Adpative.bind(Transporter$Adpative.java)
at com.alibaba.dubbo.remoting.Transporters.bind(Transporters.java:48)
at com.alibaba.dubbo.remoting.exchange.support.header.HeaderExchanger.bind(HeaderExchanger.java:42)
at com.alibaba.dubbo.remoting.exchange.Exchangers.bind(Exchangers.java:63)
at com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol.initServer(DubboProtocol.java:251)
2011-12-26 16:38:42,383 INFO [com.alibaba.dubbo.config.AbstractConfig] - <Run shutdown hook now.>
2011-12-26 16:38:42,383 INFO [com.alibaba.dubbo.registry.support.AbstractRegistryFactory] - <Close all registries []>
... 27 more
Caused by: org.jboss.netty.channel.ChannelException: Failed to bind to: /0.0.0.0:7018
at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:303)
at com.alibaba.dubbo.remoting.transport.netty.NettyServer.doOpen(NettyServer.java:92)
at com.alibaba.dubbo.remoting.transport.AbstractServer.<init>(AbstractServer.java:69)
... 34 more
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:137)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:77)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.bind(NioServerSocketPipelineSink.java:148)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.handleServerSocket(NioServerSocketPipelineSink.java:100)
at org.jboss.netty.channel.socket.nio.NioServerSocketPipelineSink.eventSunk(NioServerSocketPipelineSink.java:74)
at org.jboss.netty.channel.Channels.bind(Channels.java:468)
at org.jboss.netty.channel.AbstractChannel.bind(AbstractChannel.java:200)
at org.jboss.netty.bootstrap.ServerBootstrap$Binder.channelOpen(ServerBootstrap.java:348)
at org.jboss.netty.channel.Channels.fireChannelOpen(Channels.java:176)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannel.<init>(NioServerSocketChannel.java:85)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:142)
at org.jboss.netty.channel.socket.nio.NioServerSocketChannelFactory.newChannel(NioServerSocketChannelFactory.java:90)
at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:282)
... 36 more


  评论这张
 
阅读(2038)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2016