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

[Bug] java.lang.IllegalStateException: Duplicate extension org.apache.dubbo.common.extension.ExtensionInjector name spi #14620

Closed
4 tasks done
hexinwei1 opened this issue Sep 3, 2024 · 4 comments
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage

Comments

@hexinwei1
Copy link

Pre-check

  • I am sure that all the content I provide is in English.

Search before asking

  • I had searched in the issues and found no similar issues.

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

dubbo java: 3.2.15 dubbo-serialization-protobuf:2.7.20 JDK: 17

Steps to reproduce this issue

Caused by: java.lang.IllegalStateException: Duplicate extension org.apache.dubbo.common.extension.ExtensionInjector name spi on org.apache.dubbo.common.extension.inject.SpiExtensionInjector and org.apache.dubbo.common.extension.factory.SpiExtensionFactory
at org.apache.dubbo.common.extension.ExtensionLoader.saveInExtensionClass(ExtensionLoader.java:1351)
at org.apache.dubbo.common.extension.ExtensionLoader.loadClass(ExtensionLoader.java:1296)
at org.apache.dubbo.common.extension.ExtensionLoader.loadResource(ExtensionLoader.java:1158)
... 27 more

at org.apache.dubbo.common.extension.ExtensionLoader.findException(ExtensionLoader.java:766)
at org.apache.dubbo.common.extension.ExtensionLoader.createExtension(ExtensionLoader.java:773)
at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:573)
at org.apache.dubbo.common.extension.ExtensionLoader.getExtension(ExtensionLoader.java:547)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
at java.base/java.util.TreeMap$KeySpliterator.forEachRemaining(TreeMap.java:3064)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682)
at org.apache.dubbo.common.extension.inject.AdaptiveExtensionInjector.initialize(AdaptiveExtensionInjector.java:51)
at org.apache.dubbo.common.extension.ExtensionLoader.initExtension(ExtensionLoader.java:910)
at org.apache.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:1434)
... 17 more

What you expected to happen

serialization: protobuf, Duplicate extension org.apache.dubbo.common.extension.ExtensionInjector name spi
spi=org.apache.dubbo.common.extension.factory.SpiExtensionFactory
spi=org.apache.dubbo.common.extension.inject.SpiExtensionInjector

Anything else

No response

Are you willing to submit a pull request to fix on your own?

  • Yes I am willing to submit a pull request on my own!

Code of Conduct

@hexinwei1 hexinwei1 added component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage labels Sep 3, 2024
@AlbumenJ
Copy link
Member

AlbumenJ commented Sep 4, 2024

You should use org.apache.dubbo.extensions:dubbo-serialization-protobuf instead

<dependency>
    <groupId>org.apache.dubbo.extensions</groupId>
    <artifactId>dubbo-serialization-protobuf</artifactId>
    <version>3.2.0</version>
</dependency>

@hexinwei1
Copy link
Author

hexinwei1 commented Sep 4, 2024 via email

@wcy666103
Copy link
Contributor

Some extension has been unified moved to the rep: https://github.com/apache/dubbo-spi-extensions

You can find the extension you want here.

Please close this issue.

@hexinwei1
Copy link
Author

hexinwei1 commented Oct 18, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/need-triage Need maintainers to triage type/need-triage Need maintainers to triage
Projects
Archived in project
Development

No branches or pull requests

3 participants