[Solved]IllegalArgumentException: URI can't be null.

Any questions? Need some help?
Post Reply
Ernie95
Posts: 10
Joined: 17 Oct 2015, 19:07

[Solved]IllegalArgumentException: URI can't be null.

Post by Ernie95 »

Dear All,

I am using filebot version 4.7

It works fine but I see the following message at the end of the execution of the script:
IllegalArgumentException: URI can't be null

My script is:

Code: Select all

T_PATH=$1
T_NAME=$2
T_LABEL=$3
sh /home/user/.filebot/filebot.sh --lang fr --encoding utf8 -script fn:amc --output "/home/user/rd" --log-file "/home/user/.session/amc.log" --action move --conflict override -non-strict --def plex=localhost[:token] music=n artwork=n "ut_dir=/home/user/ts" "ut_kind=multi" "ut_title=$T_NAME" "ut_label=$T_LABEL" &
sh /home/user/.filebot/filebot.sh -script fn:cleaner --def root=y /home/user/ts
I suppose that it comes from the second line of the script:

Code: Select all

sh /home/user/.filebot/filebot.sh -script fn:cleaner --def root=y /home/user/ts
In ts folder there is files and also folders with files.

Do I need to use quote for the folder: "/home/user/ts" or not ?

If I need to delete also folder, do i need to add option in the line of the script ? Which one ?

Thanks for your help
Last edited by Ernie95 on 03 Jun 2017, 15:42, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 22995
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: IllegalArgumentException: URI can't be null.

Post by rednoah »

Thanks for the post! Before a real human comes by, please make sure your report has all the following points checked:
  • What are you trying to do achieve? What's not working? What have you tried so far?
  • Include screenshots, logs or filenames (i.e. demonstrate the issue)
  • Include basic information (i.e. sysinfo output)
:idea: Please read How to Request Help and Fix Problems, Report Bugs, Get Features
:idea: Please read the FAQ and How to Request Help.
Ernie95
Posts: 10
Joined: 17 Oct 2015, 19:07

Re: IllegalArgumentException: URI can't be null.

Post by Ernie95 »

SOme additional information:

Code: Select all

root@PC:/home/user/.filebot# ./filebot.sh -script fn:sysinfo
FileBot 4.7.9 (r4984)
JNA Native: 5.1.0
MediaInfo: 0.7.93
Apache Commons VFS: [zip, rar]
Chromaprint: java.io.IOException: Cannot run program "fpcalc": error=2, Aucun fichier ou dossier de ce type
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2017-04-03 (r494)
Groovy: 2.4.10
JRE: Java(TM) SE Runtime Environment 1.8.0_131
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 1 Core / 487 MB Max Memory / 12 MB Used Memory
OS: Linux (amd64)
Package: PORTABLE
Data: /home/user/.filebot/data
uname: Linux PC 3.16.0-4-amd64 #1 SMP Debian 3.16.36-1+deb8u2 (2016-10-19) x86_64 GNU/Linux
Done ヾ(@⌒ー⌒@)ノ
My issue is:
When my script runs, the files is renamed in the rigth folders but at the end of the execution there is the following message:
URI can't be null

I would like to understand why this message.

The script is in my first post.

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

Re: IllegalArgumentException: URI can't be null.

Post by rednoah »

1.
Please include the console output of the command that contains this error message:

Code: Select all

URI can't be null
Is the source of the warning the amc script command? or the cleaner command? or a different command?


2.
This is not a valid option:

Code: Select all

--def plex=localhost[:token]
token refers to your authentication token.

e.g.

Code: Select all

--def plex=plex.example.net:XEP624
:idea: Please read the FAQ and How to Request Help.
Ernie95
Posts: 10
Joined: 17 Oct 2015, 19:07

Re: IllegalArgumentException: URI can't be null.

Post by Ernie95 »

Thanks Rednoah

Sorry for my delay but I was busy.

Big thanks : it is fast solved. I didn't know that I add to remove the [ before token and after token. In my script I put the token number but not in this post (I written token).

Here after the result of the execution of the script:

Code: Select all

Locking /home/user/.session/amc.log
Done ヾ(@⌒ー⌒@)ノ
root@debian:/home/user# Run script [fn:amc] at [Thu Jun 01 19:17:36 CEST 2017]
Parameter: plex = *****
Parameter: music = n
Parameter: artwork = n
Parameter: ut_dir = /home/user/source
Parameter: ut_kind = multi
Parameter: ut_title = 
Parameter: ut_label = 
Input: /home/user/source/fichier.mkv
Group: [mov:fichier 2010] => [fichier.2010.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/user/source/fichier.2010.mkv]
[OVERRIDE] Delete [/home/user/source/Fichier (2010).mkv]
[MOVE] From [/home/user/source/fichier.2010.mkv] to [/home/user/destination/fichier.2010.mkv]
Processed 1 files
Notify Plex: [host:localhost, token:dummytoken]
GET: http://localhost:32400/library/sections/all/refresh?X-Plex-Token=dummytoken
ConnectException: Connexion refusée (Connection refused)
Done ヾ(@⌒ー⌒@)ノ
So the first message error is solved.

I have a new one and I think that filebot has problem to connect with plex.

I will investigate and thanks for your potential advices.

B.R.
Ernie95
Posts: 10
Joined: 17 Oct 2015, 19:07

Re: [Solved]IllegalArgumentException: URI can't be null.

Post by Ernie95 »

Hello,

I found the solution based on rednoah advice. I had to write :

Code: Select all

--def plex=ipadress:XEP624
It works without error or warning

Thanks
Post Reply