Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An illegal reflective access operation has occurred #11

Open
mruk opened this issue Jan 17, 2021 · 1 comment
Open

An illegal reflective access operation has occurred #11

mruk opened this issue Jan 17, 2021 · 1 comment
Labels

Comments

@mruk
Copy link

mruk commented Jan 17, 2021

Well, It's not unexpected. But do You plan to go to 9 or 11?

PS E:\Minecraft\tools> java --version
java 9.0.4
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)

PS E:\Minecraft\tools> java -jar .\SaveSearcher-1.6.2.jar --help
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by net.daporkchop.lib.common.util.PorkUtil (file:/E:/Minecraft/tools/SaveSearcher-1.6.2.jar) to method java.lang.Throwable.getOurStackTrace()
WARNING: Please consider reporting this to the maintainers of net.daporkchop.lib.common.util.PorkUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Exception in thread "main" java.lang.ExceptionInInitializerError
        at net.daporkchop.savesearcher.Main.main(Main.java:94)
Caused by: java.lang.RuntimeException: Unable to find class: sun.misc.SoftCache
        at net.daporkchop.lib.common.util.PorkUtil.newSoftCache(PorkUtil.java:195)
        at net.daporkchop.lib.logging.impl.SimpleLogger.<init>(SimpleLogger.java:72)
        at net.daporkchop.lib.logging.impl.DefaultLogger.<init>(DefaultLogger.java:71)
        at net.daporkchop.lib.logging.Logging.<clinit>(Logging.java:35)
        ... 1 more
Caused by: java.lang.ClassNotFoundException: sun.misc.SoftCache
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
        at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
        at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
        at java.base/java.lang.Class.forName0(Native Method)
        at java.base/java.lang.Class.forName(Unknown Source)
        at net.daporkchop.lib.common.util.PorkUtil.newSoftCache(PorkUtil.java:192)
        ... 4 more
@DaMatrix
Copy link
Owner

i'm working on a rewrite of SaveSearcher, which will hopefully address this and some other issues. however, at the moment it only runs correctly on java 8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants