Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问下例子中zookeeper创建节点报了个错是什么原因,百度了下没用找到合适的解决方法 #2

Open
liaohanjie opened this issue Mar 16, 2018 · 4 comments

Comments

@liaohanjie
Copy link

org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /registry/data
at org.apache.zookeeper.KeeperException.create(KeeperException.java:114)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:54)
at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:786)
at me.anduo.rpc.server.core.ServiceRegistry.createNode(ServiceRegistry.java:74)
at me.anduo.rpc.server.core.ServiceRegistry.register(ServiceRegistry.java:44)
at me.anduo.rpc.server.core.RpcServer.afterPropertiesSet(RpcServer.java:94)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1573)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1511)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:636)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:934)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)
at me.anduo.rpc.server.core.RpcBootstrap.main(RpcBootstrap.java:12)

@SilenRY
Copy link

SilenRY commented Nov 25, 2020

兄弟,你的这个问题解决了吗,我也遇到了

@superxp
Copy link

superxp commented Sep 2, 2021

兄弟,你们必须先自己去ZK创建REGISTER 目录 @liaohanjie @SilenRY

@zealrussell
Copy link

兄弟,你们必须先自己去ZK创建REGISTER 目录 @liaohanjie @SilenRY

兄弟,你最终运行成功了吗

@cmgyqjj
Copy link

cmgyqjj commented Jul 17, 2023

在RpcHandler中response默认返回error=null,但是在RpcProxy中,使用response.isError()来判断异常会导致正常执行也出错,不知道你是不是因为这个原因没有运行成功
@zealrussell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants