Kafka Exception ConfigException
org.apache.kafka.common.config.ConfigException
Non-retriable
Configuration
Thrown if the user supplies an invalid configuration
Common Causes
- A client, broker, connector, or Streams configuration key has an invalid value (wrong type, out of range, or an unknown enum)
- A required configuration property is missing
- An unknown/typo'd configuration key for the component being configured
Solutions
- Read the message — it names the exact key and the invalid value, e.g. 'Invalid value for configuration X'
- Cross-check the key, type, and allowed values against the Kafka configuration reference for that component
- For Connect/Streams, validate the config map before starting (Connect's PUT /connector-plugins/<name>/config/validate endpoint helps)
Example Stack Trace
org.apache.kafka.common.config.ConfigException: Invalid value foo for configuration acks: String must be one of: all, -1, 0, 1
at org.apache.kafka.common.config.ConfigDef.parseType(ConfigDef.java:740)
Hitting
ConfigException in production? Conduktor Console gives you real-time visibility into clients, consumer groups, and broker health. Browse every Kafka exception or protocol error code.