Page 1 of 1

ClassCastException: Cannot cast java.lang.String to [B

Posted: 23 May 2016, 20:53
by nekromantik
Hi all
Im running filebot fine on my synology ds214j until today.
I use a script to call filebot on rtorrent downloads but today all files I been seeing this error:

Code: Select all

Input: /volume1/Stuff/downloads/The.Flash.2014.S02E22.HDTV.mkv
Failed to load series index: Cannot cast java.lang.String to [B
Failed to load series mappings: Cannot cast java.lang.String to [B
java.lang.ClassCastException: Cannot cast java.lang.String to [B
    at net.filebot.CachedResource.get(CachedResource.java:107)
    at net.filebot.media.ReleaseInfo.lambda$resource$18(ReleaseInfo.java:490)
    at net.filebot.TransformedResource.get(Resource.java:54)
    at net.filebot.MemoizedResource.get(Resource.java:36)
    at net.filebot.media.ReleaseInfo.getSeriesMappings(ReleaseInfo.java:367)
    at net.filebot.media.MediaDetection.matchSeriesMappings(MediaDetection.java:466)
    at net.filebot.media.MediaDetection.detectSeriesNames(MediaDetection.java:357)
    at net.filebot.media.MediaDetection.detectSeriesNames(MediaDetection.java:327)
    at net.filebot.cli.ScriptShellBaseClass.detectSeriesName(ScriptShellBaseClass.java:226)
    at net.filebot.cli.ScriptShellBaseClass.detectSeriesName(ScriptShellBaseClass.java:214)
    at Script1$_run_closure68.doCall(Script1.groovy:279)
    at Script1.run(Script1.groovy:270)
    at net.filebot.cli.ScriptShell.evaluate(ScriptShell.java:62)
    at net.filebot.cli.ScriptShell.runScript(ScriptShell.java:72)
    at net.filebot.cli.ArgumentProcessor.runScript(ArgumentProcessor.java:114)
    at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:29)
    at net.filebot.Main.main(Main.java:120)
Failed to match folder structure: java.lang.ClassCastException: Cannot cast java.lang.String to [B
Failed to strip release info: Cannot cast java.lang.String to [B
java.lang.ClassCastException: Cannot cast java.lang.String to [B
Any suggestions?

Re: Filebot script error

Posted: 24 May 2016, 05:45
by rednoah
Do -clear-cache and try again. There's a bug where network issues can lead to a bad cache state.

Re: ClassCastException: Cannot cast java.lang.String to [B

Posted: 24 May 2016, 12:07
by nekromantik
Nope that made no difference.
Same error.

Re: ClassCastException: Cannot cast java.lang.String to [B

Posted: 24 May 2016, 13:27
by rednoah
1.
What did the log say when you cleared the cache? If the issue persists, you probably didn't actually clear the cache.

2.
Have you tried the latest revision?
viewtopic.php?f=7&t=1609

Re: ClassCastException: Cannot cast java.lang.String to [B

Posted: 24 May 2016, 14:48
by nekromantik
It said rm /volume1/@appstore/filebot/data/admin/cache/0 after running clear cache.
I will download latest jar and try.
thanks

Re: ClassCastException: Cannot cast java.lang.String to [B

Posted: 24 May 2016, 19:04
by nekromantik
Works now after updating jar
Thanks

Re: ClassCastException: Cannot cast java.lang.String to [B

Posted: 15 Jul 2016, 00:17
by peterfnet
Had the same problem in 4.7 64-bit. Navigated to C:\Program Files\FileBot\ and ran the following command:

filebot -clear-cache


Resulting output was:
Clear cache
* Delete C:\Users\Administrator\AppData\Roaming\FileBot\cache\0
* Delete C:\Users\Administrator\AppData\Roaming\FileBot\cache\1

Running filebot from there no longer gave the error.