Skip to content
This repository was archived by the owner on Sep 25, 2018. It is now read-only.
This repository was archived by the owner on Sep 25, 2018. It is now read-only.

JsonGenerator.render java.lang.NoSuchMethodError #83

@pnrobinson

Description

@pnrobinson

I am roughly following the code in a test class in order to write phenopackets from another Java app with geno pheno information.
This method:
JsonGenerator.render(packet);

leads to

java.lang.NoSuchMethodError: com.fasterxml.jackson.annotation.JsonInclude$Value.merge(Lcom/fasterxml/jackson/annotation/JsonInclude$Value;Lcom/fasterxml/jackson/annotation/JsonInclude$Value;)Lcom/fasterxml/jackson/annotation/JsonInclude$Value;

a similar error occurs with the Yaml generator.

In the above, "packet" is a Phenopacket object that has been initialized like this:
PhenoPacket packet = new PhenoPacket.Builder().title(title).addDisease(disease).addPerson(person).addDisease(disease).addPhenotypeAssociation(association).setVariants(varlist).build();

Using the debugger, as far as I can see all of these items were successfully initialized.

Looking in the current pom file, I see that various Jackson JSON package versions are being excluded. I am wondering if perhaps the error message is related to that (but I know little about the Jackson package).

--

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