Fork me on GitHub
#graalvm
<
2022-10-06
>
lambdam07:10:14

Hello everyone. I'm trying to compile a small website that has a form that sends emails from the backend. I usually use https://github.com/toyokumo/tarayo but bumped into the Random/SplittableRandom limitation of GraalVM (https://foivos.zakkak.net/tutorials/working-with-randoms-native-images/) because of a dependency of the lib that uses this class. I switched to https://github.com/drewr/postal which compiles without problem. But then, when I try the form from the compiled version of the website, the piece of code that usually blocks ~1 second before sending the email, returns instantly without sending any email. The postal lib relies on the jakarta mail library. Is it a known behaviour ? Is there a way to debug and/or fix this kind of problem with specific compilation options or code instructions ? Thanks a lot.