Non Update

Non Update

327k Downloads

[1.7.10] OpenJ9 issue

spannerman79 opened this issue ยท 4 comments

commented

I cannot use AdoptJDK with the OpenJDK8 OpenJ9 engine with NonUpdate.

Log: https://paste.ee/p/oRGgD

NonUpdate-AllMCVersion-Final-2.0.1build1-universal
Java used: https://adoptopenjdk.net/releases.html?variant=openjdk8&jvmVariant=openj9
About OpenJ9: https://www.eclipse.org/openj9/

Short snip (to preserve in case of paste.ee expire);

java.lang.ExceptionInInitializerError
	at java.lang.J9VMInternals.ensureError(J9VMInternals.java:146) ~[?:1.8.0_192]
	at java.lang.J9VMInternals.recordInitializationFailure(J9VMInternals.java:135) ~[?:1.8.0_192]
	at nonupdate.forge.NonUpdate.<clinit>(NonUpdate.java:85) ~[NonUpdate-AllMCVersion-Final-2.0.1build1-universal.jar:?]
	at sun.misc.Unsafe.ensureClassInitialized(Native Method) ~[?:1.8.0_192]
	at java.lang.J9VMInternals.initialize(J9VMInternals.java:87) ~[?:1.8.0_192]
	at java.lang.Class.forName(Class.java:419) ~[?:1.8.0_192]
	at cpw.mods.fml.relauncher.CoreModManager.loadCoreMod(CoreModManager.java:460) ~[forge-1.7.10-10.13.4.1614-1.7.10-universal.jar:?]
	at cpw.mods.fml.relauncher.CoreModManager.discoverCoreMods(CoreModManager.java:389) ~[forge-1.7.10-10.13.4.1614-1.7.10-universal.jar:?]
	at cpw.mods.fml.relauncher.CoreModManager.handleLaunch(CoreModManager.java:221) ~[forge-1.7.10-10.13.4.1614-1.7.10-universal.jar:?]
	at cpw.mods.fml.relauncher.FMLLaunchHandler.setupHome(FMLLaunchHandler.java:90) [forge-1.7.10-10.13.4.1614-1.7.10-universal.jar:?]
	at cpw.mods.fml.relauncher.FMLLaunchHandler.setupClient(FMLLaunchHandler.java:67) [forge-1.7.10-10.13.4.1614-1.7.10-universal.jar:?]
	at cpw.mods.fml.relauncher.FMLLaunchHandler.configureForClientLaunch(FMLLaunchHandler.java:34) [forge-1.7.10-10.13.4.1614-1.7.10-universal.jar:?]
	at cpw.mods.fml.common.launcher.FMLTweaker.injectIntoClassLoader(FMLTweaker.java:126) [forge-1.7.10-10.13.4.1614-1.7.10-universal.jar:?]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_192]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_192]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_192]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_192]
	at org.multimc.onesix.OneSixLauncher.launchWithMainClass(OneSixLauncher.java:196) [NewLaunch.jar:?]
	at org.multimc.onesix.OneSixLauncher.launch(OneSixLauncher.java:231) [NewLaunch.jar:?]
	at org.multimc.EntryPoint.listen(EntryPoint.java:143) [NewLaunch.jar:?]
	at org.multimc.EntryPoint.main(EntryPoint.java:34) [NewLaunch.jar:?]
Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: java.lang.Class#getDeclaredFields0
	at nonupdate.forge.ReflectionHelper.getMethod(ReflectionHelper.java:105) ~[ReflectionHelper.class:?]
	at nonupdate.forge.ReflectionHelper.resetReflection(ReflectionHelper.java:37) ~[ReflectionHelper.class:?]
	at nonupdate.forge.ReflectionHelper.<clinit>(ReflectionHelper.java:12) ~[ReflectionHelper.class:?]
	... 21 more
Caused by: java.lang.NoSuchMethodException: java.lang.Class#getDeclaredFields0
	at nonupdate.forge.ReflectionHelper.getMethod(ReflectionHelper.java:105) ~[ReflectionHelper.class:?]
	at nonupdate.forge.ReflectionHelper.resetReflection(ReflectionHelper.java:37) ~[ReflectionHelper.class:?]
	at nonupdate.forge.ReflectionHelper.<clinit>(ReflectionHelper.java:12) ~[ReflectionHelper.class:?]
	... 21 more

NonUpdate is the only mod in my custom (not released yet) pack that doesn't work with OpenJ9

commented

Sorry, I didn't notice your issue.
I did not expect anyone to use OpenJ9 :)
Give me some time to fix it.
Maybe it will be a few minutes.

commented

I seem to have forgotten my password...
@spannerman79
Please download it here (https://github.com/InfinityStudio/NonUpdate/releases/tag/2.0.2)
Thank you for your support :)

commented

Perfect, solved!

I did not expect anyone to use OpenJ9 :)

Neither did I until I stumbled upon AdoptJDK's website, I found OpenJ VM is more stable for larger packs then using Oracle VM

commented

I think so, but I want to remind you .
In non-English operating systems, you may need to add "-Dsun.jnu.encoding=utf-8" to the JVM arguments to make it(OpenJ9 VM) boot normally.
I wish you a good time.
@spannerman79