Illegal Argument: java.nio.file.NoSuchFileException

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
stoneii
Posts: 21
Joined: 08 May 2019, 11:28

Illegal Argument: java.nio.file.NoSuchFileException

Post by stoneii »

hello I have been having a problem for a week that my tool is not running. I have also re-instalized the system but always get this message as described below I know no further has now 2 years without prob. Works

Code: Select all

PS C:\> filebot -script fn:sysinfo
FileBot 4.8.5 (r6224)
JNA Native: 5.2.2
MediaInfo: 18.12
7-Zip-JBinding: 9.20
Chromaprint: fpcalc version 1.4.2
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-05-15 (r565)
Groovy: 2.5.6
JRE: OpenJDK Runtime Environment 11.0.2
JVM: 64-bit OpenJDK 64-Bit Server VM
CPU/MEM: 2 Core / 1 GB Max Memory / 38 MB Used Memory
OS: Windows 10 (amd64)
Package: MSI
License: FileBot License PX14681562 (Valid-Until: 2070-05-15)

------------------- UPDATE AVAILABLE: FileBot 4.9.1 (r7372) --------------------

Done ?(?????)?
PS C:\> filebot @c:\aktuell.txt
Locking C:\Users\Admin\AppData\Roaming\FileBot\logs\amc.log
Illegal Argument: java.nio.file.NoSuchFileException: Y:\Downloads\ftp\NEU-x264-1080p-ger.1 (Y:\Downloads\ftp\NEU-x264-1080p-ger.1)
Run script [fn:amc] at [Wed Aug 05 15:46:45 CEST 2020]
Parameter: excludeList = amc.txt
Parameter: deleteAfterExtract = y
Parameter: clean = y
Parameter: movieFormat = Movie/{az}/{plex.tail.derive{" by $director"}{" [$vf, $vc, $ac]"}}
Parameter: seriesFormat = {plex.derive{" [$vc]"}}
Parameter: animeFormat = {plex.derive{" [$vc]"}}
Argument[0]: File does not exist: Y:\Downloads\ftp\NEU-x264-1080p-ger.1
Illegal usage: output folder must exist and must be a directory: Y:\Downloads\ftp\DONE-x264-1080p-ger.1
Abort (×_×)

this is my powershell script that I start

Code: Select all

-script
fn:amc
--output
Y:\Downloads\ftp\DONE-x264-1080p-ger.1
--action
move
-non-strict
--db TheMovieDB
Y:\Downloads\ftp\NEU-x264-1080p-ger.1
--log-file
amc.log
--lang
de
--def
excludeList=amc.txt
deleteAfterExtract=y
clean=y
--def
movieFormat=Movie/{az}/{plex.tail.derive{" by $director"}{" [$vf, $vc, $ac]"}}
seriesFormat={plex.derive{" [$vc]"}}
animeFormat={plex.derive{" [$vc]"}}
thanks stoneii
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Illegal Argument: java.nio.file.NoSuchFileException

Post by rednoah »

According to your operating system, Y:\Downloads\ftp\NEU-x264-1080p-ger.1 does not exist. I guess it's safe to assume that your Y:\ is some kind of remote (i.e. unreliable) network file system, so if you get file system strangeness, that's probably where something is going awry.
:idea: Please read the FAQ and How to Request Help.
stoneii
Posts: 21
Joined: 08 May 2019, 11:28

Re: Illegal Argument: java.nio.file.NoSuchFileException

Post by stoneii »

Y:" is my Synology I connect the drive
Y:" as a network drive in windows 10 has always worked great ....
I can see the content and read and write on it also delete.. on Y:"
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Illegal Argument: java.nio.file.NoSuchFileException

Post by rednoah »

stoneii wrote: 05 Aug 2020, 14:12 I can see the content and read and write on it also delete.. on Y:
Well, network shares can be finicky and give you different results at different times. Run these commands 2-3 times and see if you get consistent results from both PowerShell and FileBot processes:

Code: Select all

