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

Guozhang Wang resolved KAFKA-5620.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 1.0.0

Issue resolved by pull request 3556
[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)

Reply via email to