[AMC] Random NullPointerExeption at runtime

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
Greg
Posts: 4
Joined: 28 Feb 2015, 17:59

[AMC] Random NullPointerExeption at runtime

Post by Greg »

Hello,

I'm currently using FileBot 4.2 for my media center running on a NetGear ReadyNAS 102 and a RaspberryPi.

My qBittorrent call a bash script which execute the Filebot JAR however the result of the execution is sometimes in error with a NullPointerExeption.

For example :
Automatic Command execution : result KO

Code: Select all

2015-02-28 17:56:11 INFO Search & rename /data/Media/__A_RANGER/download_end/[ http://www.Cpasbien.pw ] Arrow.S03E15.FASTSUB.VOSTFR.HDTV.XviD-ADDiCTiON.avi [type=F] with Filebot

2015-02-28 17:56:11 DEBUG java  -jar /data/Private/06-Divers/dev/shell/FileBot_4.2.jar -script fn:amc --action move --conflict override -non-strict --def "seriesFormat=/data/Media/Video/Serie/{n}/Saison {s}/{n} - {s00e00} - {t}" --def "movieFormat=/data/Media/Video/Movie/{n} [{y}]/{n} [{y}] ({director} - {genres})" --def "clean=y" --def "excludeList=/data/Private/06-Divers/dev/shell/amc.txt" --def "xbmc=myraspberry" --def "minFileSize=50000000" "ut_kind=multi" "ut_dir=/data/Media/__A_RANGER/download_end/[ www.Cpasbien.pw ] Arrow.S03E15.FASTSUB.VOSTFR.HDTV.XviD-ADDiCTiON.avi"  

Parameter: seriesFormat = /data/Media/Video/Serie/{n}/Saison {s}/{n} - {s00e00} - {t}
Parameter: movieFormat = /data/Media/Video/Movie/{n} [{y}]/{n} [{y}] ({director} - {genres})
Parameter: clean = y
Parameter: excludeList = /data/Private/06-Divers/dev/shell/amc.txt
Parameter: xbmc = myraspberry
Parameter: minFileSize = 50000000
Parameter: ut_kind = multi
Parameter: ut_dir = /data/Media/__A_RANGER/download_end/[ www.Cpasbien.pw ] Arrow.S03E15.FASTSUB.VOSTFR.HDTV.XviD-ADDiCTiON.avi

Input: /data/Media/__A_RANGER/download_end/[ www.Cpasbien.pw ] Arrow.S03E15.FASTSUB.VOSTFR.HDTV.XviD-ADDiCTiON.avi
Group: [tvs:arrow] => [[ www.Cpasbien.pw ] Arrow.S03E15.FASTSUB.VOSTFR.HDTV.XviD-ADDiCTiON.avi]
Rename episodes using [TheTVDB]
Auto-detected query: [Arrow]
Feb 28, 2015 6:02:46 PM net.filebot.WebServices$TheTVDBClientWithLocalSearch$3 call
SEVERE: 
java.lang.NullPointerException: 
	at java.util.concurrent.locks.AbstractQueuedSynchronizer.compareAndSetState(AbstractQueuedSynchronizer.java:566)
	at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:211)
	at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:290)
	at java.util.concurrent.ThreadPoolExecutor.checkShutdownAccess(ThreadPoolExecutor.java:735)
	at java.util.concurrent.ThreadPoolExecutor.shutdownNow(ThreadPoolExecutor.java:1422)
	at net.filebot.web.LocalSearch.search(LocalSearch.java:83)
	at net.filebot.WebServices$TheTVDBClientWithLocalSearch$3.call(WebServices.java:183)
	at net.filebot.WebServices$TheTVDBClientWithLocalSearch$3.call(WebServices.java:178)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)

java.lang.NullPointerException: 
Clean clutter files and empty folders
NullPointerException: java.lang.NullPointerException: 
java.lang.NullPointerException: 
	at net.filebot.web.WebRequest.fetch(WebRequest.java:140)
	at net.filebot.web.WebRequest.fetchIfModified(WebRequest.java:118)
	at net.filebot.web.CachedResource.fetchData(CachedResource.java:32)
	at net.filebot.web.CachedResource.fetchData(CachedResource.java:11)
	at net.filebot.web.AbstractCachedResource.fetch(AbstractCachedResource.java:133)
	at net.filebot.web.AbstractCachedResource.get(AbstractCachedResource.java:78)
	at net.filebot.cli.ArgumentProcessor$DefaultScriptProvider.fetchScript(ArgumentProcessor.java:198)
	at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:81)
	at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:77)
	at net.filebot.cli.ScriptShellBaseClass.executeScript(ScriptShellBaseClass.java:101)
	at Script1.run(Script1.groovy:546)
	at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:60)
	at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:81)
	at net.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:108)
	at net.filebot.Main.main(Main.java:191)
