Open liaohanjie opened 6 years ago
兄弟,你的这个问题解决了吗,我也遇到了
兄弟,你们必须先自己去ZK创建REGISTER 目录 @liaohanjie @SilenRY
兄弟,你们必须先自己去ZK创建REGISTER 目录 @liaohanjie @SilenRY
兄弟,你最终运行成功了吗
在RpcHandler中response默认返回error=null,但是在RpcProxy中,使用response.isError()来判断异常会导致正常执行也出错,不知道你是不是因为这个原因没有运行成功 @zealrussell
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)