Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ has stopped printing stack traces when my app fails

I have frequently been seeing this error in IntelliJ (Ultimate 2020.2.3):

Cause: cannot assign instance of java.util.Collections$EmptyList to field java.lang.StackTraceElement.moduleVersion of type java.lang.String in instance of java.lang.StackTraceElement

It doesn't seem to be able to show me any stack traces from my app. This behavior started with an upgrade some weeks back.

I tried running with --stacktrace but it made no difference.

like image 245
Stevey Avatar asked Oct 26 '20 02:10

Stevey


1 Answers

I had the same problem after I updated my IntelliJ to the latest (2021.2 Ultimate). I managed to fix the issue by changing the Gradle JVM from the Project SDK to the one from Gradle directory (AdoptOpenJDK 11.0.9 in my case).

like image 190
Sanoop Avatar answered Sep 27 '22 20:09

Sanoop