-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
[Bug]: Nacos reports an error when using nacos-postgresql-datasource-plugin-ext: java.lang.ClassCastException #12022
Labels
Comments
If it needs to be fixed, please assign it to me |
mikolls
changed the title
Nacos reports an error when using nacos-postgresql-datasource-plugin-ext: java.lang.ClassCastException
[Bug]:Nacos reports an error when using nacos-postgresql-datasource-plugin-ext: java.lang.ClassCastException
Apr 24, 2024
mikolls
changed the title
[Bug]:Nacos reports an error when using nacos-postgresql-datasource-plugin-ext: java.lang.ClassCastException
[Bug]: Nacos reports an error when using nacos-postgresql-datasource-plugin-ext: java.lang.ClassCastException
Apr 24, 2024
I remember this problem has been fixed in new version. Can you try new version? |
mikolls
pushed a commit
to mikolls/nacos
that referenced
this issue
Apr 25, 2024
mikolls
added a commit
to mikolls/nacos
that referenced
this issue
Apr 25, 2024
mikolls
added a commit
to mikolls/nacos
that referenced
this issue
Apr 30, 2024
mikolls
added a commit
to mikolls/nacos
that referenced
this issue
May 2, 2024
mikolls
added a commit
to mikolls/nacos
that referenced
this issue
May 2, 2024
mikolls
added a commit
to mikolls/nacos
that referenced
this issue
May 2, 2024
mikolls
added a commit
to mikolls/nacos
that referenced
this issue
May 6, 2024
mikolls
added a commit
to mikolls/nacos
that referenced
this issue
May 6, 2024
KomachiSion
pushed a commit
that referenced
this issue
May 15, 2024
#12031) * [ISSUE#12022] Fix nacos datasource plugin ClassCastException bug (#12022) * [ISSUE#12022] Fix nacos datasource plugin ClassCastException bug (#12022) * [ISSUE#12022] Fix nacos datasource plugin ClassCastException bug (#12022) * [ISSUE#12022] Fix nacos datasource plugin ClassCastException bug (#12022) * [ISSUE#12022] Fix MapperManagerTest test (#12022) * [ISSUE#12022] Fix MapperManagerTest test (#12022)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
An error occurs when starting with the PostgreSQL plugin:java.lang.ClassCastException: com.sun.proxy.$Proxy114 cannot be cast to com.alibaba.nacos.plugin.datasource.mapper.Mapper
How to Reproduce
nacos.plugin.datasource.log.enabled=true
nacos.plugin.datasource.log.enabled=true
, the code will go through this part of the logic:But in fact, the interface cannot be obtained here
You can see that ConfigInfoMapperByPostgresql does not implement any interface
The one that implements the interface is ConfigInfoMapperByMySql
7. Therefore, only when using the database plugin and setting
nacos.plugin.datasource.log.enabled=true
will an error occur, whereas Nacos’ built-in MySQL and Derby do not have this error.Desktop (please complete the following information):
Additional context
Complete stack information
log.txt
The text was updated successfully, but these errors were encountered: