[
https://issues.apache.org/jira/browse/NIFI-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bryan Bende reassigned NIFI-1284:
---------------------------------
Assignee: Bryan Bende
> 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
>
>
> 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)