You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "hexinwei1 (via GitHub)" <gi...@apache.org> on 2024/09/03 10:54:10 UTC

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

hexinwei1 opened a new issue, #14620:
URL: https://github.com/apache/dubbo/issues/14620

   ### Pre-check
   
   - [X] I am sure that all the content I provide is in English.
   
   
   ### Search before asking
   
   - [X] I had searched in the [issues](https://github.com/apache/dubbo/issues?q=is%3Aissue) 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?
   
   - [X] Yes I am willing to submit a pull request on my own!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


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

Posted by "hexinwei1 (via GitHub)" <gi...@apache.org>.
hexinwei1 closed issue #14620: [Bug] java.lang.IllegalStateException: Duplicate extension org.apache.dubbo.common.extension.ExtensionInjector name spi
URL: https://github.com/apache/dubbo/issues/14620


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


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

Posted by "hexinwei1 (via GitHub)" <gi...@apache.org>.
hexinwei1 commented on issue #14620:
URL: https://github.com/apache/dubbo/issues/14620#issuecomment-2327726704

   邮件已收到!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


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

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ commented on issue #14620:
URL: https://github.com/apache/dubbo/issues/14620#issuecomment-2327726289

   You should use `org.apache.dubbo.extensions:dubbo-serialization-protobuf` instead
   
   ```xml
   <dependency>
       <groupId>org.apache.dubbo.extensions</groupId>
       <artifactId>dubbo-serialization-protobuf</artifactId>
       <version>3.2.0</version>
   </dependency>
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


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

Posted by "wcy666103 (via GitHub)" <gi...@apache.org>.
wcy666103 commented on issue #14620:
URL: https://github.com/apache/dubbo/issues/14620#issuecomment-2421601623

   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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


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

Posted by "hexinwei1 (via GitHub)" <gi...@apache.org>.
hexinwei1 commented on issue #14620:
URL: https://github.com/apache/dubbo/issues/14620#issuecomment-2421602969

   邮件已收到!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org