Thank you for your reply.
The datatype.type was set as Upgrade; I did so since its an attempt to upgrade existing Openspecimen MariaDB. Based on your advice, I changed to datatype.type to fresh.
Here is the error I am getting now;
OpenSpecimen, a Krishagni Product
Build Version :
Build Date : Thu Jun 06 05:28:33 EDT 2019
Commit :
Present Time : Thu Jun 06 10:24:06 EDT 2019
Jun 06, 2019 10:24:06 AM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
INFO 6/6/19 10:24 AM: liquibase: Successfully acquired change log lock
INFO 6/6/19 10:24 AM: liquibase: Reading from openspecimen_db.DATABASECHANGELOG
INFO 6/6/19 10:24 AM: liquibase: Successfully released change log lock
INFO 6/6/19 10:24 AM: liquibase: Successfully acquired change log lock
INFO 6/6/19 10:24 AM: liquibase: Reading from openspecimen_db.DATABASECHANGELOG
INFO 6/6/19 10:24 AM: liquibase: classpath:db/db-os-changelog-master-fresh.xml: db/db-os-pre-conditions.xml::Pre condition to check the storage engine::slakhani: ChangeSet db/db-os-pre-conditions.xml::Pre condition to check the storage engine::slakhani ran successfully in 0ms
INFO 6/6/19 10:24 AM: liquibase: classpath:db/db-os-changelog-master-fresh.xml: db/db-os-pre-conditions.xml::Pre condition to check the case sensitivity::nmarwaha: ChangeSet db/db-os-pre-conditions.xml::Pre condition to check the case sensitivity::nmarwaha ran successfully in 0ms
INFO 6/6/19 10:24 AM: liquibase: classpath:db/db-os-changelog-master-fresh.xml: db/2.0/schema.xml::Drop foreign key from CRG column in CATISSUE_USER::nmarwaha: Change set db/2.0/schema.xml::Drop foreign key from CRG column in CATISSUE_USER::nmarwaha failed, but failOnError was false. Error: java.sql.SQLSyntaxErrorException: (conn=4535) Can’t DROP FOREIGN KEY FKB025CFC7FFA96920
; check that it exists
INFO 6/6/19 10:24 AM: liquibase: classpath:db/db-os-changelog-master-fresh.xml: db/2.0/schema.xml::Drop WUSTLKEY column from CATISSUE_USER::nmarwaha: Change set db/2.0/schema.xml::Drop WUSTLKEY column from CATISSUE_USER::nmarwaha failed, but failOnError was false. Error: java.sql.SQLSyntaxErrorException: (conn=4535) Can’t DROP COLUMN WUSTLKEY
; check that it exists
INFO 6/6/19 10:24 AM: liquibase: classpath:db/db-os-changelog-master-fresh.xml: db/2.0/schema.xml::Drop UK on csm_user_id from catissue user table::vlonushte: Change set db/2.0/schema.xml::Drop UK on csm_user_id from catissue user table::vlonushte failed, but failOnError was false. Error: java.sql.SQLSyntaxErrorException: (conn=4535) Can’t DROP INDEX CSM_USER_ID_UNIQUE_KEY
; check that it exists
SEVERE 6/6/19 10:24 AM: liquibase: classpath:db/db-os-changelog-master-fresh.xml: db/5.2/schema.xml::Anticipated specimens table - event and SR codes::vpawar: Change Set db/5.2/schema.xml::Anticipated specimens table - event and SR codes::vpawar failed. Error: Migration failed for change set db/5.2/schema.xml::Anticipated specimens table - event and SR codes::vpawar:
Reason:
classpath:db/db-os-changelog-master-fresh.xml : liquibase.precondition.core.ColumnExistsPrecondition@66683af8 : For input string: “NULL”
liquibase.exception.MigrationFailedException: Migration failed for change set db/5.2/schema.xml::Anticipated specimens table - event and SR codes::vpawar:
Reason:
classpath:db/db-os-changelog-master-fresh.xml : liquibase.precondition.core.ColumnExistsPrecondition@66683af8 : For input string: “NULL”
at liquibase.changelog.ChangeSet.execute(ChangeSet.java:514)
at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:43)
at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:73)
at liquibase.Liquibase.update(Liquibase.java:200)
at liquibase.integration.spring.SpringLiquibase.performUpdate(SpringLiquibase.java:402)
at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:366)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1689)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1627)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5157)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5680)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1018)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:994)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1127)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:2021)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: liquibase.exception.PreconditionErrorException: Precondition Error
at liquibase.precondition.core.ColumnExistsPrecondition.check(ColumnExistsPrecondition.java:81)
at liquibase.precondition.core.NotPrecondition.check(NotPrecondition.java:38)
at liquibase.precondition.core.AndPrecondition.check(AndPrecondition.java:43)
at liquibase.precondition.core.PreconditionContainer.check(PreconditionContainer.java:201)
at liquibase.changelog.ChangeSet.execute(ChangeSet.java:471)
… 32 more
Caused by: liquibase.exception.DatabaseException: java.lang.NumberFormatException: For input string: “NULL”
at liquibase.snapshot.jvm.ColumnSnapshotGenerator.snapshotObject(ColumnSnapshotGenerator.java:82)
at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:60)
at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)
at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:164)
at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:242)
at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:196)
at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:178)
at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:242)
at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:264)
at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:196)
at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:178)
at liquibase.snapshot.DatabaseSnapshot.init(DatabaseSnapshot.java:61)
at liquibase.snapshot.DatabaseSnapshot.(DatabaseSnapshot.java:38)
at liquibase.snapshot.JdbcDatabaseSnapshot.(JdbcDatabaseSnapshot.java:25)
at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:126)
at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:119)
at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:107)
at liquibase.snapshot.SnapshotGeneratorFactory.has(SnapshotGeneratorFactory.java:97)
at liquibase.precondition.core.ColumnExistsPrecondition.check(ColumnExistsPrecondition.java:77)
… 36 more
Caused by: java.lang.NumberFormatException: For input string: “NULL”
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.(Integer.java:867)
at liquibase.util.SqlUtil.parseValue(SqlUtil.java:129)
at liquibase.snapshot.jvm.ColumnSnapshotGenerator.readDefaultValue(ColumnSnapshotGenerator.java:358)
at liquibase.snapshot.jvm.ColumnSnapshotGenerator.readColumn(ColumnSnapshotGenerator.java:213)
at liquibase.snapshot.jvm.ColumnSnapshotGenerator.snapshotObject(ColumnSnapshotGenerator.java:45)
… 54 more
INFO 6/6/19 10:24 AM: liquibase: db/5.2/schema.xml::Anticipated specimens table - event and SR codes::vpawar: Successfully released change log lock
Jun 06, 2019 10:24:13 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘os-liquibase’ defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is liquibase.exception.MigrationFailedException: Migration failed for change set db/5.2/schema.xml::Anticipated specimens table - event and SR codes::vpawar:
Reason:
classpath:db/db-os-changelog-master-fresh.xml : liquibase.precondition.core.ColumnExistsPrecondition@66683af8 : For input string: “NULL”
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1631)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5157)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5680)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:1018)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:994)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1127)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:2021)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: liquibase.exception.MigrationFailedException: Migration failed for change set db/5.2/schema.xml::Anticipated specimens table - event and SR codes::vpawar:
Reason:
classpath:db/db-os-changelog-master-fresh.xml : liquibase.precondition.core.ColumnExistsPrecondition@66683af8 : For input string: “NULL”
at liquibase.changelog.ChangeSet.execute(ChangeSet.java:514)
at liquibase.changelog.visitor.UpdateVisitor.visit(UpdateVisitor.java:43)
at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:73)
at liquibase.Liquibase.update(Liquibase.java:200)
at liquibase.integration.spring.SpringLiquibase.performUpdate(SpringLiquibase.java:402)
at liquibase.integration.spring.SpringLiquibase.afterPropertiesSet(SpringLiquibase.java:366)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1689)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1627)
... 25 more
Caused by: liquibase.exception.PreconditionErrorException: Precondition Error
at liquibase.precondition.core.ColumnExistsPrecondition.check(ColumnExistsPrecondition.java:81)
at liquibase.precondition.core.NotPrecondition.check(NotPrecondition.java:38)
at liquibase.precondition.core.AndPrecondition.check(AndPrecondition.java:43)
at liquibase.precondition.core.PreconditionContainer.check(PreconditionContainer.java:201)
at liquibase.changelog.ChangeSet.execute(ChangeSet.java:471)
… 32 more
Caused by: liquibase.exception.DatabaseException: java.lang.NumberFormatException: For input string: “NULL”
at liquibase.snapshot.jvm.ColumnSnapshotGenerator.snapshotObject(ColumnSnapshotGenerator.java:82)
at liquibase.snapshot.jvm.JdbcSnapshotGenerator.snapshot(JdbcSnapshotGenerator.java:60)
at liquibase.snapshot.SnapshotGeneratorChain.snapshot(SnapshotGeneratorChain.java:50)
at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:164)
at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:242)
at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:196)
at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:178)
at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:242)
at liquibase.snapshot.DatabaseSnapshot.replaceObject(DatabaseSnapshot.java:264)
at liquibase.snapshot.DatabaseSnapshot.includeNestedObjects(DatabaseSnapshot.java:196)
at liquibase.snapshot.DatabaseSnapshot.include(DatabaseSnapshot.java:178)
at liquibase.snapshot.DatabaseSnapshot.init(DatabaseSnapshot.java:61)
at liquibase.snapshot.DatabaseSnapshot.(DatabaseSnapshot.java:38)
at liquibase.snapshot.JdbcDatabaseSnapshot.(JdbcDatabaseSnapshot.java:25)
at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:126)
at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:119)
at liquibase.snapshot.SnapshotGeneratorFactory.createSnapshot(SnapshotGeneratorFactory.java:107)
at liquibase.snapshot.SnapshotGeneratorFactory.has(SnapshotGeneratorFactory.java:97)
at liquibase.precondition.core.ColumnExistsPrecondition.check(ColumnExistsPrecondition.java:77)
… 36 more
Caused by: java.lang.NumberFormatException: For input string: “NULL”
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.(Integer.java:867)
at liquibase.util.SqlUtil.parseValue(SqlUtil.java:129)
at liquibase.snapshot.jvm.ColumnSnapshotGenerator.readDefaultValue(ColumnSnapshotGenerator.java:358)
at liquibase.snapshot.jvm.ColumnSnapshotGenerator.readColumn(ColumnSnapshotGenerator.java:213)
at liquibase.snapshot.jvm.ColumnSnapshotGenerator.snapshotObject(ColumnSnapshotGenerator.java:45)
… 54 more