kafka-jira mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KAFKA-5620) SerializationException in doSend() masks class cast exception
Date Sat, 26 Aug 2017 23:10:00 GMT

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

ASF GitHub Bot commented on KAFKA-5620:
---------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/kafka/pull/3556


> SerializationException in doSend() masks class cast exception
> -------------------------------------------------------------
>
>                 Key: KAFKA-5620
>                 URL: https://issues.apache.org/jira/browse/KAFKA-5620
>             Project: Kafka
>          Issue Type: Bug
>    Affects Versions: 0.11.0.0
>            Reporter: Jeremy Custenborder
>            Assignee: Jeremy Custenborder
>             Fix For: 1.0.0
>
>
> I misconfigured my Serializer and passed a byte array to BytesSerializer. This caused
the following exception to be thrown. 
> {code}
> org.apache.kafka.common.errors.SerializationException: Can't convert value of class [B
to class org.apache.kafka.common.serialization.BytesSerializer specified in value.serializer
> {code}
> This doesn't provide much detail because it strips the ClassCastException. It made figuring
this out much more difficult. The real value was the inner exception which was:
> {code}
> [B cannot be cast to org.apache.kafka.common.utils.Bytes
> {code}
> We should include the ClassCastException.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message