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

2.3.0开启数据源sql日志启动报错的bug #11497

Closed
309283175 opened this issue Dec 12, 2023 · 0 comments
Closed

2.3.0开启数据源sql日志启动报错的bug #11497

309283175 opened this issue Dec 12, 2023 · 0 comments
Labels
kind/bug Category issues or prs related to bug. plugin
Milestone

Comments

@309283175
Copy link

use this config in application.properties

nacos.plugin.datasource.log.enabled=true

then start server
Application run failed with this Exp:
Caused by: java.lang.ClassCastException: com.sun.proxy.$Proxy110 cannot be cast to com.alibaba.nacos.plugin.datasource.proxy.MapperProxy

public class MapperProxy implements InvocationHandler {
    //private static final Map<String, MapperProxy> SINGLE_MAPPER_PROXY_MAP = new ConcurrentHashMap<>(16);
    private static final Map<String, Mapper> SINGLE_MAPPER_PROXY_MAP = new ConcurrentHashMap<>(16);
}

change MapperProxy to Mapper can solve this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Category issues or prs related to bug. plugin
Projects
None yet
Development

No branches or pull requests

3 participants