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
MariaDB Connector 3.x results in "class [B cannot be cast to class java.lang.String" #2431
Comments
|
Also happens with current Quarkus |
|
Issue created over at MariaDB Jira: https://jira.mariadb.org/browse/CONJ-924 |
|
https://jira.mariadb.org/browse/CONJ-924 was fixed in MariaDB Connector/J, in yet to be released version 3.0.4. @kataggart This issue should be closed. (haven't tested it yet, though) |
|
@famod Thanks for the update on this issue. I've tested my use case now with 3.0.4-SNAPSHOT of maria db connector, but now I get another exception. This time, it seems to origin in liquibase itself: full stacktraceSo, there is something wrong - MariaDB connector doesn't return a String anymore.... liquibase/liquibase-core/src/main/java/liquibase/snapshot/jvm/ColumnSnapshotGenerator.java Line 468 in 12db931
|
|
|
|
@adangel can you confirm that we are good to close this issue on this end? If I follow the history correctly here, it looks like it's resolved now? Thanks! |
|
I'd rather wait, until MariaDB Connector/J version 3.0.4 is released. |
|
@kataggart The new release of mariadb connector/j is available now: https://github.com/mariadb-corporation/mariadb-connector-j/releases/tag/3.0.4 The problems with liquibase appear to be fixed now, so I'm closing this issue. |
|
Excellent thanks @adangel ! |
Just to confirm, I raised the original issue on the Liquibase forum that led to this ticket, I have built the new mariadb connector/j 3.0.4 and tested it against my database, it has fixed the "Unexpected datatype NULL" error, and also schema browsing in SquirrelSQL works. Thank you for all the work! |
Environment
Liquibase Version: 4.7.1
Liquibase Integration & Version: maven
Liquibase Extension(s) & Version: liquibase-percona 4.8.1-SNAPSHOT
Database Vendor & Version: MariaDB 10 + MariaDB Connector < 3.0.4
Operating System Type & Version: Linux
Description
In the liquibase-percona extension I use the snapshot feature (
SnapshotGeneratorFactory.getInstance().createSnapshot(...)) to determine existing foreign keys of a table.With MariaDB Connector 3.0.3 this results in an "java.lang.IllegalArgumentException: Unexpected datatype NULL".
The same problem is also described at https://forum.liquibase.org/t/fresh-install-giving-unusual-unexpected-datatype-null/6170
Here's the full stacktrace
This is the query, that is being executed by liquibase:
Steps To Reproduce
This shows up an an integration test that uses the "dropForeignKeyConstraint" change together with liquibase-percona.
See liquibase/liquibase-percona#180 and the build logs there.
The integration test is this: https://github.com/liquibase/liquibase-percona/tree/main/src/it/allChangesLiquibaseMariaDB just run with MariaDB Connecto 3.0.3 instead of 2.7.5.
Actual Behavior
Expected/Desired Behavior
The text was updated successfully, but these errors were encountered: