question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

NacosRegistry instance error

See original GitHub issue

Your question

客户端使用nacos发现服务,启动抛出以下异常,麻烦大佬给看看!谢谢!

2019-04-24 15:43:22.950 ERROR [main][?:?]:[ | ]Uncaught Exception in thread 'main’com.alipay.sofa.rpc.core.exception.SofaRpcRuntimeException: create com.alipay.sofa.rpc.registry.nacos.NacosRegistry instance error at com.alipay.sofa.rpc.ext.ExtensionClass.getExtInstance(ExtensionClass.java:115) at com.alipay.sofa.rpc.registry.RegistryFactory.getRegistry(RegistryFactory.java:73) at com.alipay.sofa.rpc.bootstrap.DefaultConsumerBootstrap.subscribeFromRegistries(DefaultConsumerBootstrap.java:327) at com.alipay.sofa.rpc.bootstrap.DefaultConsumerBootstrap.subscribe(DefaultConsumerBootstrap.java:261) at com.alipay.sofa.rpc.client.AbstractCluster.init(AbstractCluster.java:144) at com.alipay.sofa.rpc.bootstrap.DefaultConsumerBootstrap.refer(DefaultConsumerBootstrap.java:152) at com.alipay.sofa.rpc.config.ConsumerConfig.refer(ConsumerConfig.java:925)

配置: “protocol”: “nacos”, “address”: “127.0.0.1:8848”

Your scenes

describe your use scenes (why need this feature)

Your advice

describe the advice or solution you’d like

Environment

  • SOFARPC version: 引入的:sofa-rpc-all 版本:5.5.2
  • JVM version (e.g. java -version): JDK1.8
  • OS version (e.g. uname -a): MAC 10.12.3
  • Maven version:
    apache-maven-3.5.2
  • IDE version:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
khotyncommented, Apr 24, 2019

@leizhiyuan Can we improve the document ? Remind users to add corresponding dependencies.

1reaction
leizhiyuancommented, Apr 24, 2019

ok, nacos 作为provided 依赖。使用需要用户自己引入。

Read more comments on GitHub >

github_iconTop Results From Across the Web

NacosRegistry instance error · Issue #590 · sofastack/sofa-rpc
SofaRpcRuntimeException: create com.alipay.sofa.rpc.registry.nacos.NacosRegistry instance error at com.alipay.sofa.rpc.ext.ExtensionClass.
Read more >
org.springframework.cloud.alibaba.nacos.registry ... - Tabnine
How to use. getMetadata. method. in. org.springframework.cloud.alibaba.nacos.registry.NacosRegistration · Best Java code snippets using org.springframework.cloud ...
Read more >
Alibaba Cloud Service Mesh:CreateServiceMesh
CreateServiceMesh,Alibaba Cloud Service Mesh:Creates an Alibaba Cloud Service Mesh (ASM) instance. The operation that you want to perform.
Read more >
微服务注册到nacos失败,failed to req API ... - 华为云开发者联盟
错误代码:2022-01-28 11:56:50.384 ERROR 16012 --- [main] c.a.c.n.registry.NacosServiceRegistry: nacos registry, studentserver register ...
Read more >
[dubbo] branch 3.1 updated: Adding error code and replacing ...
This is an automated email from the ASF dual-hosted git repository. albumenj pushed a commit to branch 3.1 in repository ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found