[BUG][ fn:amc] GroovyRuntimeException

All your suggestions, requests and ideas for future development
Post Reply
aklmie
Posts: 3
Joined: 26 Aug 2015, 10:38

[BUG][ fn:amc] GroovyRuntimeException

Post by aklmie »

Hi,

I was used to use the fn:amc script command these last days.

Today, the script failed with this error message :
GroovyRuntimeException: Ambiguous method overloading for method java.io.File#<init>.
Cannot resolve which method to invoke for [null, class java.lang.String] due to overlapping prototypes between:
[class java.lang.String, class java.lang.String]
[class java.io.File, class java.lang.String]
groovy.lang.GroovyRuntimeException: Ambiguous method overloading for method java.io.File#<init>.
Cannot resolve which method to invoke for [null, class java.lang.String] due to overlapping prototypes between:
[class java.lang.String, class java.lang.String]
[class java.io.File, class java.lang.String]
at Script1$_run_closure70.doCall(Script1.groovy:415)
at Script1.run(Script1.groovy:414)
at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:61)
at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:82)
at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:116)
at net.filebot.Main.main(Main.java:168)
The command which was run :

Code: Select all

filebot \
                      --def   "seriesFormat=/home/filebot/ready/Series/{n}/{'Saison '+s}/{n} {absolute} {t} [{source} {hpi} {vc} {ac} {af}] {s00e00}" \
                              "animeFormat=/home/filebot/ready/Animes/{n}/{n} ({absolute}) {t} [{source} {hpi} {vc} {ac} {af}]"  \
                              "movieFormat=/home/filebot/ready/Films/{n} ({y})/{n} [{source} {hpi} {vc} {ac} {af}]" \
                      -rename \
                      --lang fr \
                      -r \
                      -script fn:amc \
                      --conflict skip \
                      -non-strict \
                      --def artwork=n \
                      --log-file /home/filebot/log.txt \
                      --log info \
                      --def extras=n \
                      --def clean=y \
                      --def unsorted=y \
                      --action test \
                      --encoding UTF-8 \
                      -no-xattr \
                      /home/filebot/inbox
Should I also provide filenames on which the script failed ?

Any hints to resolve this ?

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

Re: [BUG][ fn:amc] GroovyRuntimeException

Post by rednoah »

Are you using the latest version of FileBot? I can't reproduce the issue. File paths might help.
:idea: Please read the FAQ and How to Request Help.
aklmie
Posts: 3
Joined: 26 Aug 2015, 10:38

Re: [BUG][ fn:amc] GroovyRuntimeException

Post by aklmie »

I use Filebot 4.6 (r3052) / Java(TM) SE Runtime Environment 1.8.0_60 (headless).

I found the file which breaks the script, its name is :

Code: Select all

echo "TGUgc2lsZW5jZSBkZXMgYWduZWF1eC5hdmkK" | base64 --decode
Maybe, the file is corrupted ? Or is it only related to the filename ?
User avatar
rednoah
The Source
Posts: 23931
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [BUG][ fn:amc] GroovyRuntimeException

Post by rednoah »

It works fine for me. Give the oddness of the issue, I reckon it might be an incompatibility with Java 8u60.

Have you tried the latest FileBot beta revision?
https://sourceforge.net/projects/filebo ... ebot/HEAD/

Have you tried with Java 8u45 and see if that changes anything?
:idea: Please read the FAQ and How to Request Help.
aklmie
Posts: 3
Joined: 26 Aug 2015, 10:38

Re: [BUG][ fn:amc] GroovyRuntimeException

Post by aklmie »

Thanks for your help.

Just upgraded my Docker container, and here are my new running versions :
FileBot 4.6.1 (r3166) / Java(TM) SE Runtime Environment 1.8.0_45 (headless)
I just run with a new set of files and the script fail with one file that I tried to rename multiple times :

Code: Select all

SHVuZ2VyIEdhbWVzIDIgLSBMJ0VtYnJhc2VtZW50Lm1rdgo=
SHVuZ2VyIEdhbWVzIDIgLSBMIEVtYnJhc2VtZW50Lm1rdgo=
SHVuZ2VyIEdhbWVzIDIgLSBFbWJyYXNlbWVudC5ta3YK
SHVuZ2VyIEdhbWVzIDIubWt2Cg==
Any other hints ?

Thanks for your help, I appreciate it.
User avatar
rednoah
The Source
Posts: 23931
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [BUG][ fn:amc] GroovyRuntimeException

Post by rednoah »

You didn't specify --output which is a required option.
:idea: Please read the FAQ and How to Request Help.
Post Reply