Skip to content

Commit 607927b

Browse files
R3SOL-368 Downgrade jackson to 2.17.2 (#1700)
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.
1 parent fb818fe commit 607927b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gradle/libs.versions.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ apacheCommonsCodecVersion="1.17.0"
1010
commonsCompressVersion = "1.26.2"
1111
bouncycastleVersion = "1.77"
1212
javaxPersistenceApiVersion = "2.2"
13-
jacksonVersion = "2.18.0"
13+
jacksonVersion = "2.17.2"
1414
osgiVersion = "8.0.0"
1515
osgiAnnotationVersion = "8.1.0"
1616
osgiSvcAnnotationVersion = "1.5.1"

0 commit comments

Comments
 (0)