Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

pigtail example is not compatible with corda 4.3, platformVersion 5 #74

Open
altfatterz opened this issue Nov 23, 2019 · 1 comment
Open

Comments

@altfatterz
Copy link

The pigtail example does not work with

cordaVersion=4.3
platformVersion=5

I get the following exception:

[ERROR] 2019-11-23T17:10:46,723Z [main] internal.Node. - Corda service com.template.BootstrapBraidService failed to instantiate. Reason was: com.fasterxml.jackson.module.kotlin.KotlinModule.<init>(IILkotlin/jvm/internal/DefaultConstructorMarker;)V [errorCode=19x6zj9, moreInformationAt=https://errors.corda.net/OS/4.3/19x6zj9]
java.lang.NoSuchMethodError: com.fasterxml.jackson.module.kotlin.KotlinModule.<init>(IILkotlin/jvm/internal/DefaultConstructorMarker;)V
	at io.bluebank.braid.core.json.BraidJacksonInit.<clinit>(Serialisation.kt:30) ~[?:?]
	at io.bluebank.braid.corda.serialisation.BraidCordaJacksonInit.<clinit>(Register.kt:39) ~[?:?]
	at io.bluebank.braid.corda.BraidServer.<clinit>(BraidServer.kt:34) ~[?:?]
	at io.bluebank.braid.corda.BraidConfig.bootstrapBraid(BraidConfig.kt:140) ~[?:?]
	at io.bluebank.braid.corda.BraidConfig.bootstrapBraid$default(BraidConfig.kt:139) ~[?:?]
	at com.template.BootstrapBraidService.<init>(BootstrapBraidService.kt:30) ~[?:?]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_222]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) ~[?:1.8.0_222]
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[?:1.8.0_222]
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[?:1.8.0_222]
	at net.corda.node.internal.AbstractNode.installCordaService(AbstractNode.kt:702) ~[corda-node-4.3.jar:?]
	at net.corda.node.internal.AbstractNode.installCordaServices(AbstractNode.kt:629) ~[corda-node-4.3.jar:?]
	at net.corda.node.internal.AbstractNode.access$installCordaServices(AbstractNode.kt:122) ~[corda-node-4.3.jar:?]
	at net.corda.node.internal.AbstractNode$start$8.invoke(AbstractNode.kt:399) ~[corda-node-4.3.jar:?]
	at net.corda.node.internal.AbstractNode$start$8.invoke(AbstractNode.kt:122) ~[corda-node-4.3.jar:?]
	at net.corda.nodeapi.internal.persistence.CordaPersistence.inTopLevelTransaction(CordaPersistence.kt:268) ~[corda-node-api-4.3.jar:?]
	at net.corda.nodeapi.internal.persistence.CordaPersistence.transaction(CordaPersistence.kt:237) ~[corda-node-api-4.3.jar:?]
	at net.corda.nodeapi.internal.persistence.CordaPersistence.transaction(CordaPersistence.kt:254) ~[corda-node-api-4.3.jar:?]
	at net.corda.node.internal.AbstractNode.start(AbstractNode.kt:388) ~[corda-node-4.3.jar:?]
	at net.corda.node.internal.Node.start(Node.kt:447) ~[corda-node-4.3.jar:?]
	at net.corda.node.internal.NodeStartup.startNode(NodeStartup.kt:210) ~[corda-node-4.3.jar:?]
	at net.corda.node.internal.NodeStartupCli$runProgram$2.run(NodeStartup.kt:131) ~[corda-node-4.3.jar:?]
	at net.corda.node.internal.NodeStartup$initialiseAndRun$5.invoke(NodeStartup.kt:187) ~[corda-node-4.3.jar:?]
	at net.corda.node.internal.NodeStartup$initialiseAndRun$5.invoke(NodeStartup.kt:138) ~[corda-node-4.3.jar:?]
	at net.corda.node.internal.NodeStartupLogging$DefaultImpls.attempt(NodeStartup.kt:529) ~[corda-node-4.3.jar:?]
	at net.corda.node.internal.NodeStartup.attempt(NodeStartup.kt:138) ~[corda-node-4.3.jar:?]
	at net.corda.node.internal.NodeStartup.initialiseAndRun(NodeStartup.kt:186) ~[corda-node-4.3.jar:?]
	at net.corda.node.internal.NodeStartupCli.runProgram(NodeStartup.kt:129) ~[corda-node-4.3.jar:?]
	at net.corda.cliutils.CordaCliWrapper.call(CordaCliWrapper.kt:190) ~[corda-tools-cliutils-4.3.jar:?]
	at net.corda.node.internal.NodeStartupCli.call(NodeStartup.kt:84) ~[corda-node-4.3.jar:?]
	at net.corda.node.internal.NodeStartupCli.call(NodeStartup.kt:65) ~[corda-node-4.3.jar:?]
	at picocli.CommandLine.execute(CommandLine.java:1173) ~[picocli-3.9.6.jar:3.9.6]
	at picocli.CommandLine.access$800(CommandLine.java:141) ~[picocli-3.9.6.jar:3.9.6]
	at picocli.CommandLine$RunLast.handle(CommandLine.java:1367) ~[picocli-3.9.6.jar:3.9.6]
	at picocli.CommandLine$RunLast.handle(CommandLine.java:1335) ~[picocli-3.9.6.jar:3.9.6]
	at picocli.CommandLine$AbstractParseResultHandler.handleParseResult(CommandLine.java:1243) ~[picocli-3.9.6.jar:3.9.6]
	at picocli.CommandLine.parseWithHandlers(CommandLine.java:1526) ~[picocli-3.9.6.jar:3.9.6]
	at net.corda.cliutils.CordaCliWrapperKt.start(CordaCliWrapper.kt:73) ~[corda-tools-cliutils-4.3.jar:?]
	at net.corda.node.Corda.main(Corda.kt:13) ~[corda-node-4.3.jar:?]
