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

Dubbo provider.java的 java.lang.IllegalArgumentException 求大神指教

2014-11-07 09:30 561 查看
在运行Dubbo provider.java时 通过Zookeper时遇到以下问题

2014-11-07 09:17:34,397 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] - Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@2961116f: display name [org.springframework.context.support.ClassPathXmlApplicationContext@2961116f];
startup date [Fri Nov 07 09:17:34 CST 2014]; root of context hierarchy

2014-11-07 09:17:34,455 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [applicationContext.xml]

2014-11-07 09:17:34,706 INFO [com.alibaba.dubbo.common.logger.LoggerFactory] - using logger: com.alibaba.dubbo.common.logger.log4j.Log4jLoggerAdapter

2014-11-07 09:17:34,751 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] - Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@2961116f]: org.springframework.beans.factory.support.DefaultListableBeanFactory@165cee0b

2014-11-07 09:17:35,099 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@165cee0b: defining beans [demoService,first_provider,com.alibaba.dubbo.config.RegistryConfig,dubbo,com.unj.dubbotest.provider.DemoService];
root of factory hierarchy

2014-11-07 09:17:35,102 INFO [com.alibaba.dubbo.config.AbstractConfig] -  [DUBBO] The service ready on spring started. service: com.unj.dubbotest.provider.DemoService, dubbo version: 2.5.2, current host: 127.0.0.1

2014-11-07 09:17:35,289 INFO [com.alibaba.dubbo.config.AbstractConfig] -  [DUBBO] Export dubbo service com.unj.dubbotest.provider.DemoService to local registry, dubbo version: 2.5.2, current host: 127.0.0.1

2014-11-07 09:17:35,289 INFO [com.alibaba.dubbo.config.AbstractConfig] -  [DUBBO] Export dubbo service com.unj.dubbotest.provider.DemoService to url dubbo://192.168.1.130:20880/com.unj.dubbotest.provider.DemoService?anyhost=true&application=first_provider&dubbo=2.5.2&interface=com.unj.dubbotest.provider.DemoService&methods=sayHello,getUsers&pid=21220&side=provider×tamp=1415323055140,
dubbo version: 2.5.2, current host: 127.0.0.1

2014-11-07 09:17:35,289 INFO [com.alibaba.dubbo.config.AbstractConfig] -  [DUBBO] Register dubbo service com.unj.dubbotest.provider.DemoService url dubbo://192.168.1.130:20880/com.unj.dubbotest.provider.DemoService?anyhost=true&application=first_provider&dubbo=2.5.2&interface=com.unj.dubbotest.provider.DemoService&methods=sayHello,getUsers&pid=21220&side=provider×tamp=1415323055140
to registry registry://192.168.1.130:2181/com.alibaba.dubbo.registry.RegistryService?application=first_provider&dubbo=2.5.2&pid=21220®istry=zookeeper×tamp=1415323055112, dubbo version: 2.5.2, current host: 127.0.0.1

2014-11-07 09:17:35,504 INFO [com.alibaba.dubbo.remoting.transport.AbstractServer] -  [DUBBO] Start NettyServer bind /0.0.0.0:20880, export /192.168.1.130:20880, dubbo version: 2.5.2, current host: 127.0.0.1
Exception in thread "main" java.lang.IllegalArgumentException: Invalid registry store file C:\Users\wifuns00\.dubbo\dubbo-registry-192.168.1.130.cache, cause: Failed to create directory C:\Users\wifuns00\.dubbo!

    at com.alibaba.dubbo.registry.support.AbstractRegistry.<init>(AbstractRegistry.java:100)

    at com.alibaba.dubbo.registry.support.FailbackRegistry.<init>(FailbackRegistry.java:61)

    at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistry.<init>(ZookeeperRegistry.java:62)

    at com.alibaba.dubbo.registry.zookeeper.ZookeeperRegistryFactory.createRegistry(ZookeeperRegistryFactory.java:37)

    at com.alibaba.dubbo.registry.support.AbstractRegistryFactory.getRegistry(AbstractRegistryFactory.java:94)

    at com.alibaba.dubbo.registry.RegistryFactory$Adpative.getRegistry(RegistryFactory$Adpative.java)

    at com.alibaba.dubbo.registry.integration.RegistryProtocol.getRegistry(RegistryProtocol.java:190)

    at com.alibaba.dubbo.registry.integration.RegistryProtocol.export(RegistryProtocol.java:109)

    at com.alibaba.dubbo.rpc.protocol.ProtocolListenerWrapper.export(ProtocolListenerWrapper.java:54)

    at com.alibaba.dubbo.rpc.protocol.ProtocolFilterWrapper.export(ProtocolFilterWrapper.java:53)

    at com.alibaba.dubbo.rpc.Protocol$Adpative.export(Protocol$Adpative.java)

    at com.alibaba.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:485)

    at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:281)

    at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:242)

    at com.alibaba.dubbo.config.ServiceConfig.export(ServiceConfig.java:143)

    at com.alibaba.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:109)

    at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)

    at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)

    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)

    at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:274)

    at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:736)

    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:383)

    at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)

    at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)

    at com.unj.dubbotest.provider.impl.Provider.main(Provider.java:8)

2014-11-07 09:17:35,528 INFO [com.alibaba.dubbo.config.AbstractConfig] -  [DUBBO] Run shutdown hook now., dubbo version: 2.5.2, current host: 127.0.0.1

2014-11-07 09:17:35,529 INFO [com.alibaba.dubbo.registry.support.AbstractRegistryFactory] -  [DUBBO] Close all registries [], dubbo version: 2.5.2, current host: 127.0.0.1

2014-11-07 09:17:35,529 INFO [com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol] -  [DUBBO] Close dubbo server: /192.168.1.130:20880, dubbo version: 2.5.2, current host: 127.0.0.1

2014-11-07 09:17:35,529 INFO [com.alibaba.dubbo.remoting.transport.AbstractServer] -  [DUBBO] Close NettyServer bind /0.0.0.0:20880, export /192.168.1.130:20880, dubbo version: 2.5.2, current host: 127.0.0.1

2014-11-07 09:17:35,532 INFO [com.alibaba.dubbo.rpc.protocol.dubbo.DubboProtocol] -  [DUBBO] Unexport service: dubbo://192.168.1.130:20880/com.unj.dubbotest.provider.DemoService?anyhost=true&application=first_provider&dubbo=2.5.2&interface=com.unj.dubbotest.provider.DemoService&methods=sayHello,getUsers&pid=21220&side=provider×tamp=1415323055140,
dubbo version: 2.5.2, current host: 127.0.0.1

2014-11-07 09:17:35,532 INFO [com.alibaba.dubbo.rpc.protocol.injvm.InjvmProtocol] -  [DUBBO] Unexport service: injvm://127.0.0.1/com.unj.dubbotest.provider.DemoService?anyhost=true&application=first_provider&dubbo=2.5.2&interface=com.unj.dubbotest.provider.DemoService&methods=sayHello,getUsers&pid=21220&side=provider×tamp=1415323055140,
dubbo version: 2.5.2, current host: 127.0.0.1
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  dubbo zookeeper
相关文章推荐