This generally means you have a CLASSPATH problem - either the JAR
containing that class isn't ending up being linked in, or the wrong version
of the JAR is.

On Fri, Jul 8, 2022 at 2:12 PM Sahith Nallapareddy via dev <
[email protected]> wrote:

> Hello,
>
> I sent an email sometime ago about java external transforms in a java job.
> Seems like things are for the most part working, but we have run into this
> error that I have attached. At the base cause it says
> [debug] Caused by: java.lang.ClassNotFoundException:
> com.spotify.ingestion.recentactivity.RecentActivityFeature
> [debug]         at
> java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
> [debug]         at
> java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
> [debug]         at
> java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
> [debug]         at java.base/java.lang.Class.forName0(Native Method)
>
> for a class used in the external transform. We find that it seems to be
> related to this code isJavaSDKCompatible method
> <https://github.com/apache/beam/blob/66ffc0b9fe99ba7d305d00c2f93e29979b1b2123/runners/core-construction-java/src/main/java/org/apache/beam/runners/core/construction/External.java#L419>
>  and
> maybe this PR <https://github.com/apache/beam/pull/11018/files>. We
> monkey patched the file and made the method return false, which seemed to
> get further. That was just us messing around to see what happens and maybe
> runs into more issues down the line. Any guidance here on what is going on
> and how we might be able to fix this?
>
> Thanks,
>
> Sahith
>
>

Reply via email to