我正在构建一个Spring服务器,使用CordaRPCClient作为Corde的中间件。从节点查询当前时间运行良好。然而,在打电话时
Set matchingParties = CordaClient.getInstance().proxy.partiesFromName("PartyB",false);
我得到了以下堆栈跟踪:
com.esotericsoftware.kryo.KryoException: java.lang.ClassCastException: org.bouncycastle.asn1.DLSequence cannot be cast to
我正在使用M13 (将尽快转移到M14 )。看到这个例外:
com.esotericsoftware.kryo.KryoException: Class kotlin.KotlinNullPointerException is not annotated or on the whitelist, so cannot be used in serialization
紧接其后:
E 15:11:10 [rpc-observation-sender-0] messaging.ObservableContext.sendMessage - Failed to send message, kickin
我已经创建了一个constants.java文件,如下所示:
public class Constants {
public static final String CORDA_USER_NAME = "user1";
public static final String CORDA_USER_PASSWORD = "test";
public static final String CORDA_NODE_HOST = "localhost";
public static final int CORDA_RPC_
**[INFO ] 16:14:44,014 [driver-pool-thread-0] (DriverDSLImpl.kt:169) internal.DriverDSLImpl.invoke - Exception while connecting to RPC, retrying to connect at localhost:10013 {}
org.apache.activemq.artemis.api.core.ActiveMQNotConnectedException: AMQ119007: Cannot connect to server(s). Tried with all
当我使用节点驱动程序运行Corda 3节点时,我间歇地得到以下异常:
[INFO ] 15:09:20,485 [driver-pool-thread-0] (DriverDSLImpl.kt:169) internal.DriverDSLImpl.invoke - Exception while connecting to RPC, retrying to connect at localhost:10013 {}
org.apache.activemq.artemis.api.core.ActiveMQNotConnectedException: AMQ119007: Cannot con
我正在尝试corda与spring boot的集成。
我在网上找到的例子很少。
我在上使用了示例“joeldudleyr3 r3/spring-observable stream”。
我已经尝试用上面提到的例子使用corda示例irs-demo来制作fat jar。但它给出的运行时错误如下:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rpcClient' defined in class path resource [net/corda/serv
这是在web日志中。即使事情看起来正在运行,我们也应该担心吗?
java.lang.IllegalStateException: Unable to create NettyConnector for localhost:10005
at org.apache.activemq.artemis.core.remoting.impl.netty.NettyConnector.start(NettyConnector.java:494) ~[artemis-core-client-2.1.0.jar:2.1.0]
at org.apache.activemq.artemis.cor
我是Corda的新手--我上周做了BootCamp,这周完成了认证测试。但是我忽略了一些复杂的东西,并且很难将Spring Boot web前端添加到RPC接口中。
我一直在通过yo-cordapp示例来尝试理解它。(我意识到它使用的是Corda web服务器,而不是Spring Boot web服务器,但没关系-我正在寻找的是如何让web-RPC-CorDapp工作的细节,而不是Spring的细节。)index.html文件中有一条注释说
GOING FORWARD WE RECOMMEND IMPLEMENTING A STANDALONE WEB SERVER THAT AUTHORIS
使用spring web server通过java中的方法检索节点信息时出现异常。
这是用自定义控制器编写的代码:
@RequestMapping(value="/me", produces = MediaType.APPLICATION_JSON)
public Party me() throws Exception
{
CordaRPCOps proxy = rpc.proxy;
Party id = proxy.nodeInfo().getLegalIdentities().get(0);
return
当我试图从客户端.The client.start()方法建立一个RPC连接时,我在Node日志上得到了以下异常,似乎被卡住了。代码如下。我在Jetty托管的servlet中运行这段代码。
final NetworkHostAndPort nodeAddress = NetworkHostAndPort.parse("localhost:10008");
final CordaRPCClient client = new CordaRPCClient(nodeAddress, CordaRPCClientConfiguration.DEFAULT
将通过API类测试Corda流的集成测试用例编写为:
val api=ProjectApi(mockNode1.rpcOps)
val message = "some input message"
val resp: Response=api.publishSSI(message)
assertEquals(resp.status, 201,"Failed to publish SSI")
但在api.publishSSI()方法中启动corda flow时出现CURRENT_RPC_CONTEXT.get() must not be null异常。可能的原因是
我是新来的科达和跟随链接。通过从运行配置中选择“运行示例RPC客户端”并单击绿色箭头,我将从IntelliJ运行。我得到日志上的错误如下所示:
Exception in thread "main" ActiveMQNotConnectedException[errorType=NOT_CONNECTED message=AMQ119007: Cannot connect to server(s). Tried with all available servers.]
at org.apache.activemq.artemis.core.client.impl.ServerLo
我有一个类似于的多模块项目。
我使用的是Corda3.2,Spring Boot2没有Kotlin,并且我有一组Corda节点在运行,这要归功于Corda。我能够从我的Spring Boot应用程序成功地连接到一个节点,但是在尝试获取nodeInfo时却遇到了麻烦。
我在上看到了类似的问题。但是“清除缓存”的答案让我感到困惑。这是否意味着要清除gradle的缓存?这有什么用呢?
下面是我的堆栈跟踪:
com.esotericsoftware.kryo.KryoException: java.lang.IllegalArgumentException: Privacy salt should b