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

JsonGenerator.render java.lang.NoSuchMethodError #83

Open
pnrobinson opened this issue Jul 27, 2017 · 1 comment
Open

JsonGenerator.render java.lang.NoSuchMethodError #83

pnrobinson opened this issue Jul 27, 2017 · 1 comment

Comments

@pnrobinson
Copy link

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).

--

@julesjacobsen
Copy link
Contributor

Can you send me a link to your pom? Its almost certainly a Jackson version incompatibility. Perhaps you're including some of the excluded libs in your own pom and these are incompatible with the requirements of the Json-LD versions.

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