Test-Path -Path 'Y:\Downloads\ftp\NEU-x264-1080p-ger.1' -PathType Container
filebot 'Y:\Downloads\ftp\NEU-x264-1080p-ger.1' -script 'g:println args*.isDirectory()'






On an unrelated not, this is slightly wrong:

Code: Select all

{plex.tail.derive{" by $director"}{" [$vf, $vc, $ac]"}
First derive the new file path, then pick the path tail:

Code: Select all

{plex.derive{" by $director"}{" [$vf, $vc, $ac]"}.tail
You may lose information in certain corner cases if you do it the wrong way around. ;)
:idea: Please read the FAQ and How to Request Help.
stoneii
Posts: 21
Joined: 08 May 2019, 11:28

Re: Illegal Argument: java.nio.file.NoSuchFileException

Post by stoneii »

hello I found the solution the drive letter with Y did not go so I changed it to X and now it runs!!!! don't know what's going on with Y

and i fix in my script

Code: Select all

{plex.derive{" by $director"}{" [$vf, $vc, $ac]"}.tail
now is this the Problem

Code: Select all

PS C:\> filebot @c:\aktuell.txt
Locking C:\Users\Admin\AppData\Roaming\FileBot\logs\amc.log
Run script [fn:amc] at [Wed Aug 05 22:35:27 CEST 2020]
Parameter: excludeList = amc.txt
Parameter: deleteAfterExtract = y
Parameter: clean = y
Parameter: movieFormat = Movie/{az}/{plex.tail.derive{" by $director"}{" [$vf, $vc, $ac]"}}
Parameter: seriesFormat = {plex.derive{" [$vc]"}}
Parameter: animeFormat = {plex.derive{" [$vc]"}}
Argument[0]: X:\Downloads\ftp\NEU-x264-1080p-ger.1
Use excludes: X:\Downloads\ftp\DONE-x264-1080p-ger.1\amc.txt
Read archive [classicalhd-beyond.the.limits-1080p.rar] and extract to [X:\Downloads\ftp\NEU-x264-1080p-ger.1\Beyond.the.Limits.2003.German.AC3D.DL.1080p.BluRay.x264-CLASSiCALHD\classicalhd-beyond.the.limits-1080p\Beyond.the.Limits.2003.German.AC3D.DL.1080p.BluRay.x264-CLASSiCALHD]
Skipped extracting files [X:\Downloads\ftp\NEU-x264-1080p-ger.1\Beyond.the.Limits.2003.German.AC3D.DL.1080p.BluRay.x264-CLASSiCALHD\classicalhd-beyond.the.limits-1080p\Beyond.the.Limits.2003.German.AC3D.DL.1080p.BluRay.x264-CLASSiCALHD\classicalhd-beyond.the.limits-1080p.mkv]
Ignore video extra: X:\Downloads\ftp\NEU-x264-1080p-ger.1\Beyond.the.Limits.2003.German.AC3D.DL.1080p.BluRay.x264-CLASSiCALHD\Sample\classicalhd-beyond.the.limits-1080p-sample.mkv
Read archive [der.liebesbrief.1999.german.dl.1080p.web.h264-wayne.rar] and extract to [X:\Downloads\ftp\NEU-x264-1080p-ger.1\Der.Liebesbrief.1999.GERMAN.DL.1080P.WEB.H264-WAYNE\der.liebesbrief.1999.german.dl.1080p.web.h264-wayne\Der.Liebesbrief.1999.GERMAN.DL.1080P.WEB.H264-WAYNE]
Skipped extracting files [X:\Downloads\ftp\NEU-x264-1080p-ger.1\Der.Liebesbrief.1999.GERMAN.DL.1080P.WEB.H264-WAYNE\der.liebesbrief.1999.german.dl.1080p.web.h264-wayne\Der.Liebesbrief.1999.GERMAN.DL.1080P.WEB.H264-WAYNE\der.liebesbrief.1999.german.dl.1080p.web.h264-wayne.mkv]
Ignore video extra: X:\Downloads\ftp\NEU-x264-1080p-ger.1\Der.Liebesbrief.1999.GERMAN.DL.1080P.WEB.H264-WAYNE\Sample\der.liebesbrief.1999.german.dl.1080p.web.h264-wayne-sample.mkv
Read archive [classicalhd-ein.ganz.normaler.held-1080p.rar] and extract to [X:\Downloads\ftp\NEU-x264-1080p-ger.1\Ein.ganz.normaler.Held.1992.German.AC3D.DL.1080p.WEB.x264-CLASSiCALHD\classicalhd-ein.ganz.normaler.held-1080p\Ein.ganz.normaler.Held.1992.German.AC3D.DL.1080p.WEB.x264-CLASSiCALHD]
Skipped extracting files [X:\Downloads\ftp\NEU-x264-1080p-ger.1\Ein.ganz.normaler.Held.1992.German.AC3D.DL.1080p.WEB.x264-CLASSiCALHD\classicalhd-ein.ganz.normaler.held-1080p\Ein.ganz.normaler.Held.1992.German.AC3D.DL.1080p.WEB.x264-CLASSiCALHD\classicalhd-ein.ganz.normaler.held-1080p.mkv]
Ignore video extra: X:\Downloads\ftp\NEU-x264-1080p-ger.1\Ein.ganz.normaler.Held.1992.German.AC3D.DL.1080p.WEB.x264-CLASSiCALHD\Sample\classicalhd-ein.ganz.normaler.held-1080p-sample.mkv
Read archive [box-fantastic.four.1080p.rar] and extract to [X:\Downloads\ftp\NEU-x264-1080p-ger.1\Fantastic.Four.2015.German.DL.1080p.HDTV.x264.iNTERNAL-HDTVBoX\box-fantastic.four.1080p\Fantastic.Four.2015.German.DL.1080p.HDTV.x264.iNTERNAL-HDTVBoX]
Skipped extracting files [X:\Downloads\ftp\NEU-x264-1080p-ger.1\Fantastic.Four.2015.German.DL.1080p.HDTV.x264.iNTERNAL-HDTVBoX\box-fantastic.four.1080p\Fantastic.Four.2015.German.DL.1080p.HDTV.x264.iNTERNAL-HDTVBoX\box-fantastic.four.1080p.mkv]
Ignore video extra: X:\Downloads\ftp\NEU-x264-1080p-ger.1\Fantastic.Four.2015.German.DL.1080p.HDTV.x264.iNTERNAL-HDTVBoX\sample\box-fantastic.four.1080p-sample.mkv
Ignore video extra: X:\Downloads\ftp\NEU-x264-1080p-ger.1\Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar\sample\vs-somms.1080p-sample.mkv
Ignore orphaned subtitles: X:\Downloads\ftp\NEU-x264-1080p-ger.1\Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar\Subs\vs-somms.1080p-subs\Subs\vs-somms.1080p .idx
Ignore orphaned subtitles: X:\Downloads\ftp\NEU-x264-1080p-ger.1\Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar\Subs\vs-somms.1080p-subs\Subs\vs-somms.1080p .sub
Ignore orphaned subtitles: X:\Downloads\ftp\NEU-x264-1080p-ger.1\Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar\Subs\vs-somms.1080p-subs\Subs\vs-somms.1080p-eng .idx
Ignore orphaned subtitles: X:\Downloads\ftp\NEU-x264-1080p-ger.1\Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar\Subs\vs-somms.1080p-subs\Subs\vs-somms.1080p-eng .sub
Read archive [vs-somms.1080p-subs.rar] and extract to [X:\Downloads\ftp\NEU-x264-1080p-ger.1\Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar\Subs\vs-somms.1080p-subs\Subs]
Skipped extracting files [X:\Downloads\ftp\NEU-x264-1080p-ger.1\Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar\Subs\vs-somms.1080p-subs\Subs\vs-somms.1080p .idx, X:\Downloads\ftp\NEU-x264-1080p-ger.1\Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar\Subs\vs-somms.1080p-subs\Subs\vs-somms.1080p .sub, X:\Downloads\ftp\NEU-x264-1080p-ger.1\Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar\Subs\vs-somms.1080p-subs\Subs\vs-somms.1080p-eng .idx, X:\Downloads\ftp\NEU-x264-1080p-ger.1\Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar\Subs\vs-somms.1080p-subs\Subs\vs-somms.1080p-eng .sub]
Ignore orphaned subtitles: X:\Downloads\ftp\NEU-x264-1080p-ger.1\Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar\Subs\vs-somms.1080p-subs\Subs\vs-somms.1080p .idx
Ignore orphaned subtitles: X:\Downloads\ftp\NEU-x264-1080p-ger.1\Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar\Subs\vs-somms.1080p-subs\Subs\vs-somms.1080p .sub
Ignore orphaned subtitles: X:\Downloads\ftp\NEU-x264-1080p-ger.1\Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar\Subs\vs-somms.1080p-subs\Subs\vs-somms.1080p-eng .idx
Ignore orphaned subtitles: X:\Downloads\ftp\NEU-x264-1080p-ger.1\Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar\Subs\vs-somms.1080p-subs\Subs\vs-somms.1080p-eng .sub
Read archive [vs-somms.1080p .rar] and extract to [X:\Downloads\ftp\NEU-x264-1080p-ger.1\Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar\vs-somms.1080p \Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar]
InvalidPathException: Trailing char < > at index 134: X:\Downloads\ftp\NEU-x264-1080p-ger.1\Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar\vs-somms.1080p \Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar
Trailing char < > at index 134: X:\Downloads\ftp\NEU-x264-1080p-ger.1\Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar\vs-somms.1080p \Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar
java.nio.file.InvalidPathException: Trailing char < > at index 134: X:\Downloads\ftp\NEU-x264-1080p-ger.1\Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar\vs-somms.1080p \Stop.oder.meine.Mami.schiesst.1992.German.DL.1080p.BluRay.x264.iNTERNAL-VideoStar
        at net.filebot.util.FileSet.getPath(FileSet.java:90)
        at net.filebot.util.FileSet.contains(FileSet.java:82)
        at java_util_Set$contains.call(Unknown Source)
        at Script1.acceptFile(Script1.groovy:220)
        at jdk.internal.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at Script1$_resolveInput_closure87.doCall(Script1.groovy:270)
        at jdk.internal.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at com.sun.proxy.$Proxy17.accept(Unknown Source)
        at net.filebot.util.FileUtilities.getChildren(FileUtilities.java:522)
        at net.filebot.cli.ScriptShellMethods.listFiles(ScriptShellMethods.java:95)
        at jdk.internal.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at Script1.resolveInput(Script1.groovy:270)
        at jdk.internal.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at Script1.resolveInput(Script1.groovy:276)
        at jdk.internal.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at Script1$_resolveInput_closure88.doCall(Script1.groovy:270)
        at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at Script1.resolveInput(Script1.groovy:270)
        at jdk.internal.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at Script1$_resolveInput_closure88.doCall(Script1.groovy:270)
        at jdk.internal.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at Script1.resolveInput(Script1.groovy:270)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at Script1$_run_closure52.doCall(Script1.groovy:286)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at Script1.run(Script1.groovy:286)
        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)

Error (o_O)
Thanks
User avatar
rednoah
The Source
Posts: 22976
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Illegal Argument: java.nio.file.NoSuchFileException

Post by rednoah »

Looks like you accidentally inserted an extra space < > there at index 134:

Code: Select all

Trailing char < > at index 134: ...\vs-somms.1080p \...

:idea: On Windows, folder names cannot end with space characters.
:idea: Please read the FAQ and How to Request Help.
stoneii
Posts: 21
Joined: 08 May 2019, 11:28

Re: Illegal Argument: java.nio.file.NoSuchFileException

Post by stoneii »

Hy the Problem is fixt.
i install windows 10 new and i link the network drive fix in the windows system after a new instalation the network shar come up and loging in automatical
Post Reply