I am getting the following error while executing the program.
And this is not always happening. The code contains some complex calculations with a large volume of data
I had a similar case and I could repair changing my from Oracle SDK to OpenSDK, and verify if your library is compaible with your java version