JAVA_TOOL_OPTIONS: -agentpath:"C:\Windows\system32\Aternity\Java\JavaHookLoader.dll"="C:\ProgramData\Aternity\hooks"

Support for Windows users
Post Reply
michaelwolfenden
Posts: 1
Joined: 03 Jul 2024, 07:20

JAVA_TOOL_OPTIONS: -agentpath:"C:\Windows\system32\Aternity\Java\JavaHookLoader.dll"="C:\ProgramData\Aternity\hooks"

Post by michaelwolfenden »

The desktop application is crashing on startup.

When I run from the command line I get the following output

Shell: Select all

PS C:\Program Files\FileBot> filebot -script fn:sysinfo
Picked up JAVA_TOOL_OPTIONS: -agentpath:"C:\Windows\system32\Aternity\Java\JavaHookLoader.dll"="C:\ProgramData\Aternity\hooks"
java.lang.IllegalArgumentException: Unsupported class file major version 61
java.lang.IllegalArgumentException: Unsupported class file major version 61
        at com.aternity.asm.ClassReader.<init>(ClassReader.java:194)
        at com.aternity.asm.ClassReader.<init>(ClassReader.java:176)
        at com.aternity.asm.ClassReader.<init>(ClassReader.java:162)
        at com.aternity.hook.instrumentation.InstrumentorManager.asmInstrument(InstrumentorManager.java:164)
        at com.aternity.hook.instrumentation.InstrumentorManager.instrument(InstrumentorManager.java:77)
        at com.aternity.hook.HookMain.transformClass(HookMain.java:74)
        at java.base/java.lang.ClassLoader.findBootstrapClass(Native Method)
        at java.base/java.lang.ClassLoader.findBootstrapClassOrNull(Unknown Source)
        at java.base/java.lang.System$2.findBootstrapClassOrNull(Unknown Source)
        at java.base/jdk.internal.loader.ClassLoaders$BootClassLoader.loadClassOrNull(Unknown Source)
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unknown Source)
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unknown Source)
        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.getDeclaredMethods0(Native Method)
        at java.base/java.lang.Class.privateGetDeclaredMethods(Unknown Source)
        at java.base/java.lang.Class.getMethodsRecursive(Unknown Source)
        at java.base/java.lang.Class.getMethod0(Unknown Source)
        at java.base/java.lang.Class.getMethod(Unknown Source)
        at java.base/sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
        at java.base/sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
java.lang.IllegalArgumentException: Unsupported class file major version 61
java.lang.IllegalArgumentException: Unsupported class file major version 61
        at com.aternity.asm.ClassReader.<init>(ClassReader.java:194)
        at com.aternity.asm.ClassReader.<init>(ClassReader.java:176)
        at com.aternity.asm.ClassReader.<init>(ClassReader.java:162)
        at com.aternity.hook.instrumentation.InstrumentorManager.asmInstrument(InstrumentorManager.java:164)
        at com.aternity.hook.instrumentation.InstrumentorManager.instrument(InstrumentorManager.java:77)
        at com.aternity.hook.HookMain.transformClass(HookMain.java:74)
        at java.base/java.lang.ClassLoader.findBootstrapClass(Native Method)
        at java.base/java.lang.ClassLoader.findBootstrapClassOrNull(Unknown Source)
        at java.base/java.lang.System$2.findBootstrapClassOrNull(Unknown Source)
        at java.base/jdk.internal.loader.ClassLoaders$BootClassLoader.loadClassOrNull(Unknown Source)
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unknown Source)
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unknown Source)
        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.getDeclaredMethods0(Native Method)
        at java.base/java.lang.Class.privateGetDeclaredMethods(Unknown Source)
        at java.base/java.lang.Class.getMethodsRecursive(Unknown Source)
        at java.base/java.lang.Class.getMethod0(Unknown Source)
        at java.base/java.lang.Class.getMethod(Unknown Source)
        at java.base/sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
        at java.base/sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
