JDK11 Illegal reflective access in ConfigUtilities.toConfigMap

Description

Seems to be looking at a structured value object and creating a [field name, value] map from it. Couldn't the original parser of the value have created the map? There are multiple paths to this, below is just one stack trace.

WARNING: Illegal reflective access by net.corda.nodeapi.internal.config.ConfigUtilities (file:/Users/adelel-beik/.capsule/apps/net.corda.node.Corda_4.6-SNAPSHOT/cord a-node-api-4.6-SNAPSHOT-jdk11.jar) to field java.time.Duration.seconds
29 at net.corda.nodeapi.internal.config.ConfigUtilities.toConfigMap(ConfigUtilities.kt:308)
30 at net.corda.nodeapi.internal.config.ConfigUtilities.convertValue(ConfigUtilities.kt:353)
31 at net.corda.nodeapi.internal.config.ConfigUtilities.toConfigValue(ConfigUtilities.kt:297)
32 at net.corda.node.internal.subcommands.ValidateConfigurationCli$Companion$logRawConfig$1.invoke(ValidateConfigurationCli.kt:29)
33 at net.corda.node.internal.subcommands.ValidateConfigurationCli$Companion$logRawConfig$1.invoke(ValidateConfigurationCli.kt:16)
34 at net.corda.common.configuration.parsing.internal.PropertiesKt.valueDescription(Properties.kt:283)
35 at net.corda.common.configuration.parsing.internal.PropertiesKt.access$valueDescription(Properties.kt:1)
36 at net.corda.common.configuration.parsing.internal.OptionalPropertyWithDefault.describe(Properties.kt:111)
37 at net.corda.common.configuration.parsing.internal.Schema$describe$1.invoke(Schema.kt:52)
38 at net.corda.common.configuration.parsing.internal.Schema$describe$1.invoke(Schema.kt:8)
39 at kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:149)
40 at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:109)
41 at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:133)
42 at net.corda.common.configuration.parsing.internal.Schema.describe(Schema.kt:116)
43 at net.corda.common.configuration.parsing.internal.Configuration$Specification.describe(Configuration.kt:381)
44 at net.corda.node.internal.subcommands.ValidateConfigurationCli$Companion.logRawConfig$node(ValidateConfigurationCli.kt:29)
45 at net.corda.node.internal.NodeStartup$initialiseAndRun$configuration$1.invoke(NodeStartup.kt:175)
46 at net.corda.node.internal.NodeStartup$initialiseAndRun$configuration$1.invoke(NodeStartup.kt:142)
47 at net.corda.common.validation.internal.Validated$DefaultImpls.doIfValid(Validated.kt:58)
48 at net.corda.common.validation.internal.Validated$Result.doIfValid(Validated.kt:102)
49 at net.corda.node.internal.NodeStartup.initialiseAndRun(NodeStartup.kt:175)
50 at net.corda.node.internal.NodeStartupCli.runProgram(NodeStartup.kt:133)
51 at net.corda.cliutils.CordaCliWrapper.call(CordaCliWrapper.kt:200)
52 at net.corda.node.internal.NodeStartupCli.call(NodeStartup.kt:88)
53 at net.corda.node.internal.NodeStartupCli.call(NodeStartup.kt:69)
54 at picocli.CommandLine.execute(CommandLine.java:1173)
55 at picocli.CommandLine.access$800(CommandLine.java:141)
56 at picocli.CommandLine$RunLast.handle(CommandLine.java:1367)
57 at picocli.CommandLine$RunLast.handle(CommandLine.java:1335)
58 at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:1243)
59 at picocli.CommandLine.parseWithHandlers(CommandLine.java:1526)
60 at net.corda.cliutils.CordaCliWrapperKt.start(CordaCliWrapper.kt:89)

Assignee

Adel El-Beik

Reporter

Adel El-Beik

Labels

None

Sprint

None

Epic Link

None

Priority

Medium

Engineering Teams

Kernel

Fix versions

Affects versions

None

Ported to...

None

Story Points / Dev Days

10

Build cut

None

Feature Team

Kernel Group
Configure