[INFO ] 2019-11-23T17:10:47,264Z [main] statemachine.SingleThreadedStateMachineManager. - Node ready, info: NodeInfo(addresses=[localhost:10003], legalIdentitiesAndCerts=[O=PartyA, L=London, C=GB], platformVersion=5, serial=1574528954094)
[INFO ] 2019-11-23T17:10:47,304Z [Node thread-1] internal.Node. - Registering JMX reporter:
[INFO ] 2019-11-23T17:10:47,304Z [Node thread-1] internal.Node. - Registering Jolokia JMX reporter:
[INFO ] 2019-11-23T17:10:47,305Z [main] BasicInfo. - Loaded 1 CorDapp(s)                     : Workflow CorDapp: Pigtail version 1 by vendor Corda Open Source with licence Apache License, Version 2.0
[INFO ] 2019-11-23T17:10:47,308Z [main] BasicInfo. - Node for "PartyA" started up and registered in 14.96 sec
[INFO ] 2019-11-23T17:10:47,310Z [main] rpc.RPCServer. - Starting RPC server with configuration RPCServerConfiguration(rpcThreadPoolSize=4, reapInterval=PT1S, deduplicationCacheExpiry=PT24H)

After reverting to

cordaVersion=4.1
platformVersion=4

it works:

zoltans-macbook-pro:~ zoal$ bash -c 'cd "/Users/zoal/projects/sdx/corda/samples/pigtail/build/nodes/PartyA" ; "/Users/zoal/.sdkman/candidates/java/8.0.222.hs-adpt/jre/bin/java" "-Dcapsule.jvm.args=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -javaagent:drivers/jolokia-jvm-1.6.0-agent.jar=port=7005,logHandlerClass=net.corda.node.JolokiaSlf4jAdapter" "-Dname=PartyA" "-jar" "/Users/zoal/projects/sdx/corda/samples/pigtail/build/nodes/PartyA/corda.jar" && exit'
Listening for transport dt_socket at address: 5005
Jolokia: Agent started with URL http://127.0.0.1:7005/jolokia/

   ______               __
  / ____/     _________/ /___ _
 / /     __  / ___/ __  / __ `/         Computers are useless. They can only
/ /___  /_/ / /  / /_/ / /_/ /          give you answers.  -- Picasso
\____/     /_/   \__,_/\__,_/

--- Corda Open Source 4.1 (c11f6c1) -------------------------------------------------------------


Logs can be found in                    : /Users/zoal/projects/sdx/corda/samples/pigtail/build/nodes/PartyA/logs
⚠️   ATTENTION: This node is running in development mode! 👩‍💻   This is not safe for production deployment.
Advertised P2P messaging addresses      : localhost:10003
RPC connection address                  : localhost:10004
RPC admin connection address            : localhost:10005
Mounting braid services...
Braid server started on                 : http://localhost:8080/api/
Loaded 1 CorDapp(s)                     : Workflow CorDapp: Pigtail version 1 by vendor Corda Open Source with licence Apache License, Version 2.0
Node for "PartyA" started up and registered in 14.85 sec


Welcome to the Corda interactive shell.
Useful commands include 'help' to see what is available, and 'bye' to shut down the node.

Sat Nov 23 18:24:30 CET 2019>>>       
@AdrianChallinorOsiris
Copy link

Concur - Same fault found, same fix worked .Using branch release-V4

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

No branches or pull requests

2 participants