intellij-platform-gradle-plugin: Running tests with 2022.3 beta fails with `java.lang.Error: com.intellij.util.lang.PathClassLoader`

  • Building and running tests against IC-223.7126.7-EAP-SNAPSHOT worked fine
  • Building and running tests against 2022.3 beta (i.e. IC-223.7401.7-EAP-SNAPSHOT) fails with the exception below
  • I’m using Gradle plugin id("org.jetbrains.intellij") version "1.10.0-SNAPSHOT" and executed with ./gradlew --refresh-dependencies clean build to pick up the latest version
> Task :test
OpenJDK 64-Bit Server VM warning: Archived non-system classes are disabled because the java.system.class.loader property is specified (value = "com.intellij.util.lang.PathClassLoader"). To use archived non-system classes, this property must not be set
CompileCommand: exclude com/intellij/openapi/vfs/impl/FilePartNodeRoot.trieDescend bool exclude = true
Error occurred during initialization of VM
java.lang.Error: com.intellij.util.lang.PathClassLoader
	at java.lang.ClassLoader.initSystemClassLoader(java.base@17.0.5/ClassLoader.java:1995)
	at java.lang.System.initPhase3(java.base@17.0.5/System.java:2246)
Caused by: java.lang.ClassNotFoundException: com.intellij.util.lang.PathClassLoader
	at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@17.0.5/BuiltinClassLoader.java:641)
	at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@17.0.5/ClassLoaders.java:188)
	at java.lang.ClassLoader.loadClass(java.base@17.0.5/ClassLoader.java:520)
	at java.lang.Class.forName0(java.base@17.0.5/Native Method)
	at java.lang.Class.forName(java.base@17.0.5/Class.java:467)
	at java.lang.ClassLoader.initSystemClassLoader(java.base@17.0.5/ClassLoader.java:1981)
	at java.lang.System.initPhase3(java.base@17.0.5/System.java:2246)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (5 by maintainers)

Most upvoted comments

Confirming fix in 223.7255.1-EAP-SNAPSHOT for the perl plugin

Thanks, folks! One step closer to 1.10.0 release. 😃

IC-223.7401.7-EAP-SNAPSHOT was broken, i.e. the beta build after 223.7255.1-EAP-SNAPSHOT mentioned above. I’ll double-check again that it’s broken…

This problem does not occur in 223.7255.1-EAP-SNAPSHOT