-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
when running test using substrate-client/src/test/resources/rpc-test.config
like
wss://127.0.0.1:9944,smoke key grief belt gather absurd open attend keep flip hollow popular,total arch interest inmate book cigar primary long mixture party practice old
that is locally running polkadot ./polkadot --dev -dPolkadotData
2021-09-10 14:30:22 Running in --dev mode, RPC CORS has been disabled.
2021-09-10 14:30:22 Parity Polkadot
2021-09-10 14:30:22 ✌️ version 0.9.7-5d35bac74-x86_64-macos
2021-09-10 14:30:22 ❤️ by Parity Technologies <admin@parity.io>, 2017-2021
2021-09-10 14:30:22 📋 Chain specification: Development
2021-09-10 14:30:22 🏷 Node name: exuberant-doctor-0049
2021-09-10 14:30:22 👤 Role: AUTHORITY
2021-09-10 14:30:22 💾 Database: RocksDb at PolkadotData/chains/dev/db
2021-09-10 14:30:22 ⛓ Native runtime: polkadot-9070 (parity-polkadot-0.tx7.au0)
2021-09-10 14:30:23 🏷 Local node identity is: 12D3KooWA49uLBFkphZHBYLi4hcY5DRSXom7d1QjM1CidGPbHLKT
2021-09-10 14:30:24 📦 Highest known block at #14415
2021-09-10 14:30:24 〽️ Prometheus server started at 127.0.0.1:9615
2021-09-10 14:30:24 Listening for new connections on 127.0.0.1:9944.
and get Exception
> Task :substrate-client:test FAILED
While trying to create object of class class java.lang.String could not find constructor with arguments matching (type-wise) the ones given in parameters.
java.lang.IllegalStateException: While trying to create object of class class java.lang.String could not find constructor with arguments matching (type-wise) the ones given in parameters.
at junitparams.internal.InvokeParameterisedMethod.createObjectOfExpectedTypeBasedOnParams(InvokeParameterisedMethod.java:84)
at junitparams.internal.InvokeParameterisedMethod.castParamsFromObjects(InvokeParameterisedMethod.java:66)
at junitparams.internal.InvokeParameterisedMethod.<init>(InvokeParameterisedMethod.java:37)
at junitparams.internal.ParameterisedTestClassRunner.buildMethodInvoker(ParameterisedTestClassRunner.java:125)
at junitparams.internal.ParameterisedTestClassRunner.parameterisedMethodInvoker(ParameterisedTestClassRunner.java:118)
at junitparams.JUnitParamsRunner.methodInvoker(JUnitParamsRunner.java:482)
at org.junit.runners.BlockJUnit4ClassRunner.methodBlock(BlockJUnit4ClassRunner.java:273)
at junitparams.JUnitParamsRunner.runChild(JUnitParamsRunner.java:446)
at junitparams.JUnitParamsRunner.runChild(JUnitParamsRunner.java:393)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.runTestClass(JUnitTestClassExecutor.java:110)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:58)
at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecutor.execute(JUnitTestClassExecutor.java:38)
at org.gradle.api.internal.tasks.testing.junit.AbstractJUnitTestClassProcessor.processTestClass(AbstractJUnitTestClassProcessor.java:62)
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33)
at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:94)
at com.sun.proxy.$Proxy2.processTestClass(Unknown Source)
at org.gradle.api.internal.tasks.testing.worker.TestWorker$2.run(TestWorker.java:176)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:129)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:100)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:60)
at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56)
at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:133)
at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:71)
at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69)
at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74)
Caused by: java.lang.NoSuchMethodException: java.lang.String.<init>(java.lang.String, java.lang.String, java.lang.String)
at java.base/java.lang.Class.getConstructor0(Class.java:3349)
at java.base/java.lang.Class.getConstructor(Class.java:2151)
at junitparams.internal.InvokeParameterisedMethod.createObjectOfExpectedTypeBasedOnParams(InvokeParameterisedMethod.java:81)
... 37 more
io.nodle.substratesdk.TestRpc > classMethod FAILED
java.lang.IllegalStateException at InvokeParameterisedMethod.java:84
Caused by: java.lang.NoSuchMethodException at Class.java:3349
6 tests completed, 1 failed
FAILURE: Build failed with an exception.
I have no idea, as no Kotlin expert, other than higher Java version is needed.
Currently using JDK 11
Metadata
Metadata
Assignees
Labels
No labels