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

Support for Synology NAS, QNAP NAS and other Embedded Linux systems
Post Reply
nekromantik
Posts: 22
Joined: 13 Jul 2015, 21:25

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

Post 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?
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Filebot script error

Post by rednoah »

Do -clear-cache and try again. There's a bug where network issues can lead to a bad cache state.
:idea: Please read the FAQ and How to Request Help.
nekromantik
Posts: 22
Joined: 13 Jul 2015, 21:25

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

Post by nekromantik »

Nope that made no difference.
Same error.
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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
:idea: Please read the FAQ and How to Request Help.
nekromantik
Posts: 22
Joined: 13 Jul 2015, 21:25

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

Post by nekromantik »

It said rm /volume1/@appstore/filebot/data/admin/cache/0 after running clear cache.
I will download latest jar and try.
thanks
nekromantik
Posts: 22
Joined: 13 Jul 2015, 21:25

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

Post by nekromantik »

Works now after updating jar
Thanks
peterfnet
Posts: 1
Joined: 15 Jul 2016, 00:13

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

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