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

[0.5.0-Dev] type cast exception while converting from hapi object to avro specific record #66

Closed
amarvakul opened this issue Dec 17, 2019 · 1 comment

Comments

@amarvakul
Copy link
Contributor

Please fill out the below template as best you can.

Description of Issue

Following exception is thrown while converting a HAPI object that has contained resource to an Avro SpecificRecord object

Caused by: java.lang.ClassCastException: com.cerner.bunsen.stu3.avro.Provenance cannot be cast to org.apache.avro.generic.GenericData$RecordCaused by: java.lang.ClassCastException: com.cerner.bunsen.stu3.avro.Provenance cannot be cast to org.apache.avro.generic.GenericData$Record at com.cerner.bunsen.avro.converters.DefinitionToAvroVisitor$HapiContainedToAvroConverter.createContained(DefinitionToAvroVisitor.java:258) at com.cerner.bunsen.definitions.HapiContainedConverter.fromHapi(HapiContainedConverter.java:113) at com.cerner.bunsen.definitions.HapiCompositeConverter.fromHapi(HapiCompositeConverter.java:190) at com.cerner.bunsen.avro.AvroConverter.resourceToAvro(AvroConverter.java:173) at

@bdrillard
Copy link
Contributor

Closed by #67

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