I am getting the same problem when trying to do FlatMap operation on my POJO class.
Exception in thread "main" java.lang.IllegalStateException: Detected more than one setter Am using Flink 1.2, the exception is coming when using FlatMap https://issues.apache.org/jira/browse/FLINK-5070