question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.IllegalStateException: Could not load module definition from: VirtualFile

See original GitHub issue

hi, when i upgradle gradle plugin version to 7.0.0 and gradle version to 7.0.2, i get the below error. kotlinter version is 3.4.5.

java.lang.IllegalStateException: Could not load module definition from: VirtualFile: /Users****s/Home!/modules/java.base/module-info.class. The file might be broken by incorrect post-processing via bytecode tools. Please remove this file from the classpath.
	at org.jetbrains.kotlin.resolve.jvm.modules.JavaModuleInfo$Companion.read(JavaModuleInfo.kt:109)
	at org.jetbrains.kotlin.cli.jvm.modules.CliJavaModuleFinder.findSystemModule(CliJavaModuleFinder.kt:53)
	at org.jetbrains.kotlin.cli.jvm.modules.CliJavaModuleFinder.access$findSystemModule(CliJavaModuleFinder.kt:28)
	at org.jetbrains.kotlin.cli.jvm.modules.CliJavaModuleFinder$systemModules$1.invoke(CliJavaModuleFinder.kt:46)
	at org.jetbrains.kotlin.cli.jvm.modules.CliJavaModuleFinder$systemModules$1.invoke(CliJavaModuleFinder.kt:46)
	at kotlin.sequences.TransformingSequence$iterator$1.next(Sequences.kt:210)
	at kotlin.sequences.FilteringSequence$iterator$1.calcNext(Sequences.kt:170)
	at kotlin.sequences.FilteringSequence$iterator$1.hasNext(Sequences.kt:194)
	at kotlin.sequences.FlatteningSequence$iterator$1.ensureItemIterator(Sequences.kt:316)
	at kotlin.sequences.FlatteningSequence$iterator$1.hasNext(Sequences.kt:303)
	at kotlin.sequences.SequencesKt___SequencesKt.none(_Sequences.kt:1921)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Dougie008commented, Aug 12, 2021

still same error, but very intersting, in my another project(same environment, i had checked the config files) work well.

0reactions
jeremymailencommented, Aug 12, 2021

I just released 3.5.0 which bumps min kotlin to 1.5.0. Give this a try and see if it fixes compatibility? Of course no longer will work with kotlin 1.4.x. Includes the ktlint 0.42.1 upgrade.

Read more comments on GitHub >

github_iconTop Results From Across the Web

KT-44735 - JetBrains YouTrack
java.lang.IllegalStateException: Could not load module definition from: VirtualFile: /usr/lib/jvm/java-15-openjdk-amd64!/modules/java.base/module-info.class.
Read more >
Kotlin 1.4.30 Apache beam compilation error - Stack Overflow
It causes by the Kotlin compiler. Sorry for nuisance, I'm currently fixing that on the compiler's side. The fix will be available in...
Read more >
kotlin/ClasspathRootsResolver.kt at master · JetBrains/kotlin
JavaModuleInfo. import org.jetbrains.kotlin.resolve.jvm.modules.KOTLIN_STDLIB_MODULE_NAME. import java.io.IOException. import java.util.jar.Attributes.
Read more >
userguide.pdf - Gradle User Manual
Gradle ships with its own Groovy library, therefore Groovy does not need to be installed. ... affected tests to work with your java.util.logging...
Read more >
7. Changes in this release JBoss Enterprise Application Platform 6.3 ...
In previous versions of JBoss EAP 6, servers in a managed domain would not launch successfully if they were configured to use a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found