You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Flink Jira Bot (Jira)" <ji...@apache.org> on 2022/04/08 10:41:00 UTC
[jira] [Updated] (FLINK-19396) Fix properties type cast error
[ https://issues.apache.org/jira/browse/FLINK-19396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Flink Jira Bot updated FLINK-19396:
-----------------------------------
Labels: auto-deprioritized-major pull-request-available stale-minor (was: auto-deprioritized-major pull-request-available)
I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help the community manage its development. I see this issues has been marked as Minor but is unassigned and neither itself nor its Sub-Tasks have been updated for 180 days. I have gone ahead and marked it "stale-minor". If this ticket is still Minor, please either assign yourself or give an update. Afterwards, please remove the label or in 7 days the issue will be deprioritized.
> Fix properties type cast error
> ------------------------------
>
> Key: FLINK-19396
> URL: https://issues.apache.org/jira/browse/FLINK-19396
> Project: Flink
> Issue Type: Bug
> Components: Connectors / Kafka
> Affects Versions: 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.11.2
> Reporter: zhangmeng
> Priority: Minor
> Labels: auto-deprioritized-major, pull-request-available, stale-minor
>
> Properties extends Hashtable<Object,Object> ,The key and value of the Properties class support object objects. If the user's value is a boolean type, this code "(String) k, (String) v" will occur an error.
>
>
> 链接kafka失败!!!java.lang.Boolean cannot be cast to java.lang.String
> 48704:java.lang.ClassCastException: java.lang.Boolean cannot be cast to java.lang.String
> 48787:at org.apache.flink.table.descriptors.Kafka.lambda$properties$0(Kafka.java:99)
> 48867:at java.util.Hashtable.forEach(Hashtable.java:878)
> 48919:at org.apache.flink.table.descriptors.Kafka.properties(Kafka.java:99)
>
--
This message was sent by Atlassian Jira
(v8.20.1#820001)