Groovy/Java bug on QNAP using cli: BUG! exception in phase 'semantic analysis'

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
dean6132
Posts: 2
Joined: 28 Nov 2019, 19:30

Groovy/Java bug on QNAP using cli: BUG! exception in phase 'semantic analysis'

Post by dean6132 »

Hey guys,

I just purchased a licence because this is a great program and I love it!

I currently run this command to sort my files:

Code: Select all

filebot -script fn:amc --output "D:\Files\Done" -non-strict "D:\Files\Ready" --conflict skip --def seriesFormat="TV Shows/{n}/Season {s}/{if(ext == 'srt')'Subs/'}{s.pad(2)}x{e.pad(2)} - {t.colon(' - ').removeIllegalCharacters()}{if(ext == 'srt')'_eng'}" movieFormat="Movies/{if(ext == 'srt')'[SUBS]/'}{n.colon(' - ').removeIllegalCharacters()} ({y}){if(ext == 'srt')'_eng'}" artwork=n extras=n clean=y unsorted=y
Which works perfectly in windows due to my drive mappings so the command itself isn't the issue.
I can run filebot on my QNAP nas (I had to install the licence so I know filebot works too and filebot -version gives

Code: Select all

Filebot 4.8.5 (r6224) / OpenJDK Runtime Environment 13.0.1 / Linux 4.2.8 (amd64)
filebot -script fn:sysinfo gives:

Code: Select all

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/share/CACHEDEV2_DATA/.qpkg/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)
So when I change my file paths (--output "/share/CACHEDEV2_DATA/Download/Files/Done" and with input "/share/CACHEDEV2_DATA/Download/Files/Ready") which are my valid paths for my NAS I get loooots of warnings from groovy and some bug stuff:
https://pastebin.com/2aPCfSwM

I cant figure out whats going on myself by looking at previous posts so any help would be appreciated. Seems I cant run anything using groovy scripts

Thanks,
Dean
User avatar
rednoah
The Source
Posts: 22998
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Groovy/Java bug on QNAP using cli

Post by rednoah »

Please try the latest beta:
viewtopic.php?f=7&t=1609


:!: FileBot 4.8.5 is not fully forwards-compatible with Java 13.
:idea: Please read the FAQ and How to Request Help.
dean6132
Posts: 2
Joined: 28 Nov 2019, 19:30

Re: Groovy/Java bug on QNAP using cli: BUG! exception in phase 'semantic analysis'

Post by dean6132 »

This has solved my issue! (Filebot 4.9.0)

Thank you very much,
Dean
Post Reply