java.lang.NoSuchMethodError: 'void com.sun.jna.Memory.close()'

Support for Ubuntu and other Desktop Linux distributions
Post Reply
bigdownloads
Posts: 3
Joined: 01 Mar 2019, 17:09

java.lang.NoSuchMethodError: 'void com.sun.jna.Memory.close()'

Post by bigdownloads »

Ran apt-get update last night and this morning my filebot seems to be dead. I think its java related from what ive searched up.

sysinfo script:

filebot -script fn:sysinfo
FileBot 5.1.0 (r9972)
JNA Native: 6.1.1
MediaInfo: 21.09
Tools: fpcalc/1.5.1 7z/16.02 unrar/6.11
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2023-08-30 (r929)
Groovy: 4.0.14
JRE: OpenJDK Runtime Environment 17.0.8.1
JVM: OpenJDK 64-Bit Server VM
CPU/MEM: 8 Core / 1.6 GB Max Memory / 42 MB Used Memory
OS: Linux (amd64)
HW: Linux torrentserver 5.15.74-1-pve #1 SMP PVE 5.15.74-1 (Mon, 14 Nov 2022 20:17:15 +0100) x86_64 x86_64 x86_64 GNU/Linux
CPU/MEM: : Intel(R) Xeon(R) CPU E5-2667 0 @ 2.90GHz / MemTotal: 6 GB / MemFree: 573 KB / MemAvailable: 5 GB / SwapTotal: 8 GB / SwapFree: 8 GB
STORAGE: ext4 [/] @ 16 GB | ext4 [/home/reilly/Downloads] @ 5 TB
UID/GID: uid=1000(xxxxx) gid=1000(xxxxx) groups=1000(xxxxx),27(xxxxx),33(xxxxx),120(xxxxx),999(xxxxx)
DATA: /home/xxxxx/.filebot
Package: DEB
License: FileBot License xxxxxxxxxx (Valid-Until: 2024-09-03)
Done ヾ(@⌒ー⌒@)ノ



Error I am getting:

Parameter: unsorted = y
Parameter: music = y
Parameter: artwork = y
Parameter: ut_dir = /home/xxxxx/Downloads/Ahsoka.S01E03.1080p.WEB.H264-LAZYCUNTS
Parameter: ut_kind = multi
Parameter: ut_title = Ahsoka.S01E03.1080p.WEB.H264-LAZYCUNTS
Parameter: ut_label =
java.lang.NoSuchMethodError: 'void com.sun.jna.Memory.close()'
java.lang.NoSuchMethodError: 'void com.sun.jna.Memory.close()'
at net.filebot.mediainfo.MediaInfo.read(Unknown Source)
at net.filebot.media.MediaInfoTool$Library.raw(Unknown Source)
at net.filebot.media.MediaInfoTable.raw(Unknown Source)
at net.filebot.media.MediaInfoTable.lambda$static$3(Unknown Source)
at net.filebot.media.XattrCache.read(Unknown Source)
at net.filebot.media.XattrCache.lambda$get$0(Unknown Source)
at net.filebot.Cache.computeIf(Unknown Source)
at net.filebot.Cache.computeIfAbsent(Unknown Source)
at net.filebot.media.XattrCache.get(Unknown Source)
at net.filebot.media.MediaInfoTable.read(Unknown Source)
at net.filebot.media.MediaCharacteristicsParser$1.open(Unknown Source)
at net.filebot.media.CachedMediaCharacteristics.lambda$getMediaCharacteristics$0(Unknown Source)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.lambda$doComputeIfAbsent$14(BoundedLocalCache.java:2406)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.doComputeIfAbsent(BoundedLocalCache.java:2404)
at com.github.benmanes.caffeine.cache.BoundedLocalCache.computeIfAbsent(BoundedLocalCache.java:2387)
at com.github.benmanes.caffeine.cache.LocalCache.computeIfAbsent(LocalCache.java:108)
at com.github.benmanes.caffeine.cache.LocalManualCache.get(LocalManualCache.java:62)
at net.filebot.MemoryCache.get(Unknown Source)
at net.filebot.media.CachedMediaCharacteristics.getMediaCharacteristics(Unknown Source)
at net.filebot.cli.ScriptShellMethods.getMediaCharacteristics(Unknown Source)
at Script.doCall(Script:305)
at Script.doCall(Script)
at net.filebot.format.ExpressionFormatFunctions.call(Unknown Source)
at net.filebot.format.ExpressionFormatFunctions.lambda$stream$0(Unknown Source)
at net.filebot.format.ExpressionFormatFunctions.any(Unknown Source)
at Script.acceptFile(Script:305)
at Script.doCall(Script:329)
at net.filebot.cli.ScriptShellMethods.lambda$findSibling$0(Unknown Source)
at net.filebot.util.FileUtilities.getChildren(Unknown Source)
at net.filebot.cli.ScriptShellMethods.listFiles(Unknown Source)
at Script.resolveInput(Script:329)
at Script.doCall(Script:342)
at Script.run(Script:342)
at net.filebot.GroovyEngine.eval(Unknown Source)
at net.filebot.cli.ScriptShell.evaluate(Unknown Source)
at net.filebot.cli.ScriptShell.runScript(Unknown Source)
at net.filebot.cli.ArgumentProcessor.runScript(Unknown Source)
at net.filebot.cli.ArgumentProcessor.run(Unknown Source)
at net.filebot.Main.main(Unknown Source)
bigdownloads
Posts: 3
Joined: 01 Mar 2019, 17:09

Re: java.lang.NoSuchMethodError: 'void com.sun.jna.Memory.close()'

Post by bigdownloads »

I fixed the issue.

Ended up manually purging all java installations using this "https://gist.github.com/lovato/7063928" and removing all filebot installations, rebooting and reinstalling filebot via "sudo apt-get update install filebot".

I also had some other issues that i fixed, setting system locale. I had to generate the locale using the following:


$ sudo locale-gen "en_US.UTF-8"
Generating locales...
en_US.UTF-8... done
Generation complete.

$ sudo dpkg-reconfigure locales
Generating locales...
en_US.UTF-8... up-to-date
Generation complete.
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: java.lang.NoSuchMethodError: 'void com.sun.jna.Memory.close()'

Post by rednoah »

The root cause is unintended compatibility issues with older versions of JNA that we can fix easily on the FileBot side of things:
rednoah wrote: 31 Aug 2023, 12:18 Note that we will be publishing new Linux packages within the next 1-2 days to address this issue. Just wait for a day or two and things will fix themselves.
See other thread for details:
viewtopic.php?t=13873
:idea: Please read the FAQ and How to Request Help.
Post Reply