How can we help you today? How can we help you today?
superdede88
Hi Jon, Thanks for the replay. Here are CLI call results with the latest version (only command with no placeholders succeed) and with version 9 (works fine). As you will see, with one or two placeholders, the error is : "Unable to parse command line params.". from three placeholders, the error becomes "java.lang.ClassCastException: class java.lang.String cannot be cast to class java.util.Map (java.lang.String and java.util.Map are in module java.base of loader 'bootstrap')" Tests with version 10.17.2 : scylla:~ ngader$ cd Applications/flyway-10.17.2/ scylla:flyway-10.17.2 ngader$ ./flyway -url="jdbc:postgresql://localhost:5432/lexsys?useSSL=false" -user="postgres" -password="****" -schemas="core" -locations="filesystem:$HOME/Projets/Lexsys/lexsys-back-end/lexsys-back-end-ejb/src/main/static-resources/db/migration/schema/core" "validate" Flyway Community Edition 10.17.2 by Redgate Flyway permit on disk is expired and cannot be refreshed automatically because there is no refresh token on disk. Please rerun auth No Flyway license detected for this user - using Community Edition. If you expected a Teams/Enterprise license then please add a Flyway license to your account and rerun auth. Alternatively, you can run auth -logout to remove your unlicensed permit on disk See release notes here: https://rd.gt/416ObMi Database: jdbc:postgresql://localhost:5432/lexsys (PostgreSQL 15.2) Successfully validated 7 migrations (execution time 00:00.036s) scylla:flyway-10.17.2 ngader$ ./flyway -url="jdbc:postgresql://localhost:5432/lexsys?useSSL=false" -user="postgres" -password="****" -schemas="core" -locations="filesystem:$HOME/Projets/Lexsys/lexsys-back-end/lexsys-back-end-ejb/src/main/static-resources/db/migration/schema/core" -placeholders.lexsys.super.user="admin" "validate" ERROR: Unable to parse command line params. scylla:flyway-10.17.2 ngader$ ./flyway -url="jdbc:postgresql://localhost:5432/lexsys?useSSL=false" -user="postgres" -password="****" -schemas="core" -locations="filesystem:$HOME/Projets/Lexsys/lexsys-back-end/lexsys-back-end-ejb/src/main/static-resources/db/migration/schema/core" -placeholders.lexsys.super.user="admin" -placeholders.lexsys.language="fr" "validate" ERROR: Unable to parse command line params. scylla:flyway-10.17.2 ngader$ ./flyway -url="jdbc:postgresql://localhost:5432/lexsys?useSSL=false" -user="postgres" -password="****" -schemas="core" -locations="filesystem:$HOME/Projets/Lexsys/lexsys-back-end/lexsys-back-end-ejb/src/main/static-resources/db/migration/schema/core" -placeholders.lexsys.super.user="admin" -placeholders.lexsys.language="fr" -placeholders.lexsys.language.name="fr" "validate" ERROR: java.lang.ClassCastException: class java.lang.String cannot be cast to class java.util.Map (java.lang.String and java.util.Map are in module java.base of loader 'bootstrap') Tests with version 9.22.3 : scylla:~ ngader$ cd Applications/flyway-9.22.3/ scylla:flyway-9.22.3 ngader$ ./flyway -url="jdbc:postgresql://localhost:5432/lexsys?useSSL=false" -user="postgres" -password="****" -schemas="core" -locations="filesystem:$HOME/Projets/Lexsys/lexsys-back-end/lexsys-back-end-ejb/src/main/static-resources/db/migration/schema/core" "validate" WARNING: This version of Flyway is out of date. Upgrade to Flyway 10.17.2: https://rd.gt/3rXiSlV Flyway Community Edition 9.22.3 by Redgate See release notes here: https://rd.gt/416ObMi Database: jdbc:postgresql://localhost:5432/lexsys (PostgreSQL 15.2) Successfully validated 7 migrations (execution time 00:00.027s) scylla:flyway-9.22.3 ngader$ ./flyway -url="jdbc:postgresql://localhost:5432/lexsys?useSSL=false" -user="postgres" -password="****" -schemas="core" -locations="filesystem:$HOME/Projets/Lexsys/lexsys-back-end/lexsys-back-end-ejb/src/main/static-resources/db/migration/schema/core" -placeholders.lexsys.super.user="admin" "validate" WARNING: This version of Flyway is out of date. Upgrade to Flyway 10.17.2: https://rd.gt/3rXiSlV Flyway Community Edition 9.22.3 by Redgate See release notes here: https://rd.gt/416ObMi Database: jdbc:postgresql://localhost:5432/lexsys (PostgreSQL 15.2) Successfully validated 7 migrations (execution time 00:00.026s) scylla:flyway-9.22.3 ngader$ ./flyway -url="jdbc:postgresql://localhost:5432/lexsys?useSSL=false" -user="postgres" -password="****" -schemas="core" -locations="filesystem:$HOME/Projets/Lexsys/lexsys-back-end/lexsys-back-end-ejb/src/main/static-resources/db/migration/schema/core" -placeholders.lexsys.super.user="admin" -placeholders.lexsys.language="fr" "validate" WARNING: This version of Flyway is out of date. Upgrade to Flyway 10.17.2: https://rd.gt/3rXiSlV Flyway Community Edition 9.22.3 by Redgate See release notes here: https://rd.gt/416ObMi Database: jdbc:postgresql://localhost:5432/lexsys (PostgreSQL 15.2) Successfully validated 7 migrations (execution time 00:00.023s) scylla:flyway-9.22.3 ngader$ ./flyway -url="jdbc:postgresql://localhost:5432/lexsys?useSSL=false" -user="postgres" -password="****" -schemas="core" -locations="filesystem:$HOME/Projets/Lexsys/lexsys-back-end/lexsys-back-end-ejb/src/main/static-resources/db/migration/schema/core" -placeholders.lexsys.super.user="admin" -placeholders.lexsys.language="fr" -placeholders.lexsys.language.name="fr" "validate" WARNING: This version of Flyway is out of date. Upgrade to Flyway 10.17.2: https://rd.gt/3rXiSlV Flyway Community Edition 9.22.3 by Redgate See release notes here: https://rd.gt/416ObMi Database: jdbc:postgresql://localhost:5432/lexsys (PostgreSQL 15.2) Successfully validated 7 migrations (execution time 00:00.022s) / comments
Hi Jon,Thanks for the replay.Here are CLI call results with the latest version (only command with no placeholders succeed) and with version 9 (works fine).As you will see, with one or two placehold...
0 votes
Hi Jon, I don't use configuration files, I give all parameters on command line ! I don't think that environment variables are a problem in version 10 because if I don't put placeholders everything works fine ! Best regards. / comments
Hi Jon,I don't use configuration files, I give all parameters on command line !I don't think that environment variables are a problem in version 10 because if I don't put placeholders everything wo...
0 votes