Liquibase - DB2 generateChangeLog error On ResultSet When dataOutputDirectory is specified
See original GitHub issueEnvironment
Liquibase Version: 4.0.1-beta
Liquibase Integration & Version: <Pick one: CLI, maven, gradle, spring boot, servlet, etc.>
Maven, CLI
Liquibase Extension(s) & Version:
Database Vendor & Version: DB2 11.1
Operating System Type & Version: Mac - Liquibase DB2 - Linux Docker
Description
Encountering error with regards to result set type when I pass dataOutputDirectory. If I don’t pass it, I get an outofmemory error due to the size of the data.
Steps To Reproduce
Run the following command and error will appear. It is very easy to reproduce as error happens everytime as long as I pass dataOutputDirectory parameter.
liquibase --changeLogFile=output.xml --username=db2inst1 --password=P@ssw0rd --url=jdbc:db2://192.168.6.165:50002/bluelace --classpath=db2jcc-11.1.jar --diffTypes=data --dataOutputDirectory=data generateChangeLog
Actual Behavior
liquibase --changeLogFile=output.xml --username=db2inst1 --password=P@ssw0rd --url=jdbc:db2://192.168.6.165:50002/testdb --classpath=db2jcc-11.1.jar --diffTypes=data --dataOutputDirectory=data generateChangeLog
Liquibase Community 4.0.0-beta1 by Datical
Starting Liquibase at 13:52:06 (version 4.0.0-beta1 #6 built at 2020-04-20 18:23+0000)
Unexpected error running Liquibase: java.lang.RuntimeException: java.lang.RuntimeException: liquibase.exception.UnexpectedLiquibaseException: com.ibm.db2.jcc.am.SqlException: [jcc][t4][10179][10900][3.71.22] This method should only be called on ResultSet objects that are scrollable (type TYPE_SCROLL_SENSITIVE or TYPE_SCROLL_INSENSITIVE). ERRORCODE=-4476, SQLSTATE=null
For more information, please use the --logLevel flag
Expected/Desired Behavior
Change log should have been generated
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
The changeLogFile must be specified error on Liquibase
I think the issue is that in your property file as specified in your pom.xml ...
Read more >Release Notes | Liquibase Docs
Fixes generate-changelog view comments for Postgres (DAT-9410) by @abrackx in #3403; Adds DefaultChangeExecListener , catches and handles migration errors ...
Read more >changelog.txt - GitHub
Added DB2 on z/OS database type and Java classes for Liquibase - Upgrade h2 to newer version 2.0.206 Fixes - Fixed the generateChangeLog...
Read more >Index (liquibase 4.6.2 API) - Javadoc.io
Close the given JDBC ResultSet and ignore any thrown exception. ... dataOutputDirectory - Variable in class liquibase.integration.commandline.
Read more >I couldn't run generateChangeLog for db2
I try to generate change log of db2 database. When I run the command, It ... probably caused by bug in the Diff...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @FrankAnk We will re add it to the list. Most likely not a workaround on this but will bubble back up.
Thanks @FrankAnk probably not a workaround but we are taking a looking into this. Thanks!