You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "MarcelKobain (Jira)" <ji...@apache.org> on 2021/07/20 09:44:00 UTC

[jira] [Created] (AVRO-3179) ClassCastException: java.math.BigDecimal cannot be cast to java.nio.ByteBuffer

MarcelKobain created AVRO-3179:
----------------------------------

             Summary: ClassCastException: java.math.BigDecimal cannot be cast to java.nio.ByteBuffer
                 Key: AVRO-3179
                 URL: https://issues.apache.org/jira/browse/AVRO-3179
             Project: Apache Avro
          Issue Type: Bug
          Components: java
    Affects Versions: 1.10.2
            Reporter: MarcelKobain


Hello,

I think we have the same problem as AVRO-2212.

I have classCassException with a bigDecimal.

 

I have fixed passing on the 1.10.1 version and it works. But When i take 1.10.2 I have the bug.

 

Caused by: java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.nio.ByteBufferCaused by: java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.nio.ByteBuffer at postgres.table.Value.put(Value.java:240) at org.apache.avro.generic.GenericData.setField(GenericData.java:818) at org.apache.avro.specific.SpecificDatumReader.readField(SpecificDatumReader.java:139) at org.apache.avro.generic.GenericDatumReader.readRecord(GenericDatumReader.java:247) at org.apache.avro.specific.SpecificDatumReader.readRecord(SpecificDatumReader.java:123) at org.apache.avro.generic.GenericDatumReader.readWithoutConversion(GenericDatumReader.java:179)

 

 



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