diff --git a/build.gradle b/build.gradle index 2618324868..e606a7fd65 100644 --- a/build.gradle +++ b/build.gradle @@ -63,7 +63,7 @@ buildscript { ext.asm_version = '7.1' ext.artemis_version = '2.19.1' // TODO Upgrade Jackson only when corda is using kotlin 1.3.10 - ext.jackson_version = '2.13.3' + ext.jackson_version = '2.13.5' ext.jackson_kotlin_version = '2.9.7' ext.jetty_version = '9.4.19.v20190610' ext.jersey_version = '2.25' @@ -470,6 +470,8 @@ allprojects { } else if (details.requested.name == "commons-text") { details.useVersion commons_text_version } + if (details.requested.group == 'org.yaml' && details.requested.name == 'snakeyaml') { + details.useVersion snake_yaml_version } } } diff --git a/constants.properties b/constants.properties index 7e04ec28b9..a30f2432ac 100644 --- a/constants.properties +++ b/constants.properties @@ -26,7 +26,7 @@ disruptorVersion=3.4.2 typesafeConfigVersion=1.3.4 jsr305Version=3.0.2 artifactoryPluginVersion=4.16.1 -snakeYamlVersion=1.19 +snakeYamlVersion=1.33 caffeineVersion=2.9.3 metricsVersion=4.1.0 metricsNewRelicVersion=1.1.1 diff --git a/node/src/integration-test/kotlin/net/corda/node/services/events/ScheduledFlowIntegrationTests.kt b/node/src/integration-test/kotlin/net/corda/node/services/events/ScheduledFlowIntegrationTests.kt index fdc5d5b12e..dc6166e4ad 100644 --- a/node/src/integration-test/kotlin/net/corda/node/services/events/ScheduledFlowIntegrationTests.kt +++ b/node/src/integration-test/kotlin/net/corda/node/services/events/ScheduledFlowIntegrationTests.kt @@ -8,6 +8,7 @@ import net.corda.core.flows.* import net.corda.core.identity.Party import net.corda.core.internal.concurrent.transpose import net.corda.core.messaging.startFlow +import net.corda.core.node.services.StatesNotAvailableException import net.corda.core.node.services.queryBy import net.corda.core.node.services.vault.QueryCriteria import net.corda.core.transactions.TransactionBuilder @@ -70,7 +71,11 @@ class ScheduledFlowIntegrationTests { val state = results.states.firstOrNull() ?: return require(!state.state.data.processed) { "Cannot spend an already processed state" } val lock = UUID.randomUUID() - serviceHub.vaultService.softLockReserve(lock, NonEmptySet.of(state.ref)) + try { + serviceHub.vaultService.softLockReserve(lock, NonEmptySet.of(state.ref)) + } catch (e: StatesNotAvailableException) { + return + } val notary = state.state.notary val outputState = SpentState(identity, ourIdentity, state.state.data.destination) val builder = TransactionBuilder(notary) diff --git a/node/src/integration-test/kotlin/net/corda/testMessage/ScheduledState.kt b/node/src/integration-test/kotlin/net/corda/testMessage/ScheduledState.kt index 688be4fd33..cd6c99af46 100644 --- a/node/src/integration-test/kotlin/net/corda/testMessage/ScheduledState.kt +++ b/node/src/integration-test/kotlin/net/corda/testMessage/ScheduledState.kt @@ -4,6 +4,7 @@ import co.paralleluniverse.fibers.Suspendable import net.corda.core.contracts.* import net.corda.core.flows.* import net.corda.core.identity.Party +import net.corda.core.node.services.StatesNotAvailableException import net.corda.core.transactions.TransactionBuilder import net.corda.core.utilities.NonEmptySet import net.corda.testing.contracts.DummyContract @@ -25,7 +26,11 @@ class ScheduledFlow(private val stateRef: StateRef) : FlowLogic() { } require(!scheduledState.processed) { "State should not have been previously processed" } val lock = UUID.randomUUID() - serviceHub.vaultService.softLockReserve(lock, NonEmptySet.of(state.ref)) + try { + serviceHub.vaultService.softLockReserve(lock, NonEmptySet.of(state.ref)) + } catch (e: StatesNotAvailableException) { + return + } val notary = state.state.notary val newStateOutput = scheduledState.copy(processed = true) val builder = TransactionBuilder(notary) diff --git a/settings.gradle b/settings.gradle index 97dfbdd783..0eb5669760 100644 --- a/settings.gradle +++ b/settings.gradle @@ -80,10 +80,10 @@ include 'tools:checkpoint-agent' include 'samples:attachment-demo:contracts' include 'samples:attachment-demo:workflows' include 'samples:trader-demo:workflows-trader' -include 'samples:irs-demo' -include 'samples:irs-demo:cordapp:contracts-irs' -include 'samples:irs-demo:cordapp:workflows-irs' -include 'samples:irs-demo:web' +// include 'samples:irs-demo' +// include 'samples:irs-demo:cordapp:contracts-irs' +// include 'samples:irs-demo:cordapp:workflows-irs' +// include 'samples:irs-demo:web' include 'samples:simm-valuation-demo' include 'samples:simm-valuation-demo:flows' include 'samples:simm-valuation-demo:contracts-states'