I tracked this down in the end. It turns out the POJO was not actually
defined as 'public' for some reason. It seems like this should be detected
as an error prior to generating code though?


Thanks,

Andy.

--

Andy Grove
Chief Architect
www.agildata.com


On Fri, Aug 5, 2016 at 8:28 AM, Andy Grove <[email protected]> wrote:

> Hi,
>
> I've run into another issue upgrading a Spark example written in Java from
> Spark 1.6 to 2.0. The code is here:
>
> https://github.com/AgilData/apache-spark-examples/blob/
> spark_2.0/src/main/java/JRankCountiesBySexUsingDataset.java
>
> The runtime error is:
>
> org.codehaus.commons.compiler.CompileException: File 'generated.java',
> Line 85, Column 139: No applicable constructor/method found for zero actual
> parameters; candidates are: "public java.lang.String JGeo.getLogrecno()"
>
> I'd appreciate some advice on how to fix this, or whether this is a valid
> Spark bug that I should file a JIRA for.
>
>
> Thanks,
>
> Andy.
>
> --
>
> Andy Grove
> Chief Architect
> www.agildata.com
>
>

Reply via email to