java.lang.ClassNotFoundException: com.github.benmanes.caffeine.cache.Caffeine

Support for Ubuntu and other Desktop Linux distributions
Post Reply
nikeb
Posts: 28
Joined: 13 Jun 2014, 07:26

java.lang.ClassNotFoundException: com.github.benmanes.caffeine.cache.Caffeine

Post by nikeb »

Hi

It's been a while since i use my filebot amc script without any error.
Lately i've been finding some problem with the error in subject when i try to use the suball amc script

Error: Select all

An unexpected error occurred during startup: java.lang.NoClassDefFoundError: com/github/benmanes/caffeine/cache/Caffeine
java.lang.NoClassDefFoundError: com/github/benmanes/caffeine/cache/Caffeine
        at net.filebot.MemoryCache.forMinutes(Unknown Source)
        at net.filebot.WebServices$TMDbMovieClient.<init>(Unknown Source)
        at net.filebot.WebServices.<clinit>(Unknown Source)
        at net.filebot.Main.main(Unknown Source)
Caused by: java.lang.ClassNotFoundException: com.github.benmanes.caffeine.cache.Caffeine
        ... 4 more
That's my

Console Output: Select all

$ filebot -version
FileBot 5.1.2 (r10125) / OpenJDK Runtime Environment 11.0.19
I've already try to check and upgrade every package.
My script:

Shell: Select all

filebot -script fn:suball /home/myuser/myfolder -non-strict --lang it --def maxAgeDays=7 
Any suggestion?

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

Re: java.lang.ClassNotFoundException: com.github.benmanes.caffeine.cache.Caffeine

Post by rednoah »

:!: That error would suggest that caffeine.jar was somehow removed from the FileBot application folder. That would be most unusual. Files suddenly becoming unreadable by themselves is very scary. That could suggest a severe hardware problem, a failing disk, etc.


:?: What does filebot -script fn:sysinfo say?


:idea: You're using a very old version of OpenJDK. I would recommend OpenJDK 17 at the very least.
:idea: Please read the FAQ and How to Request Help.
nikeb
Posts: 28
Joined: 13 Jun 2014, 07:26

Re: java.lang.ClassNotFoundException: com.github.benmanes.caffeine.cache.Caffeine

Post by nikeb »

Hi

I actually upgrade the OpenJDK RE to version 17.0.7 but i got the same error , everytime i call -script in my command line.
Even the fn:sysinfo gets the same error.
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: java.lang.ClassNotFoundException: com.github.benmanes.caffeine.cache.Caffeine

Post by rednoah »

:?: How did you install FileBot? Have you tried reinstalling FileBot?


:?: Which Linux are you using?


:?: Did you confirm that the caffeine.jar file is in the FileBot application folder?

Shell: Select all

ls -l /usr/share/filebot/jar
:idea: Please read the FAQ and How to Request Help.
nikeb
Posts: 28
Joined: 13 Jun 2014, 07:26

Re: java.lang.ClassNotFoundException: com.github.benmanes.caffeine.cache.Caffeine

Post by nikeb »

I can confirm that the cafferine.jar file is in the folder.
I' m using a distro called armbian, a debian fork for SMC with arm cpu (it was working since 2019)

Anyway, reinstalling the package (apt install --reinstall filebot) solve the problem and now it's working again.

Thank you very much
User avatar
rednoah
The Source
Posts: 23002
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: java.lang.ClassNotFoundException: com.github.benmanes.caffeine.cache.Caffeine

Post by rednoah »

Files disappearing / corrupting by themselves is scary. Could be anything. Software running on device. Storage device failing. Etc. I'd keep an eye on it and make sure you have backups.
:idea: Please read the FAQ and How to Request Help.
Post Reply