Error: java.lang.NoClassDefFoundError: javax/activation/DataSource

I have updated my Knime to 4.7.0 and suddenly my Table to R node bring up the above mentioned error.
In stackover flow it is mentioned that ““enterprise” modules got removed from the JDK and JRE”.
Any help would be appreciated

image

Hi @pio,

Can you share a sample workflow to investigate it?

BR,
Ali

Hi @ aliasghar_marvi
Here is the sample workflow

test.knwf (575.8 KB)

Hi @pio,

Apologies, that it took me while to respond to your query. I was successfully able to reproduce the error. In my case, this R snippet did not work on Java 17 installed on my system. However, it executed just fine with java 8. I have also pinged developers internally, I will let you know if there are any other recommendations from them.

Thanks,

Best,
Ali

2 Likes

Hi @aliasghar_marvi any update on this error being fixed?

Thanks
Pio

Hi @pio,

It is not an error per say :slight_smile: KNIME recently got updated to Java 17. So any packages which were not compatible with former version of Java were updated as well. Sadly, in your case the R package you intend to use is not compatible with Java 17. One work around, like I mentioned is to install Java 8 on system to make it work. That is how I did it and it worked for me :slight_smile:

P.S. The error which I received was that mail package could not send my email. It was different than what you were facing. I am assuming that since I am not part of the network, I cannot trigger connection to SMTP.

Thanks,

Best,
Ali

1 Like