Running tests on Ubuntu server errors out while windows client works
The backstory is we're migrating our tests over to an Ubuntu system (20.04) so we can hook them up to Jenkins and automate running them. We are using the Jenkins Plugin: ReadyApi Functional Testing Plugin to run our tests
However upon running one of our tests we end up getting an error (I've included the full stack trace as an attachment)
java.lang.ClassCastException: class com.sun.mail.handlers.text_plain cannot be cast to class jakarta.activation.DataContentHandler
The test that is failing is calling an API that allows us to upload a file to the system via formdata, in this test in particular we are using uploading a PNG file with content-type application/octet-stream, not text/plain as suggested by the error. So It doesn't sound like this issue is being caused by our test being poorly configured.
We've had no other issues with any of our other tests thus far.
Any idea as how to fix this issue?