Failure (°_°)
2015-02-28 18:02:50 ERROR[12] Filebot exception [code = 255]
2015-02-28 18:02:50 DEBUG Move /data/Media/__A_RANGER/download_end/[ www.Cpasbien.pw ] Arrow.S03E15.FASTSUB.VOSTFR.HDTV.XviD-ADDiCTiON.avi in /data/Media/__A_RANGER/unsorted/
2015-02-28 18:02:50 INFO END KO 12
- Same command : result OK

Code: Select all

2015-02-28 18:08:50 INFO Search & rename /data/Media/__A_RANGER/download_end/[ www.Cpasbien.pw ] Arrow.S03E15.FASTSUB.VOSTFR.HDTV.XviD-ADDiCTiON.avi [type=F] with Filebot

2015-02-28 18:08:50 DEBUG java  -jar /data/Private/06-Divers/dev/shell/FileBot_4.2.jar -script fn:amc --action move --conflict override -non-strict --def "seriesFormat=/data/Media/Video/Serie/{n}/Saison {s}/{n} - {s00e00} - {t}" --def "movieFormat=/data/Media/Video/Movie/{n} [{y}]/{n} [{y}] ({director} - {genres})" --def "clean=y" --def "excludeList=/data/Private/06-Divers/dev/shell/amc.txt" --def "xbmc=myraspberry" --def "minFileSize=50000000" "ut_kind=multi" "ut_dir=/data/Media/__A_RANGER/download_end/[ www.Cpasbien.pw ] Arrow.S03E15.FASTSUB.VOSTFR.HDTV.XviD-ADDiCTiON.avi"  

Parameter: seriesFormat = /data/Media/Video/Serie/{n}/Saison {s}/{n} - {s00e00} - {t}
Parameter: movieFormat = /data/Media/Video/Movie/{n} [{y}]/{n} [{y}] ({director} - {genres})
Parameter: clean = y
Parameter: excludeList = /data/Private/06-Divers/dev/shell/amc.txt
Parameter: xbmc = myraspberry
Parameter: minFileSize = 50000000
Parameter: ut_kind = multi
Parameter: ut_dir = /data/Media/__A_RANGER/download_end/[ www.Cpasbien.pw ] Arrow.S03E15.FASTSUB.VOSTFR.HDTV.XviD-ADDiCTiON.avi
Input: /data/Media/__A_RANGER/download_end/[ www.Cpasbien.pw ] Arrow.S03E15.FASTSUB.VOSTFR.HDTV.XviD-ADDiCTiON.avi
Group: [tvs:arrow] => [[ www.Cpasbien.pw ] Arrow.S03E15.FASTSUB.VOSTFR.HDTV.XviD-ADDiCTiON.avi]
Rename episodes using [TheTVDB]
Auto-detected query: [Arrow]
Fetching episode data for [Arrow]
[MOVE] Rename [/data/Media/__A_RANGER/download_end/[ www.Cpasbien.pw ] Arrow.S03E15.FASTSUB.VOSTFR.HDTV.XviD-ADDiCTiON.avi] to [/data/Media/Video/Serie/Arrow/Saison 3/Arrow - S03E15 - Nanda Parbat.avi]
Processed 1 files
Notify XBMC: myraspberry
Done ?(@???@)?
2015-02-28 18:14:36 INFO END OK

Please find below my system information:

Code: Select all

root@MyNAS:~# java -jar /data/Private/06-Divers/dev/shell/FileBot_4.2.jar -script fn:sysinfo
FileBot 4.2 (r2326)
JNA Native: null
MediaInfo: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Native
7-Zip-JBinding: net.sf.sevenzipjbinding.SevenZipNativeInitializationException: Failed to load 7z-JBinding: no 7-Zip-JBinding in java.library.path
chromaprint-tools: java.io.IOException: Cannot run program "fpcalc": error=2, No such file or directory
Extended Attributes: DISABLED
Groovy Engine: 2.3.4
JRE: OpenJDK Runtime Environment 1.7.0_75 (headless)
JVM: 32-bit OpenJDK Zero VM
CPU/MEM: 1 Core / 239 MB Max Memory / 11 MB Used Memory
OS: Linux (arm)
uname: Linux MyNAS 3.0.101.RN_ARM.3 #1 Thu Dec 18 18:39:16 PST 2014 armv7l GNU/Linux
Thanks in advance for your help.

Don't hesitate if you need further information.

Regards.
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [AMC] Random NullPointerExeption at runtime

Post by rednoah »

It's probably just a random hiccup in the runtime. Looks pretty obscure, so it should be really rare and isolated issue. Does it happen often?

I recommend using the latest version of FileBot and Java 8 runtime. I discourage using the jar directly (see filebot.sh as reference how it should be called) and instead using the portable package (if no other package is suitable) and run filebot via filebot.sh launch script which will run things with the appropriate configuration.
:idea: Please read the FAQ and How to Request Help.
Post Reply