Skip to content

[1.20.x] [NeoForge] Reflections fails to resolve VFSs #37

Closed

Description

@emyfops

Only affects NeoForge
Could be caused by class loader issue

org.reflections.ReflectionsException: Could not open url connection
	at org.reflections.vfs.JarInputDir$1.<init>(JarInputDir.java:31) ~[reflections-0.10.2.jar%23201!/:?] {re:classloading}
	at org.reflections.vfs.JarInputDir.lambda$getFiles$0(JarInputDir.java:28) ~[reflections-0.10.2.jar%23201!/:?] {re:classloading}
	at org.reflections.Reflections.lambda$scan$2(Reflections.java:177) ~[reflections-0.10.2.jar%23201!/:?] {re:classloading}
	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) ~[?:?] {}
	at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1707) ~[?:?] {}
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?] {}
	at java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:290) ~[?:?] {}
	at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:754) ~[?:?] {}
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373) ~[?:?] {}
	at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:686) ~[?:?] {}
	at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:159) ~[?:?] {}
	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:173) ~[?:?] {}
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233) ~[?:?] {}
	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?] {}
	at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:765) ~[?:?] {}
	at org.reflections.Reflections.scan(Reflections.java:173) ~[reflections-0.10.2.jar%23201!/:?] {re:classloading}
	at org.reflections.Reflections.<init>(Reflections.java:126) ~[reflections-0.10.2.jar%23201!/:?] {re:classloading}
	at com.lambda.module.ModuleRegistry.load(ModuleRegistry.java:18) ~[lambda-neoforge-1.0.0+1.20.4.jar%23183!/:?] {re:classloading}
	at com.lambda.core.Loader.initialize(Loader.java:51) ~[lambda-neoforge-1.0.0+1.20.4.jar%23183!/:?] {re:classloading}
	at com.lambda.Lambda.initialize$lambda$1(Lambda.java:50) ~[lambda-neoforge-1.0.0+1.20.4.jar%23183!/:?] {re:mixin,re:classloading}
	at com.mojang.blaze3d.systems.RenderSystem.replayQueue(RenderSystem.java:196) ~[minecraft-1.20.4-client.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at com.mojang.blaze3d.systems.RenderSystem.finishInitialization(RenderSystem.java:732) ~[minecraft-1.20.4-client.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at net.minecraft.client.main.Main.main(Main.java:207) ~[minecraft-1.20.4-client.jar:?] {re:classloading,pl:runtimedistcleaner:A}
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}
	at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}
	at net.neoforged.fml.loading.targets.CommonLaunchHandler.runTarget(CommonLaunchHandler.java:126) ~[loader-1.0.16.jar:1.0] {}
	at net.neoforged.fml.loading.targets.CommonLaunchHandler.clientService(CommonLaunchHandler.java:114) ~[loader-1.0.16.jar:1.0] {}
	at net.neoforged.fml.loading.targets.CommonClientLaunchHandler.runService(CommonClientLaunchHandler.java:24) ~[loader-1.0.16.jar:1.0] {}
	at net.neoforged.fml.loading.targets.CommonLaunchHandler.lambda$launchService$4(CommonLaunchHandler.java:108) ~[loader-1.0.16.jar:1.0] {}
	at cpw.mods.modlauncher.LaunchServiceHandlerDecorator.launch(LaunchServiceHandlerDecorator.java:30) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:53) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.modlauncher.LaunchServiceHandler.launch(LaunchServiceHandler.java:71) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.modlauncher.Launcher.run(Launcher.java:108) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.modlauncher.Launcher.main(Launcher.java:78) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:26) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.modlauncher.BootstrapLaunchConsumer.accept(BootstrapLaunchConsumer.java:23) ~[modlauncher-10.0.9.jar:?] {}
	at cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:141) ~[bootstraplauncher-1.1.2.jar:?] {}
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?] {}
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?] {}
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?] {}
	at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?] {}
	at io.github.zekerzhayard.forgewrapper.installer.Main.main(Main.java:67) ~[?:?] {}
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:100) ~[?:?] {}
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:129) ~[?:?] {}
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70) ~[?:?] {}
Caused by: java.nio.file.NoSuchFileException: /
	at jdk.nio.zipfs.ZipFileSystem.newByteChannel(ZipFileSystem.java:984) ~[jdk.zipfs:?] {}
	at jdk.nio.zipfs.ZipPath.newByteChannel(ZipPath.java:864) ~[jdk.zipfs:?] {}
	at jdk.nio.zipfs.ZipFileSystemProvider.newByteChannel(ZipFileSystemProvider.java:255) ~[jdk.zipfs:?] {}
	at java.nio.file.Files.newByteChannel(Files.java:380) ~[?:?] {}
	at java.nio.file.Files.newByteChannel(Files.java:432) ~[?:?] {}
	at cpw.mods.niofs.union.UnionFileSystem.byteChannel(UnionFileSystem.java:381) ~[securejarhandler-2.1.24.jar:?] {}
	at java.util.Optional.map(Optional.java:260) ~[?:?] {re:mixin}
	at cpw.mods.niofs.union.UnionFileSystem.newReadByteChannel(UnionFileSystem.java:368) ~[securejarhandler-2.1.24.jar:?] {}
	at cpw.mods.niofs.union.UnionFileSystemProvider.newByteChannel(UnionFileSystemProvider.java:151) ~[securejarhandler-2.1.24.jar:?] {}
	at java.nio.file.Files.newByteChannel(Files.java:380) ~[?:?] {}
	at java.nio.file.Files.newByteChannel(Files.java:432) ~[?:?] {}
	at java.nio.file.Files.readAllBytes(Files.java:3288) ~[?:?] {}
	at cpw.mods.niofs.union.UnionFileSystem.buildInputStream(UnionFileSystem.java:72) ~[securejarhandler-2.1.24.jar:?] {}
	at cpw.mods.niofs.union.UnionPath.buildInputStream(UnionPath.java:331) ~[securejarhandler-2.1.24.jar:?] {}
	at cpw.mods.cl.UnionURLStreamHandler.lambda$inputStreamFunction$0(UnionURLStreamHandler.java:25) ~[securejarhandler-2.1.24.jar:?] {}
	at cpw.mods.cl.ModularURLHandler$FunctionURLConnection.getInputStream(ModularURLHandler.java:65) ~[securejarhandler-2.1.24.jar:?] {}
	at org.reflections.vfs.JarInputDir$1.<init>(JarInputDir.java:30) ~[reflections-0.10.2.jar%23201!/:?] {re:classloading}
	... 46 more
	```

Activity

  1. added
    confirmedThe issue has been verified and needs a fix
    and removed
    triageRequires labelling or review
    on Jul 10, 2024
  2. added this to the Open Beta milestone on Jul 10, 2024
  3. added
    not-usThe issue is not related to the project
    on Jul 10, 2024
  4. added a commit that references this issue on Sep 11, 2024
    1e9755c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugReports or fixes new or existing bugsconfirmedThe issue has been verified and needs a fixnot-usThe issue is not related to the project

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions