# org.apache.kafka.connect.errors.DataException: Java class class java.util.Date does not have corresponding schema type

**URL:** <https://forum.confluent.io/t/org-apache-kafka-connect-errors-dataexception-java-class-class-java-util-date-does-not-have-corresponding-schema-type/2137>\
**Category:** Kafka Connect\
**Created:** [29 June 2021 15:18 UTC](https://forum.confluent.io/t/org-apache-kafka-connect-errors-dataexception-java-class-class-java-util-date-does-not-have-corresponding-schema-type/2137 "2021-06-29T15:18:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![meghnamariam](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/meghnamariam/32/900_2.png) [@meghnamariam](https://forum.confluent.io/u/meghnamariam)\
**Post date:** [29 June 2021 15:18 UTC](https://forum.confluent.io/t/org-apache-kafka-connect-errors-dataexception-java-class-class-java-util-date-does-not-have-corresponding-schema-type/2137/1 "2021-06-29T15:18:11Z")

</div>

Hi , I have downloaded Elastic search 7.13.2 and kafka connect elastic search 11.0.6 sink connector.

I have enabled the configuration transforms.formatTS.target.type=Date/Timestamp.But fetching an error  
`org.apache.kafka.connect.errors.DataException: Java class class java.util.Date does not have corresponding schema type.`

Please help to resolve this issue.

---

<div class="post-metadata">

**Author:** ![rick](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/rick/32/49_2.png) [@rick](https://forum.confluent.io/u/rick)\
**Post date:** [29 June 2021 15:40 UTC](https://forum.confluent.io/t/org-apache-kafka-connect-errors-dataexception-java-class-class-java-util-date-does-not-have-corresponding-schema-type/2137/2 "2021-06-29T15:40:32Z")

</div>

@meghnamariam Does this documentation example help? Based on the configuration you posted, you may have an improper configuration setup.

> **[TimestampConverter | Confluent Documentation](https://docs.confluent.io/platform/current/connect/transforms/timestampconverter.html#example)**
>
> This document provides usage information for the Apache Kafka SMT org.apache.kafka.connect.transforms.TimestampConverter.

---

<div class="post-metadata">

**Author:** ![meghnamariam](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/meghnamariam/32/900_2.png) [@meghnamariam](https://forum.confluent.io/u/meghnamariam)\
**Post date:** [29 June 2021 17:53 UTC](https://forum.confluent.io/t/org-apache-kafka-connect-errors-dataexception-java-class-class-java-util-date-does-not-have-corresponding-schema-type/2137/3 "2021-06-29T17:53:56Z")

</div>

transforms.TimestampConverter.target.type": “string/unix” works fine .  
But if type is set Date/Time/Timestamp  
Getting this exception.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/c49438c90c9df282e9996fdf6971be890c71b65a.svg) [@system](https://forum.confluent.io/u/system)\
**Post date:** [29 July 2021 17:54 UTC](https://forum.confluent.io/t/org-apache-kafka-connect-errors-dataexception-java-class-class-java-util-date-does-not-have-corresponding-schema-type/2137/4 "2021-07-29T17:54:00Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
