[
https://issues.apache.org/jira/browse/METRON-284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15366790#comment-15366790
]
ASF GitHub Bot commented on METRON-284:
---------------------------------------
GitHub user cestella opened a pull request:
https://github.com/apache/incubator-metron/pull/184
METRON-284: SensorParserConfig object cannot be serialized with the default
Jackson ObjectMapper
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) )
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/cestella/incubator-metron METRON-284
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-metron/pull/184.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #184
----
commit 35f116e14f953a2de03886d42b6fc6581ab768f7
Author: cstella <[email protected]>
Date: 2016-07-07T21:20:54Z
Updating the field transformer to allow serialization and deserialization
via jackson.
----
> 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)