[
https://issues.apache.org/jira/browse/NIFI-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15064414#comment-15064414
]
ASF subversion and git services commented on NIFI-1284:
-------------------------------------------------------
Commit 4249fc943a5c6487cd2c19c646497bb95893a96e in nifi's branch
refs/heads/master from [~bbende]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=4249fc9 ]
NIFI-1284 Creating inner class for SiteToSiteClientConfig to fix serialization
issue
> Unable to serialize SiteToSiteClientConfig
> ------------------------------------------
>
> Key: NIFI-1284
> URL: https://issues.apache.org/jira/browse/NIFI-1284
> Project: Apache NiFi
> Issue Type: Improvement
> Affects Versions: 0.4.0, 0.3.0
> Reporter: Bryan Bende
> Assignee: Bryan Bende
> Priority: Minor
> Fix For: 0.5.0, 0.4.1
>
> Attachments: NIFI-1284.patch
>
>
> While using the SiteToSiteClient with a third party framework that uses Kryo
> serialization, I ran into this issue:
> Caused by: com.esotericsoftware.kryo.KryoException: Class cannot be created
> (missing no-arg constructor):
> org.apache.nifi.remote.client.SiteToSiteClient$Builder$1
> $1 is the anonymous inner class created in
> SiteToSiteClient.Builder.buildConfig().
> The issue here is that behind the scenes the anonymous inner class ends up
> with a constructor which takes the outer class an arg, so there ends up being
> no 0-arg constructor.
> Putting this ticket in to see if it is possible to somehow move that
> anonymous inner class to a static inner class.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)