[
https://issues.apache.org/jira/browse/METRON-284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15366791#comment-15366791
]
ASF GitHub Bot commented on METRON-284:
---------------------------------------
Github user cestella commented on the issue:
https://github.com/apache/incubator-metron/pull/184
I took the liberty to also add a unit test to ensure that the *enrichment*
configs also serialize and deserialize properly.
> SensorParserConfig object cannot be serialized with the default Jackson
> ObjectMapper
> ------------------------------------------------------------------------------------
>
> Key: METRON-284
> URL: https://issues.apache.org/jira/browse/METRON-284
> Project: Metron
> Issue Type: Bug
> Reporter: Ryan Merriman
> Priority: Minor
>
> The SensorParserConfig object cannot be serialized without a custom Jackson
> ObjectMapper. Specifically, this is caused by the way the FieldTransformer
> is implemented. A call to SensorParserConfig.toJSON() will fail with this
> message if a transformer is configured:
> No serializer found for class
> org.apache.metron.common.field.transformation.MTLTransformation and no
> properties discovered to create BeanSerializer (to avoid exception, disable
> SerializationFeature.FAIL_ON_EMPTY_BEANS) )
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)