Null pointer exception

All your suggestions, requests and ideas for future development
Post Reply
hellmaker
Donor
Posts: 36
Joined: 13 Jan 2016, 20:43

Null pointer exception

Post by hellmaker »

Hi,

when running filebot on my nas i get the following error:

Code: Select all

Locking /volume1/@appstore/filebot-node/filebot.log
Run script [fn:amc] at [Thu Mar 03 05:00:13 GMT+01:00 2016]
Parameter: ut_label = MOVIE
Parameter: unsorted = y
Parameter: artwork = y
Parameter: clean = y
Parameter: deleteAfterExtract = y
Parameter: minLengthMS = 600000
Argument: /volume1/TV-Aufnahmen/sortmovie
CmdlineException: No files: []
Input: /volume1/TV-Aufnahmen/sortmovie/Wish-1-Was-Here.Tragikomödie.ts
Group: [mov:what 1972] => [Wish-1-Was-Here.Tragikomödie.ts]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/volume1/TV-Aufnahmen/sortmovie/Wish-1-Was-Here.Tragikomödie.ts]
Apply Filter: {y >= 2000}
CmdlineException: Unable to identify or process any files
Processing 1 unsorted files
CmdlineException: No files: []
NullPointerException: Cannot invoke method isAbsolute() on null object
java.lang.NullPointerException: Cannot invoke method isAbsolute() on null object
	at Script1$_run_closure72.doCall(Script1.groovy:420)
	at Script1.run(Script1.groovy:418)
	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:169)
Failure (°_°)
The call is:

Code: Select all

filebot -script 'fn:amc' /volume1/TV-Aufnahmen/sortmovie --output /volume1/TV-Aufnahmen/Fertig --action move --filter 'y >= 2000' -non-strict --conflict override --lang de --def 'ut_label=MOVIE' 'unsorted=y' 'artwork=y' 'clean=y' 'deleteAfterExtract=y' 'minLengthMS=600000' --log all --log-file '/volume1/@appstore/filebot-node/filebot.log' >> '/volume1/TV-Aufnahmen/filebotmovie.log' 2>&1
Can not handle that error. Java Runtime seems to be fine. Dunno what to do.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Null pointer exception

Post by rednoah »

Do filebot -clear-cache once and then try again. I think this issue is related to an issue with unsorted=y that has already been fixed. You could try setting unsorted=n and see if that works.

EDIT:

There was an issue with --def unsorted=y in combination with --filter being set. The problem has been fixed in the amc script. It'll auto-update within a week, or you can do -clear-cache now to force an update.
:idea: Please read the FAQ and How to Request Help.
hellmaker
Donor
Posts: 36
Joined: 13 Jan 2016, 20:43

Re: Null pointer exception

Post by hellmaker »

This fixed it! Thanks!

But new problem with unsorted.........
It does not move the file, it is moving the file + rekursiv directorie.

It means that:

/Unsorted/ABC/DEF/File_Unsorted.ts
instead of
/Unsorted/File_Unsorted.ts
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Null pointer exception

Post by rednoah »

The default unsorted format you are using:

Code: Select all

Unsorted/{file.structurePathTail}
The unsorted format you describe:

Code: Select all

Unsorted/{fn}
:idea: Please read the FAQ and How to Request Help.
DarkLite1
Posts: 12
Joined: 11 Oct 2014, 10:28

Re: Null pointer exception

Post by DarkLite1 »

I'm having this same issue with releas 4.7.2 on Ubuntu 14.04 fully patched. It always worked fine but now for one reason or another I get 'NullPointerException:java.lang.NullPointerException' when using TheTVDB with only default settings. I'm also running the latest java and tried your suggestion '

Code: Select all

sudo filebot -clear-cache
', but still the same issue.

Apparently working with TheMovieDB for movie folders works just fine. But for serie files with TheTVDB it isn't working.

The Groovy stuff:
FileBot 4.7.2 (r4178)
JNA Native: 4.0.1
MediaInfo: MediaInfoLib - v0.7.69
7-Zip-JBinding: 9.20
Chromaprint: fpcalc version 1.1.0 (/usr/share/filebot/fpcalc)
Extended Attributes: OK
GVFS: OK
Groovy Engine: 2.4.7
JRE: Java(TM) SE Runtime Environment 1.8.0_101
JVM: 64-bit Java HotSpot(TM) 64-Bit Server VM
CPU/MEM: 4 Core / 1 GB Max Memory / 203 MB Used Memory
OS: Linux (amd64)
Package: DEB
Data: /home/viper/.filebot
uname: Linux viper-desktop 4.2.0-35-generic #40~14.04.1-Ubuntu SMP Fri Mar 18 16:37:35 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Null pointer exception

Post by rednoah »

Please post the full output including file paths.
:idea: Please read the FAQ and How to Request Help.
Bazzu85
Posts: 51
Joined: 16 Nov 2016, 19:28

Re: Null pointer exception

Post by Bazzu85 »

hi, I'm having null pointer using format S00e00 in version 4.7.2, in 4.7 the issue is not present
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Null pointer exception

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.
Post Reply