Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DriverDSLImpl: incompatible API between Corda CE and OS (4.6.1) #6825

Closed
manosbatsis opened this issue Nov 26, 2020 · 2 comments
Closed

DriverDSLImpl: incompatible API between Corda CE and OS (4.6.1) #6825

manosbatsis opened this issue Nov 26, 2020 · 2 comments

Comments

@manosbatsis
Copy link
Contributor

manosbatsis commented Nov 26, 2020

  • A clear description of the issue

Tools designed to use OS' DriverDSLImpl fail constructing an instance of the same class using CE.
The reason seems to be that CE adds an enableSNI: Boolean constructor parameter, perhaps without a default value.

  • Any logs or stack traces that you can provide (use a site like https://pastebin.com for larger logs)
java.lang.NoSuchMethodError: net.corda.testing.node.internal.DriverDSLImpl.<init>(Lnet/corda/testing/driver/PortAllocation;Lnet/corda/testing/driver/PortAllocation;Ljava/util/Map;Ljava/nio/file/Path;ZZZZLjava/util/List;Lnet/corda/testing/driver/JmxPolicy;Ljava/util/List;Lnet/corda/testing/node/internal/CompatibilityZoneParams;Lnet/corda/core/node/NetworkParameters;Ljava/util/Map;ZLjava/util/Collection;Ljava/nio/file/Path;Ljava/util/List;Ljava/util/Map;ZZILkotlin/jvm/internal/DefaultConstructorMarker;)V
  • Steps to reproduce the issue

Try to construct an instance like

DriverDSLImpl(
                    portAllocation = defaultParameters.portAllocation,
                    debugPortAllocation = defaultParameters.debugPortAllocation,
                    systemProperties = defaultParameters.systemProperties,
                    driverDirectory = defaultParameters.driverDirectory.toAbsolutePath(),
                    useTestClock = defaultParameters.useTestClock,
                    isDebug = defaultParameters.isDebug,
                    startNodesInProcess = defaultParameters.startNodesInProcess,
                    waitForAllNodesToFinish = defaultParameters.waitForAllNodesToFinish,
                    extraCordappPackagesToScan = @Suppress("DEPRECATION") defaultParameters.extraCordappPackagesToScan,
                    notarySpecs = defaultParameters.notarySpecs,
                    jmxPolicy = defaultParameters.jmxPolicy,
                    compatibilityZone = null,
                    networkParameters = defaultParameters.networkParameters,
                    notaryCustomOverrides = defaultParameters.notaryCustomOverrides,
                    inMemoryDB = defaultParameters.inMemoryDB,
                    cordappsForAllNodes = uncheckedCast(defaultParameters.cordappsForAllNodes),
                    djvmBootstrapSource = defaultParameters.djvmBootstrapSource,
                    djvmCordaSource = defaultParameters.djvmCordaSource,
                    environmentVariables = defaultParameters.environmentVariables,
                    // This is missing from OS so it wont compile
                    // enableSNI = true,
                    allowHibernateToManageAppSchema = true,
                    premigrateH2Database = true
  • The version/tag/release or commit hash it occurred on

Corda CE 4.6.1

@r3jirabot
Copy link

Automatically created Jira issue: CORDA-4089

@manosbatsis
Copy link
Contributor Author

Replaced by #6826 to properly propagate the issue to jira

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants