You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "falcon-jin (via GitHub)" <gi...@apache.org> on 2023/05/30 01:28:45 UTC

[GitHub] [dubbo] falcon-jin opened a new issue, #12426: springboot3 开启validation检验 报错 springboot3适配问题

falcon-jin opened a new issue, #12426:
URL: https://github.com/apache/dubbo/issues/12426

   <!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.2.2
   * Operating System version: linux
   * Java version: 17
   
   ### Steps to reproduce this issue
   
   1. springboot3适配问题
   
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Behavior
   
   <!-- What do you expect from the above steps?-->
   
   ### Actual Behavior
   
   ![image](https://github.com/apache/dubbo/assets/48880836/dca5bc4b-3c4b-465a-944a-e0a0a91c70a4)
   
   If there is an exception, please attach the exception trace:
   
   ```
   Caused by: java.lang.NoClassDefFoundError: javax/validation/ConstraintViolationException
   	at org.apache.dubbo.validation.support.jvalidation.JValidation.createValidator(JValidation.java:37)
   	at org.apache.dubbo.validation.support.AbstractValidation.getValidator(AbstractValidation.java:43)
   	at org.apache.dubbo.validation.Validation$Adaptive.getValidator(Validation$Adaptive.java)
   	at org.apache.dubbo.validation.filter.ValidationFilter.invoke(ValidationFilter.java:88)
   	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:331)
   	at com.alibaba.dubbo.rpc.Invoker$CompatibleInvoker.invoke(Invoker.java:75)
   	at io.seata.integration.dubbo.alibaba.AlibabaDubboTransactionPropagationFilter.invoke(AlibabaDubboTransactionPropagationFilter.java:45)
   	at com.alibaba.dubbo.rpc.Filter.invoke(Filter.java:31)
   	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:331)
   	at com.alibaba.csp.sentinel.adapter.dubbo.SentinelDubboConsumerFilter.syncInvoke(SentinelDubboConsumerFilter.java:82)
   	at com.alibaba.csp.sentinel.adapter.dubbo.SentinelDubboConsumerFilter.invoke(SentinelDubboConsumerFilter.java:66)
   	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:331)
   	at org.apache.dubbo.seata.SeataTransactionPropagationConsumerFilter.invoke(SeataTransactionPropagationConsumerFilter.java:53)
   	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:331)
   	at net.falcon.dubbo.filter.DubboRequestFilter.invoke(DubboRequestFilter.java:43)
   	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:331)
   	at com.alibaba.csp.sentinel.adapter.dubbo.DubboAppContextFilter.invoke(DubboAppContextFilter.java:43)
   	at org.apache.dubbo.rpc.cluster.filter.FilterChainBuilder$CopyOfFilterChainNode.invoke(FilterChainBuilder.java:331)
   	at cn.dev33.satoken.context.dubbo.filter.SaTokenDubboConsumerFilter.invoke(SaTokenDubboConsumerFilter.java:42)
   
   ```
   


-- 
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] songxiaosheng commented on issue #12426: springboot3 开启validation检验 报错 springboot3适配问题

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

   需要适配下JDK17,如果缺失类型可以临时引入javax相关依赖


-- 
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] springboot3 开启validation检验 报错 springboot3适配问题 [dubbo]

Posted by "CrazyHZM (via GitHub)" <gi...@apache.org>.
CrazyHZM closed issue #12426: springboot3 开启validation检验 报错 springboot3适配问题
URL: https://github.com/apache/dubbo/issues/12426


-- 
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] jackieyaun commented on issue #12426: springboot3 开启validation检验 报错 springboot3适配问题

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

   可以试试进行全局配置
   dubbo.consumer.validation=jvalidationNew
   或者在注解中加入validation值为jvalidationNew


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