java.lang.IllegalArgumentException: Unsupported class file major version 61
java.lang.IllegalArgumentException: Unsupported class file major version 61
        at com.aternity.asm.ClassReader.<init>(ClassReader.java:194)
        at com.aternity.asm.ClassReader.<init>(ClassReader.java:176)
        at com.aternity.asm.ClassReader.<init>(ClassReader.java:162)
        at com.aternity.hook.instrumentation.InstrumentorManager.asmInstrument(InstrumentorManager.java:164)
        at com.aternity.hook.instrumentation.InstrumentorManager.instrument(InstrumentorManager.java:77)
        at com.aternity.hook.HookMain.transformClass(HookMain.java:74)
        at java.base/java.lang.ClassLoader.findBootstrapClass(Native Method)
        at java.base/java.lang.ClassLoader.findBootstrapClassOrNull(Unknown Source)
        at java.base/java.lang.System$2.findBootstrapClassOrNull(Unknown Source)
        at java.base/jdk.internal.loader.ClassLoaders$BootClassLoader.loadClassOrNull(Unknown Source)
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unknown Source)
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unknown Source)
        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.getDeclaredMethods0(Native Method)
        at java.base/java.lang.Class.privateGetDeclaredMethods(Unknown Source)
        at java.base/java.lang.Class.getMethodsRecursive(Unknown Source)
        at java.base/java.lang.Class.getMethod0(Unknown Source)
        at java.base/java.lang.Class.getMethod(Unknown Source)
        at java.base/sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
        at java.base/sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
java.lang.IllegalArgumentException: Unsupported class file major version 61
java.lang.IllegalArgumentException: Unsupported class file major version 61
        at com.aternity.asm.ClassReader.<init>(ClassReader.java:194)
        at com.aternity.asm.ClassReader.<init>(ClassReader.java:176)
        at com.aternity.asm.ClassReader.<init>(ClassReader.java:162)
        at com.aternity.hook.instrumentation.InstrumentorManager.asmInstrument(InstrumentorManager.java:164)
        at com.aternity.hook.instrumentation.InstrumentorManager.instrument(InstrumentorManager.java:77)
        at com.aternity.hook.HookMain.transformClass(HookMain.java:74)
        at java.base/java.lang.ClassLoader.findBootstrapClass(Native Method)
        at java.base/java.lang.ClassLoader.findBootstrapClassOrNull(Unknown Source)
        at java.base/java.lang.System$2.findBootstrapClassOrNull(Unknown Source)
        at java.base/jdk.internal.loader.ClassLoaders$BootClassLoader.loadClassOrNull(Unknown Source)
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unknown Source)
        at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unknown Source)
        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.getDeclaredMethods0(Native Method)
        at java.base/java.lang.Class.privateGetDeclaredMethods(Unknown Source)
        at java.base/java.lang.Class.getMethodsRecursive(Unknown Source)
        at java.base/java.lang.Class.getMethod0(Unknown Source)
        at java.base/java.lang.Class.getMethod(Unknown Source)
        at java.base/sun.launcher.LauncherHelper.validateMainClass(Unknown Source)
        at java.base/sun.launcher.LauncherHelper.checkAndLoadMain(Unknown Source)
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffa8ca3f7bb, pid=23352, tid=22556
#
# JRE version: OpenJDK Runtime Environment Temurin-17.0.8+7 (17.0.8+7) (build 17.0.8+7)
# Java VM: OpenJDK 64-Bit Server VM Temurin-17.0.8+7 (17.0.8+7, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
# Problematic frame:
# V  [jvm.dll+0x53f7bb]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# REDACTED\hs_err_pid23352.log
#
# If you would like to submit a bug report, please visit:
#   https://github.com/adoptium/adoptium-support/issues
#
Full Logs: https://pastebin.com/pAZQ7x1W
User avatar
rednoah
The Source
Posts: 23218
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: FileBot 5.1.3 (r10185) - JVM EXCEPTION_ACCESS_VIOLATION (0xc0000005)

Post by rednoah »

:!: You are trying to inject custom code into the FileBot process:

Code: Select all

Picked up JAVA_TOOL_OPTIONS: -agentpath:"C:\Windows\system32\Aternity\Java\JavaHookLoader.dll"="C:\ProgramData\Aternity\hooks"

Error: Select all

java.lang.IllegalArgumentException: Unsupported class file major version 61
        at com.aternity.asm.ClassReader.<init>(ClassReader.java:194)
        ...

:?: What is Aternity and for what purpose are you trying to inject custom code into the FileBot process?


:arrow: You'll want to unset the JAVA_TOOL_OPTIONS environment variable to let the FileBot process start and run normally. If FileBot crashes for you and not everyone else, then your highly unusual JAVA_TOOL_OPTIONS configuration is likely the root cause.
:idea: Please read the FAQ and How to Request Help.
Post Reply