我使用下面的配置來構建公證集羣並啓動它們。我用這種腳本進入V14版本,沒關係。但在V1中彈出錯誤。請幫我檢查一下。Corda V1.0公證集羣配置問題與Gradle
任務deployNodesRAFT(類型:net.corda.plugins.Cordform,dependsOn:[ '罐']){
directory "./build/nodes"
networkMap "C=CH,L=Zurich,O=NotaryService0"
node {
name "C=CH,L=Zurich,O=NotaryService0"
advertisedServices = ["corda.notary.validating.raft|C=CH,L=Zurich,O=Raft,CN=corda.notary.validating.raft"]
p2pPort 10002
rpcPort 10003
notaryNodePort 10001
cordapps = []
}
node {
name "C=CH,L=Zurich,O=NotaryService1"
advertisedServices = ["corda.notary.validating.raft|C=CH,L=Zurich,O=Raft,CN=corda.notary.validating.raft"]
p2pPort 10091
rpcPort 10092
cordapps = []
notaryNodePort 10093
notaryClusterAddresses = ["localhost:10001"]
}
node {
name "C=CH,L=Zurich,O=NotaryService2"
advertisedServices = ["corda.notary.validating.raft|C=CH,L=Zurich,O=Raft,CN=corda.notary.validating.raft"]
p2pPort 10094
rpcPort 10095
cordapps = []
notaryNodePort 10096
notaryClusterAddresses = ["localhost:10001"]
}
日誌: [ERROR] 2017-10-17T05:42:31,180Z [ main] identity.PersistentIdentityService.verifyAndRegisterIdentity - Path = [ERROR] 2017-10-17T05:42:31,181 [main] identity.PersistentIdentityService.verifyAndRegisterIdentity - 錯誤]主要] identity.PersistentIdentityService.verifyAndRegisterIdentity - 名稱約束檢查失敗 [ERROR] 2017-10-17T05:42:31,181Z Z [main] identity.PersistentIdentityService.verifyAndRegisterIdentity - CN = Corda節點根節點CA,O = R3,OU = corda,L =倫敦,C =英國 [錯誤] 2017-10-17T05:42:31,182Z [main] identity .Persistent IdentityService.verifyAndRegisterIdentity - CN = Corda節點中級CA,O = R3,OU = corda,L =倫敦,C = UK [錯誤] 2017-10-17T05:42:31,184Z [main] identity.PersistentIdentityService.verifyAndRegisterIdentity - C = CH,L =蘇黎世,O = NotaryService0,CN = Corda Client CA證書 [錯誤] 2017-10-17T05:42:31,185Z [main] identity.PersistentIdentityService.verifyAndRegisterIdentity - C = CH,L = Zurich,O = Raft,CN = corda.notary.validating.raft [錯誤] 2017-10-17T05:42:31,189Z [main] internal.node.run - 節點啓動時的異常 rx.exceptions.OnErrorNotImplementedException:名稱約束檢查失敗 在rx.internal.util.InternalObservableUtils $ ErrorNotImplementedAction.call(InternalObservableUtils.java:386)〜[rxjava-1.2.4.jar:1.2.4] at rx.internal.util.InternalObservableUtils $ ErrorNotImplementedAction.call(Interna (ActionSubscriber.java:44)〜[rxjava-1.2.4.jar:1.2。] 4] at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:153)〜[rxjava-1.2.4.jar:1.2.4] at rx.observers.SafeSubscriber.onError(SafeSubscriber.java:115)〜[ rxjava-1.2.4.jar:1.2.4] at rx.exceptions.Exceptions.throwOrReport(Exceptions.java:216)〜[rxjava-1.2.4.jar:1.2.4] at rx.observers.SafeSubscriber。 onNext(SafeSubscriber.java:139)〜[rxjava-1.2.4.jar:1.2.4] at rx.observers.Subscribers $ 5.onNext(Subscribers.java:235)〜[rxjava-1.2.4.jar:1.2 .4] at net.corda.node.utilities.DatabaseTransactionWrappingSubscriber $ onNext $ 1.invoke(CordaPersistence.kt:159)〜[corda-node-1.0.0.jar:?] at net.co rda.node.utilities.DatabaseTransactionWrappingSubscriber $ onNext $ 1.invoke(CordaPersistence.kt:143)〜[corda-node-1.0.0.jar :?] at net.corda.node.utilities.DatabaseTransactionWrappingSubscriber $ forEachSubscriberWithDbTx $ 1.invoke( CordaPersistence.kt:150)〜[corda-node-1.0.0.jar :?] at net.corda.node.utilities.DatabaseTransactionWrappingSubscriber $ forEachSubscriberWithDbTx $ 1.invoke(CordaPersistence.kt:143)〜[corda-node-1.0在net.corda.node.utilities處使用net.corda.node.utilities.CordaPersistence.inTopLevelTransaction(CordaPersistence.kt:84)〜[corda-node-1.0.0.jar :?] .CordaPersistence.transaction(CordaPersistence.kt:75)〜[corda-node-1.0.0.jar:?] at net.corda.node.utilities.CordaPersistence.transaction(CordaPersistence.kt:65)〜[corda-node -1.0.0.jar :?] at net.corda.node.utilities.DatabaseTransac (CordaPersistence.kt:159)〜[corda-node-1.0.0.jar :?] at net.corda.node.utilities.DatabaseTransactionWrappingSubscriber.onNext(CordaPersistence.kt:159)〜[corda-node-1.0.0.jar :?] at net.corda.node.utilities.DatabaseTransactionWrappingSubscriber.onNext rx.subjects.PublishSubject $ PublishSubjectProducer.onNext(PublishSubject.java:304)〜[rxjava-1.2.4.jar:1.2.4] at rx.subjects.PublishSubject $ PublishSubjectState。 onNext(PublishSubject.java:219)〜[rxjava-1.2.4.jar:1.2.4] at rx.subjects.PublishSubject.onNext(PublishSubject.java:72)〜[rxjava-1.2.4.jar:1.2。4] at rx.internal.util.ObserverSubscriber.onNext(ObserverSubscriber.java:34)〜[rxjava-1.2.4.jar:1.2.4] at rx.observers.SafeSubscriber.onNext(SafeSubscriber.java:134) 〜[rxjava-1.2.4.jar:1.2.4] at rx.observers.Subscribers $ 5.onNext(Subscribers.java:235)〜[rxjava-1.2.4.jar:1.2.4] at rx.subjects .UnicastSubject $ State.replay(UnicastSubject.java:295)〜[rxjava-1.2.4.jar:1.2.4] at rx.subjects.UnicastSubject $ State.request(UnicastSubject.java:237)〜[rxjava-1.2 .jar:1.2.4] at rx.Subscriber.setProducer(Subscriber.java:209)〜[rxjava-1.2.4.jar:1.2.4] at rx.Subscriber.setProducer(Subscriber.java:205 )〜[rxjava-1.2.4.jar:1.2.4] at rx.Subscriber.setProducer(Subscriber.java:205)〜[rxjava-1.2.4.jar:1.2.4] at rx.sub jects.UnicastSubject $ State.call(UnicastSubject.java:252)〜[rxjava-1.2.4.jar:1.2.4] at rx.subjects.UnicastSubject $ State.call(UnicastSubject.java:115)〜[rxjava- 1.2.4.jar:1.2.4] at rx.Observable.unsafeSubscribe(Observable.java:10142)〜[rxjava-1.2.4.jar:1.2.4] at rx.internal.operators.OnSubscribeDelaySubscriptionOther $ 1.onCompleted (OnSubscribeDelaySubscriptionOther.java:74)〜[rxjava-1.2.4.jar:1.2.4] at rx.internal.operators.OnSubscribeDelaySubscriptionOther $ 1.onNext(OnSubscribeDelaySubscriptionOther.java:53)〜[rxjava-1.2.4.jar: 1.2.4] at rx.internal.producers.SingleProducer.request(SingleProducer.java:65)〜[rxjava-1.2.4.jar:1.2.4] at rx.Subscriber.setProducer(Subscriber.java:209) 〜[rxjava-1.2.4.jar:1.2.4] at rx.internal.operators.OperatorSingle $ ParentSubscriber.on已完成(OperatorSingle.java:110)〜[rxjava-1.2.4.jar:1.2.4] at rx.internal.operators.OperatorTake $ 1.onNext(OperatorTake.java:80)〜[rxjava-1.2.4.jar :1.2.4] at rx.internal.operators.OnSubscribeFilter $ FilterSubscriber.onNext(OnSubscribeFilter.java:76)〜[rxjava-1.2.4.jar:1.2.4] at rx.subjects.PublishSubject $ PublishSubjectProducer.onNext (PublishSubject.java:304)〜[rxjava-1.2.4.jar:1.2.4] at rx.subjects.PublishSubject $ PublishSubjectState.onNext(PublishSubject.java:219)〜[rxjava-1.2.4.jar:1.2 .4] at rx.subjects.PublishSubject.onNext(PublishSubject.java:72)〜[rxjava-1.2.4.jar:1.2.4] at rx.observers.SerializedObserver.onNext(SerializedObserver.java:91)〜 [rxjava-1.2.4.jar:1.2.4] at rx.subjects.SerializedSubject.onNext(SerializedSubject.java:67)〜[rxjava-1.2.4.jar:1.2.4 ]在net.corda.node.utilities.DatabaseTransaction.close(DatabaseTransactionManager.kt:60)〜[corda-node-1.0.0.jar :?] at net.corda.node.utilities.CordaPersistence.inTopLevelTransaction(CordaPersistence .kt:100)〜[corda-node-1.0.0.jar :?] at net.corda.node.utilities.CordaPersistence.transaction(CordaPersistence.kt:75)〜[corda-node-1.0.0.jar :?] at net.corda.node.utilities.CordaPersistence.transaction(CordaPersistence.kt:65)〜[corda-node-1.0.0.jar:?] at net.corda.node.services.network.PersistentNetworkMapCache .addNode(PersistentNetworkMapCache.kt:163)〜[corda-node-1.0.0.jar:?] at net.corda.node.internal.AbstractNode.registerWithNetworkMapIfConfigured(AbstractNode.kt:511)〜[corda-node-1.0 .0.jar :?] at net.corda.node.internal.AbstractNode.start(AbstractNode.kt:220)〜[c orda-node-1.0.0.jar :?] at net.corda.node.internal.Node.start(Node.kt:312)〜[corda-node-1.0.0.jar:?] at net。在net.corda.node.internal.NodeStartup.run(NodeStartup.kt:74)處的corda.node.internal.NodeStartup.startNode(NodeStartup.kt:95)〜[corda-node-1.0.0.jar :?] 。 [corda-node-1.0.0.jar :?] at net.corda.node.Corda.main(Corda.kt:11)[corda-node-1.0.0.jar :?] 引起:java。 security.cert.CertPathValidatorException:名稱約束檢查失敗
我認爲這部分生成不同其他樣本的公證集羣的CordX500Name。作爲「C = CH,L =蘇黎世,O = NotaryService0」,它不是(O,L,C) – Hart
只是檢查,我錯過了生成distributedService.jks的一種方式,所以在將來你會有一些方法來涉及它沒有我們自己的工具進入內部? – Hart