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.

No such extension com.alibaba.dubbo.rpc.Protocol by name dubbo

See original GitHub issue

测试 com.alibaba.dubbo.examples.merge.MergeProvider.main(MergeProvider.java:29) 出现以下BUG 更换 protocal 为 rmi 等或者直接让dubbo取用默认protoal 依然报错。

Exception in thread "main" java.lang.IllegalStateException: No such extension com.alibaba.dubbo.rpc.Protocol by name dubbo
	at com.alibaba.dubbo.common.extension.ExtensionLoader.findException(ExtensionLoader.java:489)
	at com.alibaba.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:496)
	at com.alibaba.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:317)
	at com.alibaba.dubbo.config.ServiceConfig.findConfigedPorts(ServiceConfig.java:623)
	at com.alibaba.dubbo.config.ServiceConfig.doExportUrlsFor1Protocol(ServiceConfig.java:464)
	at com.alibaba.dubbo.config.ServiceConfig.doExportUrls(ServiceConfig.java:351)
	at com.alibaba.dubbo.config.ServiceConfig.doExport(ServiceConfig.java:312)
	at com.alibaba.dubbo.config.ServiceConfig.export(ServiceConfig.java:211)
	at com.alibaba.dubbo.config.spring.ServiceBean.onApplicationEvent(ServiceBean.java:122)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:167)
	at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393)
	at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347)
	at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:883)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:546)
	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
	at com.alibaba.dubbo.examples.merge.MergeProvider.main(MergeProvider.java:29)

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
blackdancerscommented, Jul 30, 2018

我把dubbo版本升级到2.6.1,运行正常,还有个原因可能是我添加了

<!--dubbo依赖-->
		<dependency>
			<groupId>com.alibaba</groupId>
			<artifactId>dubbo</artifactId>
		</dependency>
		<dependency>
			<groupId>org.apache.curator</groupId>
			<artifactId>curator-framework</artifactId>
		</dependency>
		<dependency>
			<groupId>org.apache.curator</groupId>
			<artifactId>curator-recipes</artifactId>
		</dependency>

@web1992

0reactions
ted005commented, Dec 17, 2018
@Bean
    public ProtocolConfig protocolConfig() {
        ProtocolConfig protocolConfig = new ProtocolConfig();
        protocolConfig.setPort(20880);
        protocolConfig.setName("dubbo");
        return protocolConfig;
    }
Read more comments on GitHub >

github_iconTop Results From Across the Web

Apache Dubbo 3.2.0-beta.2 API - javadoc.io
FutureAdapter was in dubbo-rpc-dubbo module, considering some users will use this class directly, keep the package not changed. org.apache.dubbo.rpc.protocol.
Read more >
Rpc框架dubbo - HelloWorld开发者社区
getProtocol(); if (var4 == null) { throw new IllegalStateException("Fail to get extension(com.alibaba.dubbo.rpc.Protocol) name from url(" + ...
Read more >
出错了,解决不了。希望有哥哥帮忙可以看看。java.lang ...
<h1>HTTP Status 500 - java.lang.IllegalStateException: No such extension com.alibaba.dubbo.validation.Validation by. name ture</h1>.
Read more >
No such extension org.apache.dubbo.metadata.report ...
getWrapper(Wrapper.java:121) at org.apache.dubbo.rpc.proxy.javassist.JavassistProxyFactory.getInvoker(JavassistProxyFactory.java:41) at ...
Read more >
dubbo.protocol.name - CSDN
IllegalStateException: No such extension com.alibaba.dubbo.rpc.Protocol by name dims, possible causes: (1) com.alibaba.dubbo.rpc.protocol.webservice.
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