You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by dhanuka ranasinghe <dh...@gmail.com> on 2016/10/04 06:56:52 UTC

Can't send json array as configuration

Hi All,

When trying to reconfigure kafka standalone connector I am getting below
Exception. Could you please help on this?

Caused by: com.fasterxml.jackson.databind.JsonMappingException: Can not
deserialize instance of java.lang.String out of START_ARRAY token


Error payload:

{"connector.class":"org.apache.kafka.connect.socket.SocketSourceConnector",
"tasks.max":"4", "topics":"socket-test", "schema.name":"socketschema","
type.name":"kafka-connect","schema.ignore":"true", "tcp.port":"12345",
"batch.size":"2","events_stateTriggerId":["monitoredCIName","producer","stateTriggerId","locationCode"]
}




working payload:

{"connector.class":"org.apache.kafka.connect.socket.SocketSourceConnector",
"tasks.max":"4", "topics":"socket-test", "schema.name":"socketschema","
type.name":"kafka-connect","schema.ignore":"true", "tcp.port":"12345",
"batch.size":"2" }


Cheers,
Dhanuka
-- 
Nothing Impossible,Creativity is more important than knowledge.