-
Notifications
You must be signed in to change notification settings - Fork 176
Description
当用打包出来的数据源插件时,运行在nacos2.5.1或3.1.0时,特别是达梦数据源插件,报ConfigInfoAggrMapperByMySql.class ClassNotFound,我看了最新naocs3.1.0的源码,在nacos-all -> nacos-plugin -> nacos-datasource-plugin -> com.alibaba.nacos.plugin.datasource.mapper 包中确实已经没有ConfigInfoAggrMapperByMySql这个类了
然后我把nacos2.4.3中的ConfigInfoAggrMapperByMySql及带的相关类复制到nacos 3.1.0的源码,编译不报错,运行报错:
Caused by: java.lang.Exception: [migrate] config_info namespace migrate pre check failed
at com.alibaba.nacos.config.server.service.ConfigMigrateService.namespaceMigratePreCheck(ConfigMigrateService.java:765)
at com.alibaba.nacos.config.server.service.ConfigMigrateService.doCheckNamespaceMigrate(ConfigMigrateService.java:519)
at com.alibaba.nacos.config.server.service.ConfigMigrateService.migrate(ConfigMigrateService.java:158)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMethod.invoke(InitDestroyAnnotationBeanPostProcessor.java:457)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMetadata.invokeInitMethods(InitDestroyAnnotationBeanPostProcessor.java:401)
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessBeforeInitialization(InitDestroyAnnotationBeanPostProcessor.java:219)
... 43 common frames omitted