Error CheckConstraintSnapshotGenerator.getSnapshotObjectSql

Can you supply more details on what you were doing when this happened? For example, were you running a command from the command line or using maven or something else? What command were you running?

Looking at the stack trace, it appears that you are doing something with the Spring framework, and that this error may have happened at application startup time - is that correct? 

If that is correct, it will also be helpful to share as much of your various POM files and spring configuration files as you can, taking care to remove things like passwords, etc. It would also help to understand the history of the project - was this working with a previous version and then it broke when you updated a version of Liquibase or Spring? What else might have changed?

Steve Donie
Principal Software Engineer
Liquibase Community Engagement
Datical, Inc. http://www.datical.com/

I did some googling of the lowest level exception (java.lang.VerifyError: Stack map does not match the one at exception handler)

It may be that you have more than one copy of the liquibase jar (different versions) in your production environment. 

Steve Donie
Principal Software Engineer
Liquibase Community Engagement
Datical, Inc. http://www.datical.com/

Hi,

We have a same War generated one time and deployed on DEV, RCT and PRD environment and problem is ONLY in PRD environment .

Liquibase jar is unique

Regards

Hi,

I have following error message on cimmunity Liquibase 3.8.5

Where is my mistake ?

Regards

2020-02-10 13:29:53.347 [default-startStop-1] INFO  com.zaxxer.hikari.HikariDataSource.getConnection - HikariPool-1 - Start completed.

2020-02-10 13:29:56.907 [default-startStop-1] WARN  o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext.refresh - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘com.afklm.soa.autoconfigure.SdfwProviderConfiguration’: Invocation of init method failed; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘contractNotificationV1Impl’: Unsatisfied dependency expressed through field ‘softwareServiceInterfaceService’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘softwareServiceInterfaceServiceImpl’: Unsatisfied dependency expressed through field ‘softwareServiceInterfaceRepository’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘softwareServiceInterfaceRepository’: Cannot create inner bean ‘(inner bean)#60e8ce8e’ of type [org.springframework.orm.jpa.SharedEntityManagerCreator] while setting bean property ‘entityManager’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘(inner bean)#60e8ce8e’: Cannot resolve reference to bean ‘orcaEntityManagerFactory’ while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘liquibase’ defined in class path resource [org/springframework/boot/autoconfigure/liquibase/LiquibaseAutoConfiguration$LiquibaseConfiguration.class]: Invocation of init method failed; nested exception is java.lang.VerifyError: Stack map does not match the one at exception handler 485

Exception Details:

  Location:

    com/datical/liquibase/ext/storedlogic/checkconstraint/CheckConstraintSnapshotGenerator.getSnapshotObjectSql(Lliquibase/structure/DatabaseObject;Lliquibase/database/Database;Lliquibase/structure/core/Table;)Ljava/lang/String; @485: dup

  Reason:

    Type top (current frame, locals[0]) is not assignable to ‘com/datical/liquibase/ext/storedlogic/checkconstraint/CheckConstraintSnapshotGenerator’ (stack map, locals[0])

 

Hi,

Yes this problem happening when we start our application in Spring

The problem is only in live environment , same build has no problem in Test and Dev !

We have copy “Prod database” in Test environment and we could not reproduce problem in Test

Regards

Wow, that is surprising. Have you filed a bug report with the Spring folks?

Steve Donie
Principal Software Engineer
Liquibase Community Engagement
Datical, Inc. http://www.datical.com/

It seems Spring not loading LiquiBase and Beans in same Order in each different Server

Regards