You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "JoyfulAndSpeedyMan (via GitHub)" <gi...@apache.org> on 2023/07/27 02:17:57 UTC

[GitHub] [dubbo] JoyfulAndSpeedyMan opened a new issue, #12801: 不兼容java 9+的模块化系统

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

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ## Ask your question here
   我构建的是一个spring-boot应用,下面是使用到的版本
   jdk: 17
   dubbo: 3.2.0
   spring-boot: 3.1.2
   
   当我尝试编译时,会报以下错误,看起来应该是由于模块化系统不允许一个包存在于两个模块中导致的,请问有什么解决方案吗?
   ```
   错误: 未命名的模块同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 未命名的模块同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 spring.boot 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 spring.boot 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 spring.boot.autoconfigure 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 spring.boot.autoconfigure 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 spring.context 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 spring.context 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 spring.beans 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 spring.beans 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 spring.core 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 spring.core 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 spring.boot.starter.data.jpa 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 spring.boot.starter.data.jpa 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 spring.boot.starter.aop 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 spring.boot.starter.aop 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 spring.boot.starter.jdbc 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 spring.boot.starter.jdbc 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 spring.boot.starter 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 spring.boot.starter 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 spring.boot.starter.logging 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 spring.boot.starter.logging 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 org.apache.logging.slf4j 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 org.apache.logging.slf4j 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 jul.to.slf4j 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 jul.to.slf4j 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 spring.data.jpa 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 spring.data.jpa 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 com.codahale.metrics 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 com.codahale.metrics 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.buffer 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.buffer 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.codec 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.codec 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.codec.dns 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.codec.dns 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.codec.haproxy 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.codec.haproxy 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.codec.http 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.codec.http 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.codec.http2 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.codec.http2 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.codec.memcache 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.codec.memcache 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.codec.mqtt 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.codec.mqtt 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.codec.redis 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.codec.redis 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.codec.smtp 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.codec.smtp 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.codec.socks 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.codec.socks 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.codec.stomp 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.codec.stomp 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.codec.xml 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.codec.xml 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.common 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.common 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.handler 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.handler 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.handler.proxy 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.handler.proxy 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.handler.ssl.ocsp 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.handler.ssl.ocsp 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.resolver 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.resolver 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.resolver.dns 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.resolver.dns 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.transport 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.transport 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.transport.rxtx 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.transport.rxtx 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.transport.sctp 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.transport.sctp 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.transport.udt 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.transport.udt 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.resolver.dns.classes.macos 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.resolver.dns.classes.macos 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.transport.unix.common 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.transport.unix.common 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.transport.classes.epoll 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.transport.classes.epoll 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 io.netty.transport.classes.kqueue 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 io.netty.transport.classes.kqueue 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 spring.aop 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 spring.aop 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 spring.aspects 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 spring.aspects 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 spring.orm 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 spring.orm 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 spring.jdbc 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 spring.jdbc 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 spring.tx 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 spring.tx 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 spring.expression 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 spring.expression 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 spring.jcl 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 spring.jcl 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   错误: 模块 org.aspectj.weaver 同时从 io.netty.codec 和 io.netty.codec.xml 读取程序包 io.netty.handler.codec.xml
   错误: 模块 org.aspectj.weaver 同时从 io.netty.handler 和 io.netty.handler.ssl.ocsp 读取程序包 io.netty.handler.ssl.ocsp
   100 个错误
   仅显示前 100 个错误(共 121 个);若要查看更多错误,请使用 -Xmaxerrs
   ```
   


-- 
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


[GitHub] [dubbo] AlbumenJ commented on issue #12801: 不兼容java 9+的模块化系统

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

   这个看起来好像是 netty 的问题呀,是不是先问下 netty 社区那边呢


-- 
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


[GitHub] [dubbo] JoyfulAndSpeedyMan commented on issue #12801: 不兼容java 9+的模块化系统

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

   > 这个看起来好像是 netty 的问题呀,是不是先问下 netty 社区那边呢
   
   我看dubbo 3.2开始已经支持了jdk 17,请问在dubbo开发调试的时候有没有遇到过类似的问题呢?不过这个确实是netty报错,我去他们问下先


-- 
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


[GitHub] [dubbo] JoyfulAndSpeedyMan commented on issue #12801: 不兼容java 9+的模块化系统

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

   对了,我使用的构建工具是gradle-8.2.1,直接使用spring initializer创建的项目,当加入dubbo相关依赖时就会报错


-- 
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


[GitHub] [dubbo] AlbumenJ commented on issue #12801: 不兼容java 9+的模块化系统

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

   > > 这个看起来好像是 netty 的问题呀,是不是先问下 netty 社区那边呢
   > 
   > 我看dubbo 3.2开始已经支持了jdk 17,请问在dubbo开发调试的时候有没有遇到过类似的问题呢?不过这个确实是netty报错,我去他们问下先
   
   默认的话我们是不配置模块化参数的


-- 
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


[GitHub] [dubbo] JoyfulAndSpeedyMan commented on issue #12801: 不兼容java 9+的模块化系统

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

   有人可以回答我的问题嘛?不胜感激


-- 
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] 不兼容java 9+的模块化系统 [dubbo]

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

   No news is good news. Please feel free to create a new issue if you have any question.


-- 
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] 不兼容java 9+的模块化系统 [dubbo]

Posted by "AlbumenJ (via GitHub)" <gi...@apache.org>.
AlbumenJ closed issue #12801: 不兼容java 9+的模块化系统
URL: https://github.com/apache/dubbo/issues/12801


-- 
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