Skip to content

Serialization whitelists not loaded #6

@bjornbugge

Description

@bjornbugge

It seems like custom SerializationWhitelists are not loaded when the node-server loads CorDapp jars. If a CorDapp depens on this the node-server reports the error below

2022-03-28 18:11:26.408 ERROR 1 --- [nio-8580-exec-3] n.c.s.i.amqp.DeserializationInput        : Serialization failed direction="Deserialize", type="org.foo.Bar" msg="Class "class org.foo.Bar" is not on the whitelist or annotated with @CordaSerializable.", ClassChain="org.foo.Bar"

This makes the node-explorer UI unable to show transactions.

It seems like the problem lies somewhere in TransactionServiceImpl.java and in the way that the classes are loaded. In particular, there are no calls to java.util.ServiceLoader.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions