Bryan Bende created NIFI-1284:
---------------------------------

             Summary: 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.3.0, 0.4.0
            Reporter: Bryan Bende
            Priority: Minor


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)

Reply via email to