Page 1 of 1

[README] Unsupported class file major version 57

Posted: 25 Sep 2019, 00:01
by snowybunting
I've gotten filebot to work renaming files on my DSM 918+ with this basic script:

Code: Select all

 filebot -rename *.mkv -non-strict
...but if I try to run any script (fn:amc, fn:sysinfo, etc.), I get this error:

Code: Select all

filebot -script 'fn:amc' '/volume1/Media/USB_TV/American Horror Story/Season 01' --output '/volume1/Media/TV/American Horror Story' --action move --order Airdate --conflict auto --lang en --def 'ut_label=TV' 'music=y' 'unsorted=y' 'artwork=y' 'skipExtract=y' 'excludeList=.excludes' --log all --log-file '/usr/local/filebot-node/data/filebot.log'

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

Locking /usr/local/filebot-node/data/filebot.log
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/volume1/@appstore/filebot/jar/groovy.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
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
BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 57
BUG! exception in phase 'semantic analysis' in source unit 'Script1.groovy' Unsupported class file major version 57
	at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:64)
	at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:74)
	at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:163)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:37)
	at net.filebot.Main.main(Main.java:132)
Caused by: java.lang.IllegalArgumentException: Unsupported class file major version 57
	at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:184)
	at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:166)
	at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:152)
	at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:273)
	... 5 more

Error (o_O)
------------------------------------------

[Process error]
That was using filenode, it's basically the same if I do a simple "filebot -script fn:amc *.mkv -non-strict". Not certain where to go from here, so any help is appreciated.

Re: Filebot not working great on Synology

Posted: 26 Sep 2019, 10:13
by rednoah
Have you tried upgrading both FileBot and Java to the latest and greatest?

i.e. FileBot 4.8.6 (latest beta) and Java 13 (latest release)

Re: Filebot not working great on Synology

Posted: 26 Sep 2019, 16:31
by snowybunting
It seems as if I do:

Code: Select all

[email protected]:~$ filebot -version
FileBot 4.8.5 (r6224) / OpenJDK Runtime Environment 13 / Linux 4.4.59+ (amd64)

Code: Select all

[email protected]:~$ java -version
openjdk version "13" 2019-09-17
OpenJDK Runtime Environment (build 13+33)
OpenJDK 64-Bit Server VM (build 13+33, mixed mode, sharing)

Re: Filebot not working great on Synology

Posted: 26 Sep 2019, 16:56
by rednoah
FileBot 4.8.6 (latest beta) is available here:
https://get.filebot.net/filebot/BETA/


:idea: The FileBot 4.8.5 release (released a few months ago) does not seem to be completely forwards-compatible with Java 13 (released this week). Please try the latest beta (released this week).

Re: Filebot not working great on Synology

Posted: 26 Sep 2019, 17:03
by snowybunting
Oops, I guess I don't:

Required:
i.e. FileBot 4.8.6 (latest beta)

Have:
FileBot 4.8.5 (r6224)

I have Filebot set to "Auto Update", I'm not seeing another way to get version 4.8.6. I did a search for "update-filebot.sh" that I saw referenced in the forums here, but I apparently don't have that file. I hate to seem like I need hand-holding, but I'm fairly new to Synology and am learning as I go. What is the process for updating Filebot?

edit: OK, just saw your reply. Thanks, and I'll report back with (hopefully) my success story.

Re: Filebot not working great on Synology

Posted: 26 Sep 2019, 17:15
by snowybunting
rednoah wrote:
26 Sep 2019, 16:56
FileBot 4.8.6 (latest beta) is available here:
https://get.filebot.net/filebot/BETA/


:idea: The FileBot 4.8.5 release (released a few months ago) does not seem to be completely forwards-compatible with Java 13 (released this week). Please try the latest beta (released this week).


OK, that worked, thank you very much.

Re: Unsupported class file major version 57

Posted: 05 Oct 2019, 17:23
by RobEh
what about a qpkg for Qnap?

Disregard, I found it. Just didn't look hard enough.

Thanks

Re: Unsupported class file major version 57

Posted: 12 Oct 2019, 23:39
by tyros
I'm also getting the same error on Synology DSM. Using the latest filebot 4.8.5, installed from Package Center using https://get.filebot.net/syno/ as package source.

