issues with automated script on WHS 2011

Any questions? Need some help?
Post Reply
tazg101
Posts: 2
Joined: 29 Sep 2015, 20:20

issues with automated script on WHS 2011

Post by tazg101 »

Hi, I've been running a script for subtitles on my WHS 2011 server for a couple years now with no issues.

The other day this stopped without me making any changes to server. Since then I have updated filebot to latest version and also reinstalled JAVA but issue still persists.

The following is my log file

Code: Select all

Cannot cast object 'java.util.stream.ReferencePipeline$2@1eaca72' with class 'java.util.stream.ReferencePipeline$2' to class 'double'
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'java.util.stream.ReferencePipeline$2@1eaca72' with class 'java.util.stream.ReferencePipeline$2' to class 'double'
	at Script1$_run_closure5.doCall(Script1.groovy:36)
	at Script1$_run_closure6$_closure8.doCall(Script1.groovy:52)
	at Script1$_run_closure6.doCall(Script1.groovy:52)
	at net.filebot.cli.ScriptShellMethods.eachMediaFolder(ScriptShellMethods.java:214)
	at Script1.run(Script1.groovy:50)
	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:119)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
	at net.filebot.Main.main(Main.java:115)

Failure (°_°)
Exclude: F:\ServerFolders\Movies\Action
Exclude: F:\ServerFolders\Movies\Bollywood
Exclude: F:\ServerFolders\Movies\Comedy
Cannot cast object 'java.util.stream.ReferencePipeline$2@1e94a96' with class 'java.util.stream.ReferencePipeline$2' to class 'double'
org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot cast object 'java.util.stream.ReferencePipeline$2@1e94a96' with class 'java.util.stream.ReferencePipeline$2' to class 'double'
	at Script1$_run_closure5.doCall(Script1.groovy:36)
	at Script1$_run_closure6$_closure8.doCall(Script1.groovy:52)
	at Script1$_run_closure6.doCall(Script1.groovy:52)
	at net.filebot.cli.ScriptShellMethods.eachMediaFolder(ScriptShellMethods.java:214)
	at Script1.run(Script1.groovy:50)
	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:119)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
	at net.filebot.Main.main(Main.java:115)

Failure (°_°)
Following is my automated batch file:

Code: Select all

filebot -clear-cache

filebot -script "c:\subal.groovy" --log-file c:/log.txt "f:\serverfolders\tv"  --lang eng -non-strict --def maxAgeDays=7

filebot -script "c:\subal.groovy" --log-file c:/log.txt f:\serverfolders\movies --lang eng -non-strict --def maxAgeDays=7

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

Re: issues with automated script on WHS 2011

Post by rednoah »

The error is in Line 50 of your script. But since you didn't post your script, that's all I can tell you. Depending on how much custom code you have or need, I'd just use the official script repository (e.g. -script fn:suball) instead.
:idea: Please read the FAQ and How to Request Help.
Post Reply