You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "Bryan Bende (JIRA)" <ji...@apache.org> on 2015/12/15 21:14:46 UTC
[jira] [Assigned] (NIFI-1284) Unable to serialize
SiteToSiteClientConfig
[ 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)