在Corda中构建Irs-demo时出错
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在Corda中构建Irs-demo时出错相关的知识,希望对你有一定的参考价值。
使用参考构建corda-master样本中的irs-demo时遇到以下错误
https://github.com/corda/corda/tree/master/samples/irs-demo
w: C:Users
avicorda esting est-utilssrcmainkotlin
etcorda estingdslTestDSL.kt: (284, 37): 'importAttachment(InputStream): AttachmentId /* = SecureHash */' is deprecated. More attachment information is required
w: C:Users
avicorda esting est-utilssrcmainkotlin
etcorda estingservicesMockAttachmentStorage.kt: (48, 20): 'importAttachment(InputStream): AttachmentId /* = SecureHash */' is deprecated. Overrides deprecated member in 'net.corda.core.node.services.AttachmentStorage'. More attachment information is required
w: C:Users
avicorda esting est-utilssrcmainkotlin
etcorda estingservicesMockAttachmentStorage.kt: (60, 78): Parameter 'filename' is never used
e: C:Users
avicorda esting
ode-driversrcmainkotlin
etcorda esting
odeinternalRPCDriver.kt: (138, 9): Class 'SingleUserSecurityManager' is not abstract and does not implement abstract member public abstract fun validateUser(p0: String!, p1: String!, p2: RemotingConnection!): String! defined in org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManager3
e: C:Users
avicorda esting
ode-driversrcmainkotlin
etcorda esting
odeinternalRPCDriver.kt: (141, 5): 'validateUser' overrides nothing
e: C:Users
avicorda esting
ode-driversrcmainkotlin
etcorda esting
odeinternalRPCDriver.kt: (145, 5): 'validateUserAndRole' overrides nothing
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':node-driver:compileKotlin'.
> Compilation error. See log for more details
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':node-driver:compileKotlin'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87)
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
我已经使用stacktrace运行了它。我已经克隆了主存储库,并在尝试使用命令
部署irs-demo的节点时遇到此错误。gradlew.bat样本:irs-demo:cordapp:deployNodes
直接部署irs-demo的节点之前是否有任何先决条件?
UPDATE 1:
尝试使用corda V3.0进行构建时遇到gradle问题
C:demoscorda-release-V3.0>gradlew.bat install --stacktrace
FAILURE: Build failed with an exception.
* Where:
Build file 'C:demoscorda-release-V3.0uild.gradle' line: 112
* What went wrong:
A problem occurred evaluating root project 'corda-project'.
> repository not found: C:demoscorda-release-V3.0
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'corda-project'.
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:92)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl$2.run(DefaultScriptPluginFactory.java:199)
at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:77)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:204)
at org.gradle.configuration.BuildOperationScriptPlugin$1.run(BuildOperationScriptPlugin.java:61)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
at org.gradle.configuration.BuildOperationScriptPlugin.apply(BuildOperationScriptPlugin.java:58)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:41)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26)
at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)
at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:64)
at org.gradle.configuration.project.LifecycleProjectEvaluator.access$100(LifecycleProjectEvaluator.java:34)
at org.gradle.configuration.project.LifecycleProjectEvaluator$ConfigureProject.run(LifecycleProjectEvaluator.java:110)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:50)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:666)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:135)
at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:35)
at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:60)
at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:38)
答案
Corda github采用了cut-version发布模式。这意味着所有开发都已添加到master分支,这使其非常不稳定。
请始终克隆标记为V3,V4等的稳定分支(在打开页面时,它也应该是默认分支)
例如:https://github.com/corda/corda设置为release / os / 4.6默认
以上是关于在Corda中构建Irs-demo时出错的主要内容,如果未能解决你的问题,请参考以下文章
在跨网络部署 Corda 节点时,哪些 JAR 必须完全相同?
Android:在drawerlayout中使用地图膨胀片段时出错