Code: Select all

[email protected]:/$ filebot -version
FileBot 4.8.5 (r6224) / OpenJDK Runtime Environment 13 / Linux 4.4.59+ (amd64)
[email protected]:/$ java -version
openjdk version "13" 2019-09-17
OpenJDK Runtime Environment (build 13+33)
OpenJDK 64-Bit Server VM (build 13+33, mixed mode, sharing)
How do I install the beta 4.8.6 on Synology?

Re: Unsupported class file major version 57

Posted: 13 Oct 2019, 01:03
by rednoah
You can download the latest SPK from here and then install it via DSM:
https://get.filebot.net/filebot/BETA/

Image

Re: Unsupported class file major version 57

Posted: 13 Oct 2019, 01:06
by tyros
rednoah wrote:
13 Oct 2019, 01:03
You can download the latest SPK from here and then install it via DSM:
https://get.filebot.net/filebot/BETA/
Tried that, I get "Operation failed" message. No details why it fails. I wish DSM would give me more details, perhaps there's a log file somewhere?

Re: Unsupported class file major version 57

Posted: 13 Oct 2019, 01:43
by rednoah
IDK. You'd have to ask Synology Support for details on how their DSM software works and where you might be able to find logs.



:idea: The SPK package definitely works though. I've got an automated install script that checks.


install-filebot-spk.sh

Code: Select all

# Download & Install SPK
FILE=/tmp/FileBot.spk
curl -f -L -o $FILE -z $FILE https://get.filebot.net/filebot/BETA/FileBot_4.8.6.spk
sudo synopkg install $FILE

# TEST
filebot -script fn:sysinfo

Re: Unsupported class file major version 57

Posted: 13 Oct 2019, 01:57
by tyros
rednoah wrote:
13 Oct 2019, 01:43
IDK. You'd have to ask Synology Support for details on how their DSM software works and where you might be able to find logs.



:idea: The SPK package definitely works though. I've got an automated install script that checks.


install-filebot-spk.sh

Code: Select all

# Download & Install SPK
FILE=/tmp/FileBot.spk
curl -f -L -o $FILE -z $FILE https://get.filebot.net/filebot/BETA/FileBot_4.8.6.spk
sudo synopkg install $FILE

# TEST
filebot -script fn:sysinfo
Thanks, that worked.

Do you know when this version will be out of beta?

Re: Unsupported class file major version 57

Posted: 13 Oct 2019, 02:01
by rednoah
Not yet. Maybe end of October. But since macOS Catalina is breaking things, maybe give it an extra month.

Re: Unsupported class file major version 57

Posted: 22 Oct 2019, 06:34
by xaeiou
I had the same problem as the thread starter and can confirm 4.8.6 fixes it. Thanks!

I installed manually via DSM GUI (DSM 6.2.2-24922 Update 3) without any issues - didn't need to install via the script.

Maybe this thread is worth pinning as I expect almost everyone on Synology is going to hit this issue right now.

Re: Unsupported class file major version 57

Posted: 22 Oct 2019, 10:14
by rednoah
Pinned.

Re: [README] Unsupported class file major version 57

Posted: 10 Nov 2019, 06:42
by networkcrasher
Having the same issue on Qnap and can't seem to download the beta? https://get.filebot.net/filebot/BETA/FileBot_4.8.6.qpkg gives me a not found, although I found it by just going to the index at https://get.filebot.net/filebot/BETA/

It shows the file size but doesn't seem to want to let me download it.

I see 4.9 so I'll try that, but didn't want to go that far up if I didn't have to.

Re: [README] Unsupported class file major version 57

Posted: 10 Nov 2019, 11:06
by rednoah
Yep, 4.9.0 is the way to go now, and scheduled for final release end of November. The older 4.8.6 builds have been removed.

Re: [README] Unsupported class file major version 57

Posted: 03 Dec 2019, 18:14
by Al3x
Same issue, the GUI worked when I downloaded the 4.9*.spk version for Synology for others reading this thread, not the *.qpkg.

Re: [README] Unsupported class file major version 57

Posted: 04 Dec 2019, 04:15
by rednoah
*.spk ➔ Synology Package
*.qpkg ➔ QNAP Package

Please choose the appropriate package for your NAS device.