GatewayMigrationUtility Error
search cancel

GatewayMigrationUtility Error

book

Article ID: 221870

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

Every day a deploy will be made where an export will be imported using the GatewayMigrationUtility.

IN the  GMU log we get the following error:

WARNING: Error executing command
java.lang.IllegalArgumentException: Migrate in failed: Conflict
at com.ca.gateway.rest.command.MigrateInCommand.run(Unknown Source)
at com.ca.gateway.rest.commandline.command.GatewayCommand.run(Unknown Source)
at com.ca.gateway.rest.command.command.runCommand(Unknown Source)
at com.ca.gateway.rest.commandline.Main.main(Unknown Source)

<l7:Property key="ErrorMessage">
<l7:StringValue>Error attempting to save or update the EncapsulatedAssertionConfig with id = 'xxxxxxxxxxxxxxxxxf'.  Message: Object of class [com.l7tech.objectmodel.encass.EncapsulatedAssertionConfig] with identifier [243d974dc176b6efb2a8d9de0df00d4f]: optimistic locking failed; nested exception is org.hibernate. StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect):

Environment

Release : 10.0

Component :

Resolution

It looks in the GMU logs there are two migrations in a short timeframe , Which seems to conflict and cause the above error  .

Make sure only one migration is active at the same time or make sure they do not both touch the same objects in the database.