Page 1 of 1

BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 63

Posted: 28 Jan 2023, 13:46
by DIK
I have removed filebot, filebot-node and JAVA-installer and reinstall them to other disk of Synology NAS (latest DSM 7.1.1-42962 Update 1).
Now I get the next.

Code: Select all

filebot -script 'fn:amc' /volume2/Download --output '/volume2/Фильмы' --action duplicate -non-strict --order Airdate --conflict auto --mapper '--db TVMaze' --lang ru --def 'unsorted=y' 'subtitles=rus' 'skipExtract=y' 'minLengthMS=0' 'minFileSize=0' 'movieDB=OMDb' 'seriesDB=TheTVDB' 'animeDB=AniDB' 'unsortedFormat=Фильмы/{fn}' --apply refresh --log all --log-file '/var/packages/filebot-node/var/filebot.log'

------------------------------------------

BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 63
BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 63
	at net.filebot.cli.ScriptShell.evaluate(Unknown Source)
	at net.filebot.cli.ScriptShell.runScript(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.runScript(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
	at net.filebot.Main.main(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 63
	at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:199)
	at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:180)
	at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:166)
	at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:287)
	... 5 more

Error (o_O)

--------------------------------------------------------------

Code: Select all

Java Installer v. 2.17
FileBot v. 4.9.6
FileBot Node v. 0.4.3
Node.JS v. 12

Code: Select all

java -version
openjdk version "19.0.2" 2023-01-17
OpenJDK Runtime Environment Temurin-19.0.2+7 (build 19.0.2+7)
OpenJDK 64-Bit Server VM Temurin-19.0.2+7 (build 19.0.2+7, mixed mode, sharing)

What's wrong?

Re: BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 63

Posted: 28 Jan 2023, 15:06
by Pasroe
Hello, I have the exact same problem after following viewtopic.php?t=1802

Version of DSM: 7.1.1-42962 Update 3
Version of Java installer: 2.17
Version of Filebot: 4.9.6
Version of FileBot Node : 0.4.3
I use the repo:

Code: Select all

https://get.filebot.net/syno/


And here is my error:

Code: Select all

BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 63
BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 63
	at net.filebot.cli.ScriptShell.evaluate(Unknown Source)
	at net.filebot.cli.ScriptShell.runScript(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.runScript(Unknown Source)
	at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
	at net.filebot.Main.main(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 63
	at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:199)
	at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:180)
	at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:166)
	at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:287)
	... 5 more

Error (o_O)

------------------------------------------

[Process error]

🔺 Exit Code: 1

Re: BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 63

Posted: 28 Jan 2023, 16:42
by rednoah
Looks like java-installer automatically updated you to JDK 19.0.2 and FileBot 4.9.6 happens to not be forwards-compatible with that. I've updated the java-installer deployment descriptor to JDK 17.0.6 for the time being. That should work. You can force a down-upgrade by uninstalling java-installer and then installing it again. Sorry for the inconvenience.

Re: BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 63

Posted: 28 Jan 2023, 16:51
by DIK
rednoah wrote: 28 Jan 2023, 16:42 Looks like java-installer automatically updated you to JDK 19.0.2 and FileBot 4.9.6 happens to not be forwards-compatible with that. I've updated the java-installer deployment descriptor to JDK 17.0.6 for the time being. That should work. You can force a down-upgrade by uninstalling java-installer and then installing it again. Sorry for the inconvenience.
With 17.0.6 it works.
Thanks.

Re: BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 63

Posted: 28 Jan 2023, 22:17
by Pasroe
It works, thank you!