You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "Balaji Seshadri (JIRA)" <ji...@apache.org> on 2013/11/05 14:55:31 UTC

[jira] [Updated] (AVRO-1392) Unable to marshal enum to Avro

     [ https://issues.apache.org/jira/browse/AVRO-1392?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Balaji Seshadri updated AVRO-1392:
----------------------------------

    Priority: Blocker  (was: Major)

> Unable to marshal enum to Avro
> ------------------------------
>
>                 Key: AVRO-1392
>                 URL: https://issues.apache.org/jira/browse/AVRO-1392
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>         Environment: DEV
>            Reporter: Balaji Seshadri
>            Priority: Blocker
>
> I'm trying to marshall below object to Avro format and unable to marshall it using ReflectDatum Writer.Enums are being rejected while marshalling.
> public class AccountAccess extends DESBusinessEvent<String> {
> 	@XmlElement(required = true)
>     protected String accountId;
>     @XmlElement(required = true)
>     @XmlSchemaType(name = "dateTime")
>     @AvroEncode(using=XmlDateAsLong.class)
>     protected XMLGregorianCalendar dateTime;
> //    @XmlElement(namespace = DESNamespaces.ENUM_NAMESPACE, required = true)
>     @XmlElement(required = true)
>     @Stringable
>     protected ApplicationEnum application;
> //    @XmlElement(namespace = DESNamespaces.ENUM_NAMESPACE, required = true)
>     @XmlElement(required = true)
>     @Stringable
>     protected UserTypeEnum userType;
>     protected String userId;
>     
> }



--
This message was sent by Atlassian JIRA
(v6.1#6144)