[jira] [Commented] (AVRO-2514) Making Avro serialization error message more actionable with schema name and field name

2020-05-29 Thread Hudson (Jira)


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

Hudson commented on AVRO-2514:
--

FAILURE: Integrated in Jenkins build AvroJava #893 (See 
[https://builds.apache.org/job/AvroJava/893/])
AVRO-2514:Making Avro serialization error message more actionable (github: 
[https://github.com/apache/avro/commit/e3b06fb914abc05c0fc232e54be94883b784dff6])
* (edit) 
lang/java/avro/src/main/java/org/apache/avro/generic/GenericDatumWriter.java
* (edit) 
lang/java/avro/src/main/java/org/apache/avro/reflect/ReflectDatumWriter.java


> Making Avro serialization error message more actionable with schema name and 
> field name
> ---
>
> Key: AVRO-2514
> URL: https://issues.apache.org/jira/browse/AVRO-2514
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: java
>Affects Versions: 1.6.3, 1.9.0, 1.8.2
>Reporter: Jagannathrao Mudda
>Assignee: Zezeng Wang
>Priority: Major
> Fix For: 1.10.0
>
>
> In certain scenarios when there is a serialization error, avro serializer 
> gives following error messages that are not actionable without any schema 
> name and/field name in it.
>  * java.lang.Double cannot be cast to java.lang.Long
>  * Not an enum: null
>  * ClassCastException 
>  * ..
> If there is a filed name of specific schema that is causing these 
> serialization errors, that helps to fix such issues quickly.
>  
> *Proposed Changes:*
> The "writeWithoutConversion" method of "GenericDatumWriter"  class can be 
> updated to handle "ClassCastException" along with "NullPointerException" to 
> throw an exception with schema name and field name.
> The "writeEnum", "writeField", and "error" method can be enhanced to add 
> field names so that error message can have the field that is causing the 
> issue.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (AVRO-2514) Making Avro serialization error message more actionable with schema name and field name

2020-05-29 Thread ASF subversion and git services (Jira)


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

ASF subversion and git services commented on AVRO-2514:
---

Commit e3b06fb914abc05c0fc232e54be94883b784dff6 in avro's branch 
refs/heads/master from Zezeng Wang
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=e3b06fb ]

AVRO-2514:Making Avro serialization error message more actionable with... (#685)

* AVRO-2514:Making Avro serialization error message more actionable with field 
name

* Update GenericDatumWriter.java

Update to runtime exception

* Update ReflectDatumWriter.java

* AVRO-2514:Update GennericDatumWriter method

> Making Avro serialization error message more actionable with schema name and 
> field name
> ---
>
> Key: AVRO-2514
> URL: https://issues.apache.org/jira/browse/AVRO-2514
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: java
>Affects Versions: 1.6.3, 1.9.0, 1.8.2
>Reporter: Jagannathrao Mudda
>Priority: Major
> Fix For: 1.10.0
>
>
> In certain scenarios when there is a serialization error, avro serializer 
> gives following error messages that are not actionable without any schema 
> name and/field name in it.
>  * java.lang.Double cannot be cast to java.lang.Long
>  * Not an enum: null
>  * ClassCastException 
>  * ..
> If there is a filed name of specific schema that is causing these 
> serialization errors, that helps to fix such issues quickly.
>  
> *Proposed Changes:*
> The "writeWithoutConversion" method of "GenericDatumWriter"  class can be 
> updated to handle "ClassCastException" along with "NullPointerException" to 
> throw an exception with schema name and field name.
> The "writeEnum", "writeField", and "error" method can be enhanced to add 
> field names so that error message can have the field that is causing the 
> issue.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (AVRO-2514) Making Avro serialization error message more actionable with schema name and field name

2020-05-29 Thread ASF subversion and git services (Jira)


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

ASF subversion and git services commented on AVRO-2514:
---

Commit e3b06fb914abc05c0fc232e54be94883b784dff6 in avro's branch 
refs/heads/master from Zezeng Wang
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=e3b06fb ]

AVRO-2514:Making Avro serialization error message more actionable with... (#685)

* AVRO-2514:Making Avro serialization error message more actionable with field 
name

* Update GenericDatumWriter.java

Update to runtime exception

* Update ReflectDatumWriter.java

* AVRO-2514:Update GennericDatumWriter method

> Making Avro serialization error message more actionable with schema name and 
> field name
> ---
>
> Key: AVRO-2514
> URL: https://issues.apache.org/jira/browse/AVRO-2514
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: java
>Affects Versions: 1.6.3, 1.9.0, 1.8.2
>Reporter: Jagannathrao Mudda
>Priority: Major
> Fix For: 1.10.0
>
>
> In certain scenarios when there is a serialization error, avro serializer 
> gives following error messages that are not actionable without any schema 
> name and/field name in it.
>  * java.lang.Double cannot be cast to java.lang.Long
>  * Not an enum: null
>  * ClassCastException 
>  * ..
> If there is a filed name of specific schema that is causing these 
> serialization errors, that helps to fix such issues quickly.
>  
> *Proposed Changes:*
> The "writeWithoutConversion" method of "GenericDatumWriter"  class can be 
> updated to handle "ClassCastException" along with "NullPointerException" to 
> throw an exception with schema name and field name.
> The "writeEnum", "writeField", and "error" method can be enhanced to add 
> field names so that error message can have the field that is causing the 
> issue.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (AVRO-2514) Making Avro serialization error message more actionable with schema name and field name

2020-05-29 Thread ASF subversion and git services (Jira)


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

ASF subversion and git services commented on AVRO-2514:
---

Commit e3b06fb914abc05c0fc232e54be94883b784dff6 in avro's branch 
refs/heads/master from Zezeng Wang
[ https://gitbox.apache.org/repos/asf?p=avro.git;h=e3b06fb ]

AVRO-2514:Making Avro serialization error message more actionable with... (#685)

* AVRO-2514:Making Avro serialization error message more actionable with field 
name

* Update GenericDatumWriter.java

Update to runtime exception

* Update ReflectDatumWriter.java

* AVRO-2514:Update GennericDatumWriter method

> Making Avro serialization error message more actionable with schema name and 
> field name
> ---
>
> Key: AVRO-2514
> URL: https://issues.apache.org/jira/browse/AVRO-2514
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: java
>Affects Versions: 1.6.3, 1.9.0, 1.8.2
>Reporter: Jagannathrao Mudda
>Priority: Major
> Fix For: 1.10.0
>
>
> In certain scenarios when there is a serialization error, avro serializer 
> gives following error messages that are not actionable without any schema 
> name and/field name in it.
>  * java.lang.Double cannot be cast to java.lang.Long
>  * Not an enum: null
>  * ClassCastException 
>  * ..
> If there is a filed name of specific schema that is causing these 
> serialization errors, that helps to fix such issues quickly.
>  
> *Proposed Changes:*
> The "writeWithoutConversion" method of "GenericDatumWriter"  class can be 
> updated to handle "ClassCastException" along with "NullPointerException" to 
> throw an exception with schema name and field name.
> The "writeEnum", "writeField", and "error" method can be enhanced to add 
> field names so that error message can have the field that is causing the 
> issue.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Commented] (AVRO-2514) Making Avro serialization error message more actionable with schema name and field name

2019-10-25 Thread Zezeng Wang (Jira)


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

Zezeng Wang commented on AVRO-2514:
---

[~jmudda]
I added the field name, which should help guide the modification. Please check 
the PR and it will reach your expected result.

> Making Avro serialization error message more actionable with schema name and 
> field name
> ---
>
> Key: AVRO-2514
> URL: https://issues.apache.org/jira/browse/AVRO-2514
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: java
>Affects Versions: 1.6.3, 1.9.0, 1.8.2
>Reporter: Jagannathrao Mudda
>Priority: Major
> Fix For: 1.10.0
>
>
> In certain scenarios when there is a serialization error, avro serializer 
> gives following error messages that are not actionable without any schema 
> name and/field name in it.
>  * java.lang.Double cannot be cast to java.lang.Long
>  * Not an enum: null
>  * ClassCastException 
>  * ..
> If there is a filed name of specific schema that is causing these 
> serialization errors, that helps to fix such issues quickly.
>  
> *Proposed Changes:*
> The "writeWithoutConversion" method of "GenericDatumWriter"  class can be 
> updated to handle "ClassCastException" along with "NullPointerException" to 
> throw an exception with schema name and field name.
> The "writeEnum", "writeField", and "error" method can be enhanced to add 
> field names so that error message can have the field that is causing the 
> issue.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)