Repeated CordFormations can fail with ClassLoader exception.

Description

In some cases, executing the Gradle task

can break the Corda build with an exception like this:

The problem is that our cordformation Gradle plugin forgets to unload any SecurityProvider instances (e.g. BouncyCastle) that the Network Bootstrapper installs, which allows them to be used by and linked with other classes. This eventually results in a JVM linker exception.

SLF4J Configuration

In the interest of keeping the contents of the Network Bootstapper's ClassLoader as small as possible, we will also revert here. Any SLF4J back-end that the Network Bootstrapper wants to use can be set using Gradle's runtimeOnly configuration intead of testRuntime.

Status

Assignee

Chris Rankin

Reporter

Chris Rankin

Labels

Priority

Medium

Fix versions

Ported to...

None

Feature Team

Select team

CVSS Vector

None

Severity

Medium

Affects versions

Configure