-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
NPE when replying "N" to report operation to Liquibase Hub #1711
Comments
Thanks for adding this issue @ilopmar. We will get this fixed soon. |
I just found out this is a duplicate of #1689, we are fixing it under that one that is slated for 4.3.2. |
@molivasdat Thanks for the update. Regarding my last comment:
Is this suppose to work? Is there any way to set any of those liquibase configuration properties? |
Try to set the liquibase.headless=false as a system property it will not prompt |
I had mistyped to @molivasdat , the property needs to be liquibase.headless=true, not false. We are in the process of improving how the global configurations like that can be managed, including adding support for environment variables and the liquibase.properties file from spring boot etc. For now, it is best set with a java system property if you are able to do that. |
Thanks! Using a system property works as a workaround :-) As I think you will release 4.3.2 soon I'll wait and the upgrade the Micronaut integration once you release the new version. Thanks again for your help! |
➤ Erzsebet Carmean commented: Iván López, thank you for writing such excellent reproduction steps and providing an example project. |
it could also be specified as |
Environment
Liquibase Version: 4.3.1
Liquibase Integration & Version: Micronaut
Liquibase Extension(s) & Version: N/A
Database Vendor & Version: All
Operating System Type & Version: Linux Mint 20.1
Description
I've tried to upgrade the Micronaut integration to Liquibase 4.3.1 (from 4.2.2) and when I start an application I see now a question:
If I answer "N" to that question there is a NPE.
The error doesn't happen when answering "Y" to the question.
Steps To Reproduce
git clone https://github.com/micronaut-graal-tests/micronaut-liquibase-graal
cd micronaut-liquibase-graal
git checkout liquibase-npe
./gradlew assemble
java -jar build/libs/micronaut-liquibase-graal-0.1-all.jar
Actual Behavior
The is a NPE:
Expected/Desired Behavior
It should work.
Additional Context
I've tried to workaround this problem by creating the file
src/main/resources/liquibase.properties
with contentliquibase.headless=true
but it is not working. I've also tried setting theLIQUIBASE_HEADLESS
environment variable but that doesn't work either. What am I missing here?Liquibase Internal QA Requirements
These tests are run on an internal Jenkins and results are not available to the wider community.
No automated tests are required for this ticket.
The text was updated successfully, but these errors were encountered: