Stevey
Stevey

Reputation: 3281

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.

Upvotes: 12

Views: 9537

Answers (1)

Sanoop
Sanoop

Reputation: 61

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).

Upvotes: 6

Related Questions