Skip to content

Commit

Permalink
R3SOL-368 Downgrade jackson to 2.17.2 (#1700)
Browse files Browse the repository at this point in the history
Upgrading Jackson from 2.17.2 to 2.18.0 (see fb818fe) in Corda API has broken some of the Ledger Tests.

Causing the tests to fail with:

com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `net.corda.v5.ledger.common.transaction.CordaPackageSummary` (no Creators, like default constructor, exist): abstract types either need to be mapped to concrete types, have custom deserializer, or contain additional type information
 at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 604] (through reference chain: net.corda.ledger.common.data.transaction.TransactionMetadataImpl["cpkMetadata"]->java.util.ArrayList[0])

It looks like Jackson is trying to construct CordaPackageSummary (which is an interface) when deserialising instead of CordaPackageSummaryImpl.
  • Loading branch information
williamvigorr3 authored Oct 15, 2024
1 parent fb818fe commit 607927b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ apacheCommonsCodecVersion="1.17.0"
commonsCompressVersion = "1.26.2"
bouncycastleVersion = "1.77"
javaxPersistenceApiVersion = "2.2"
jacksonVersion = "2.18.0"
jacksonVersion = "2.17.2"
osgiVersion = "8.0.0"
osgiAnnotationVersion = "8.1.0"
osgiSvcAnnotationVersion = "1.5.1"
Expand Down

0 comments on commit 607927b

Please sign in to comment.