[ 
https://issues.apache.org/jira/browse/AVRO-457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15112209#comment-15112209
 ] 

Bram Biesbrouck commented on AVRO-457:
--------------------------------------

I wish it was that easy. When I run this code 
{code:java}
Schema avroSchema = ReflectData.get().getSchema(EbuCoreMainType.class);
{code}

I get this exception: {code}org.apache.avro.AvroTypeException: Unknown type: 
T{code}
because JAXBElement uses generic types and one of the members in the tree is:
{code}
protected List<JAXBElement<Object>> audioContentIDRef;
{code}
and generics don't seem to work well.

Any suggestions to get around this?

b.

> add tools that read/write xml records from/to avro data files
> -------------------------------------------------------------
>
>                 Key: AVRO-457
>                 URL: https://issues.apache.org/jira/browse/AVRO-457
>             Project: Avro
>          Issue Type: New Feature
>          Components: java
>    Affects Versions: 1.7.8
>            Reporter: Doug Cutting
>              Labels: gsoc
>         Attachments: AVRO-457.patch, AVRO-457.patch, AVRO-457.patch, 
> AVRO-457.patch, ebucore.json
>
>
> It might be useful to have command-line tools that can read & write arbitrary 
> XML data from & to Avro data files.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to