Filebot and Raspberry Pi 4: "InvalidJarIndexError: Invalid index"

Support for Ubuntu and other Desktop Linux distributions
Post Reply
jp4500
Posts: 12
Joined: 23 Aug 2015, 01:55

Filebot and Raspberry Pi 4: "InvalidJarIndexError: Invalid index"

Post by jp4500 » 17 Jul 2019, 16:14

Hi,

I'm trying to use Filebot on a raspberry pi 4 and running into issues. I know there's several other threads out there and I followed this one (viewtopic.php?f=11&t=6028) to get Filebot installed but I'm now having issues running it.

The error I'm getting is this one:

Code: Select all

[email protected]:~ $ sudo filebot -script fn:amc --output $MEDIA --log-file /var/log/filebot.log --action move --conflict auto -non-strict "$FILE_PATH" \
>
Locking /var/log/filebot.log
Run script [fn:amc] at [Wed Jul 17 11:46:58 EDT 2019]
Argument[0]: /media/MEDIA/INCOMING
Invalid index
jdk.internal.util.jar.InvalidJarIndexError: Invalid index
	at java.base/jdk.internal.loader.URLClassPath$JarLoader.getResource(URLClassPath.java:1025)
	at java.base/jdk.internal.loader.URLClassPath$JarLoader.getResource(URLClassPath.java:937)
	at java.base/jdk.internal.loader.URLClassPath$JarLoader.findResource(URLClassPath.java:912)
	at java.base/jdk.internal.loader.URLClassPath.findResource(URLClassPath.java:291)
	at java.base/jdk.internal.loader.BuiltinClassLoader.lambda$findResourceOnClassPath$0(BuiltinClassLoader.java:482)
	at java.base/jdk.internal.loader.BuiltinClassLoader.findResourceOnClassPath(BuiltinClassLoader.java:483)
	at java.base/jdk.internal.loader.BuiltinClassLoader.findResource(BuiltinClassLoader.java:304)
	at com.sun.jna.Native.extractFromResourcePath(Native.java:1043)
	at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:964)
	at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:949)
	at com.sun.jna.Native.<clinit>(Native.java:190)
	at net.filebot.mediainfo.MediaInfoLibrary.<clinit>(MediaInfoLibrary.java:19)
	at net.filebot.mediainfo.MediaInfo.<init>(MediaInfo.java:37)
	at net.filebot.media.MediaCharacteristicsParser$1.open(MediaCharacteristicsParser.java:14)
	at net.filebot.cli.ScriptShellMethods.getMediaCharacteristics(ScriptShellMethods.java:447)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at Script1$_acceptFile_closure83.doCall(Script1.groovy:247)
	at Script1$_acceptFile_closure83.doCall(Script1.groovy)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at net.filebot.format.ExpressionFormatFunctions.call(ExpressionFormatFunctions.java:38)
	at net.filebot.format.ExpressionFormatFunctions.any(ExpressionFormatFunctions.java:66)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at Script1.acceptFile(Script1.groovy:247)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at Script1$_resolveInput_closure87.doCall(Script1.groovy:270)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at com.sun.proxy.$Proxy17.accept(Unknown Source)
	at net.filebot.util.FileUtilities.getChildren(FileUtilities.java:522)
	at net.filebot.cli.ScriptShellMethods.listFiles(ScriptShellMethods.java:95)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at Script1.resolveInput(Script1.groovy:270)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at Script1$_run_closure52.doCall(Script1.groovy:286)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at Script1.run(Script1.groovy:286)
	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:163)
	at net.filebot.cli.ArgumentProcessor.run(ArgumentProcessor.java:37)
	at net.filebot.Main.main(Main.java:132)

Error (o_O)
Here's info from the filebot fn:sysinfo command as well.

Code: Select all

[email protected]:/usr/share/filebot $ filebot -script fn:sysinfo
Using persistent disk cache /home/pi/.filebot/cache/0
FileBot 4.8.5 (r6224)
JNA Native: jdk.internal.util.jar.InvalidJarIndexError: Invalid index
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load arm (32-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
Execute [7z]

7-Zip [32] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21
p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,32 bits,4 CPUs LE)

Usage: 7z <command> [<switches>...] <archive_name> [<file_names>...]
       [<@listfiles...>]

<Commands>
  a : Add files to archive
  b : Benchmark
  d : Delete files from archive
  e : Extract files from archive (without using directory names)
  h : Calculate hash values for files
  i : Show information about supported formats
  l : List contents of archive
  rn : Rename files in archive
  t : Test integrity of archive
  u : Update files to archive
  x : eXtract files with full paths

<Switches>
  -- : Stop switches parsing
  -ai[r[-|0]]{@listfile|!wildcard} : Include archives
  -ax[r[-|0]]{@listfile|!wildcard} : eXclude archives
  -ao{a|s|t|u} : set Overwrite mode
  -an : disable archive_name field
  -bb[0-3] : set output log level
  -bd : disable progress indicator
  -bs{o|e|p}{0|1|2} : set output stream for output/error/progress line
  -bt : show execution time statistics
  -i[r[-|0]]{@listfile|!wildcard} : Include filenames
  -m{Parameters} : set compression Method
    -mmt[N] : set number of CPU threads
  -o{Directory} : set Output directory
  -p{Password} : set Password
  -r[-|0] : Recurse subdirectories
  -sa{a|e|s} : set Archive name mode
  -scc{UTF-8|WIN|DOS} : set charset for for console input/output
  -scs{UTF-8|UTF-16LE|UTF-16BE|WIN|DOS|{id}} : set charset for list files
  -scrc[CRC32|CRC64|SHA1|SHA256|*] : set hash function for x, e, h commands
  -sdel : delete files after compression
  -seml[.] : send archive by email
  -sfx[{name}] : Create SFX archive
  -si[{name}] : read data from stdin
  -slp : set Large Pages mode
  -slt : show technical information for l (List) command
  -snh : store hard links as links
  -snl : store symbolic links as links
  -sni : store NT security information
  -sns[-] : store NTFS alternate streams
  -so : write data to stdout
  -spd : disable wildcard matching for file names
  -spe : eliminate duplication of root folder for extract command
  -spf : use fully qualified file paths
  -ssc[-] : set sensitive case mode
  -ssw : compress shared files
  -stl : set archive timestamp from the most recently modified file
  -stm{HexMask} : set CPU thread affinity mask (hexadecimal number)
  -stx{Type} : exclude archive type
  -t{Type} : Set type of archive
  -u[-][p#][q#][r#][x#][y#][z#][!newArchiveName] : Update options
  -v{Size}[b|k|m|g] : Create volumes
  -w[{path}] : assign Work directory. Empty path means a temporary directory
  -x[r[-|0]]{@listfile|!wildcard} : eXclude filenames
  -y : assume Yes on all queries

p7zip: p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,32 bits,4 CPUs LE)
unrar: java.io.IOException: Cannot run program "unrar": error=2, No such file or directory
Execute [fpcalc, -version]
fpcalc version 1.4.3

Chromaprint: fpcalc version 1.4.3
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-05-15 (r565)
Groovy: 2.5.6
JRE: LibericaJDK Runtime Environment 12.0.1-BellSoft
JVM: 32-bit LibericaJDK Server VM
CPU/MEM: 4 Core / 224 MB Max Memory / 18 MB Used Memory
OS: Linux (arm)
HW: Linux raspberrypi 4.19.57-v7l+ #1244 SMP Thu Jul 4 18:48:07 BST 2019 armv7l GNU/Linux
DATA: /home/pi/.filebot
Package: DEB
License: FileBot License P8129845 (Valid-Until: 2020-06-07)
Done ヾ(@⌒ー⌒@)ノ
I see the following issues:
1) JNA Native: jdk.internal.util.jar.InvalidJarIndexError: Invalid index
2) MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load arm (32-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
3) a 7z and/or unrar error which I'm not sure how to fix either

I have a feeling the thread below addresses these issues but to be honest they're difficult to follow and I'm using newer versions so I'm not sure if they're even still valid.
--
viewtopic.php?f=11&t=9824&start=25

jp4500
Posts: 12
Joined: 23 Aug 2015, 01:55

Re: Filebot and Raspberry Pi 4: "InvalidJarIndexError: Invalid index"

Post by jp4500 » 17 Jul 2019, 16:50

FWIW: I figured out the 7z/unrar issue (although the first 2 are the ones I think I need more)
- I followed the steps listed here: https://raspberrypi.stackexchange.com/a/3618

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

Re: Filebot and Raspberry Pi 4: "InvalidJarIndexError: Invalid index"

Post by rednoah » 17 Jul 2019, 17:13

1.

Code: Select all

JNA Native: jdk.internal.util.jar.InvalidJarIndexError: Invalid index
The latest beta might work better for the latest Raspberry Pi 4 and Linux (aarch64) devices in general:
viewtopic.php?f=7&t=1609

:idea: You'll want to use the *_universal.deb package, assuming you're running the latest Debian Buster / Ubuntu 18.10 with Java 11 / JavaFX 11 / etc. (see viewtopic.php?f=11&t=6028)


2.
You'll also want to install all dependencies:

Code: Select all

sudo apt install libjna-java openjfx mediainfo libchromaprint-tools p7zip-full unrar nautilus-actions
:idea: Please read the FAQ and How to Request Help.

jp4500
Posts: 12
Joined: 23 Aug 2015, 01:55

Re: Filebot and Raspberry Pi 4: "InvalidJarIndexError: Invalid index"

Post by jp4500 » 17 Jul 2019, 18:25

Thanks for the quick reply!

I did both steps recommended but that didn't change anything.

Ultimately I see the same results:

Code: Select all

[email protected]:~/Downloads $ sudo filebot -script "fn:sysinfo"
FileBot 4.8.6 (r6543)
JNA Native: java.lang.UnsatisfiedLinkError: Can't obtain static method fromNative(Method, Object) from class com.sun.jna.Native
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load arm (32-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
p7zip: p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,32 bits,4 CPUs LE)
unrar: UNRAR 5.61 beta 1 freeware
Chromaprint: fpcalc version 1.4.3
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-07-13 (r576)
Groovy: 2.5.7
JRE: OpenJDK Runtime Environment 1.8.0_212
JVM: 32-bit OpenJDK Client VM
CPU/MEM: 4 Core / 224 MB Max Memory / 11 MB Used Memory
OS: Linux (arm)
HW: Linux raspberrypi 4.19.57-v7l+ #1244 SMP Thu Jul 4 18:48:07 BST 2019 armv7l GNU/Linux
DATA: /root/.filebot
Package: DEB
License: FileBot License P8129845 (Valid-Until: 2020-06-07)
Done ヾ(@⌒ー⌒@)ノ
I'm able to run mediainfo from the command line and it seems to work.

Code: Select all

[email protected]:~/Downloads $ mediainfo --version
MediaInfo Command line,
MediaInfoLib - v18.12
any ideas? I've been searching through several threads about this for the raspberry pi but almost all of them seem out of date.. please help!

---

I noticed in this last test I'm using the 1.8 JRE.. I changed to 11.0 but got the same results:

Code: Select all

[email protected]:~ $ sudo update-alternatives --config java
There are 3 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                                  Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/jdk-11-bellsoft-arm32-vfp-hflt/bin/java   2001102   auto mode
  1            /usr/lib/jvm/java-11-openjdk-armhf/bin/java            1111      manual mode
* 2            /usr/lib/jvm/java-8-openjdk-armhf/jre/bin/java         1081      manual mode
  3            /usr/lib/jvm/jdk-11-bellsoft-arm32-vfp-hflt/bin/java   2001102   manual mode

Press <enter> to keep the current choice[*], or type selection number: 0
update-alternatives: using /usr/lib/jvm/jdk-11-bellsoft-arm32-vfp-hflt/bin/java to provide /usr/bin/java (java) in auto mode
[email protected]:~ $ java -version
openjdk version "11.0.2-BellSoft" 2019-01-15
OpenJDK Runtime Environment (build 11.0.2-BellSoft+7)
OpenJDK Server VM (build 11.0.2-BellSoft+7, mixed mode)
[email protected]:~ $ filebot -script "fn:sysinfo"
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/usr/share/filebot/jar/groovy.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
FileBot 4.8.6 (r6543)
JNA Native: java.lang.UnsatisfiedLinkError: Can't obtain static method fromNative(Method, Object) from class com.sun.jna.Native
MediaInfo: net.filebot.mediainfo.MediaInfoException: Unable to load arm (32-bit) native library libmediainfo.so: Could not initialize class com.sun.jna.Native
p7zip: p7zip Version 16.02 (locale=en_US.UTF-8,Utf16=on,HugeFiles=on,32 bits,4 CPUs LE)
unrar: UNRAR 5.61 beta 1 freeware
Chromaprint: fpcalc version 1.4.3
Extended Attributes: OK
Unicode Filesystem: OK
Script Bundle: 2019-07-13 (r576)
Groovy: 2.5.7
JRE: OpenJDK Runtime Environment 11.0.2-BellSoft
JVM: 32-bit OpenJDK Server VM
CPU/MEM: 4 Core / 224 MB Max Memory / 18 MB Used Memory
OS: Linux (arm)
HW: Linux raspberrypi 4.19.57-v7l+ #1244 SMP Thu Jul 4 18:48:07 BST 2019 armv7l GNU/Linux
DATA: /home/pi/.filebot
Package: DEB
License: FileBot License P8129845 (Valid-Until: 2020-06-07)
Done ヾ(@⌒ー⌒@)ノ

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

Re: Filebot and Raspberry Pi 4: "InvalidJarIndexError: Invalid index"

Post by rednoah » 17 Jul 2019, 18:46

1.
What does this say?

Code: Select all

find /usr/lib -name "*jnidispatch*"
What does this say?

Code: Select all

filebot -script fn:sysenv

2.
Since JNA is not working, FileBot won't be able to access libmediainfo functions:

Code: Select all

java.lang.UnsatisfiedLinkError: Can't obtain static method fromNative(Method, Object) from class com.sun.jna.Native
:idea: I've not seen this before, so you won't find solutions here in the forums. Since it's a presumably generic JNA issue not specific to FileBot, a Google search might help.


3.
FileBot works. MediaInfo integration does not. The latter is optional, and depending on what you're doing, you may or may not need it.


4.
The portable package is worth a try, since it bundles JNA and MediaInfo, instead of relying on system packages, so it might work.
:idea: Please read the FAQ and How to Request Help.

jp4500
Posts: 12
Joined: 23 Aug 2015, 01:55

Re: Filebot and Raspberry Pi 4: "InvalidJarIndexError: Invalid index"

Post by jp4500 » 17 Jul 2019, 19:52

Here's the results you asked for. I'll try to get the portable package installed and working and see if that makes any difference

Code: Select all

[email protected]:/usr/local/bin $ find /usr/lib -name "*jnidispatch*"
/usr/lib/arm-linux-gnueabihf/jni/libjnidispatch.so
/usr/lib/arm-linux-gnueabihf/jni/libjnidispatch_4.0.0.so
/usr/lib/arm-linux-gnueabihf/jni/libjnidispatch.system.so
I believe I downloaded the libjnidispatch_4.0.0.so based on another outdated filebot+pi guide.. here's more info on these:

Code: Select all

[email protected]:/usr/local/bin $ sudo ls -al /usr/lib/arm-linux-gnueabihf/jni/libjnidispatch*
-rw-r--r-- 1 pi   pi   105543 Jun  4  2013 /usr/lib/arm-linux-gnueabihf/jni/libjnidispatch_4.0.0.so
lrwxrwxrwx 1 root root     23 Jul 17 12:35 /usr/lib/arm-linux-gnueabihf/jni/libjnidispatch.so -> libjnidispatch_4.0.0.so
-rw-r--r-- 1 root root  75628 Aug 13  2018 /usr/lib/arm-linux-gnueabihf/jni/libjnidispatch.system.so

Code: Select all

p[email protected]:/usr/local/bin $ filebot -script fn:sysenv
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/usr/share/filebot/jar/groovy.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
# Environment Variables #
PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
JAVA_HOME: /usr/lib/jvm/jdk-11-bellsoft-arm32-vfp-hflt/bin/java
TERM: xterm-256color
LANG: en_US.UTF-8
DBUS_SESSION_BUS_ADDRESS: unix:path=/run/user/1000/bus
XDG_SESSION_ID: c2
XDG_SESSION_TYPE: tty
MAIL: /var/mail/pi
LD_LIBRARY_PATH: /usr/lib/jvm/jdk-11-bellsoft-arm32-vfp-hflt/bin/java:
LOGNAME: pi
PWD: /usr/local/bin
XDG_SESSION_CLASS: user
_: /usr/bin/filebot
LANGUAGE: en_US.UTF-8
SHELL: /bin/bash
SSH_TTY: /dev/pts/0
SSH_CLIENT: 192.168.0.169 53928 22
OLDPWD: /usr/local
USER: pi
SSH_CONNECTION: 192.168.0.169 53928 192.168.0.197 22
LC_ALL: en_US.UTF-8
TEXTDOMAIN: Linux-PAM
NO_AT_BRIDGE: 1
LS_COLORS: rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:
XDG_RUNTIME_DIR: /run/user/1000
HOME: /home/pi
SHLVL: 1


# Java System Properties #
awt.toolkit: sun.awt.X11.XToolkit
java.specification.version: 11
sun.cpu.isalist:
sun.jnu.encoding: UTF-8
java.class.path: /usr/share/filebot/jar/filebot.jar
java.vm.vendor: BellSoft
grape.root: /home/pi/.filebot/grape
useExtendedFileAttributes: true
sun.arch.data.model: 32
jna.library.path: /usr/lib/arm-linux-gnueabihf/jni
net.filebot.archive.extractor: ShellExecutables
java.vendor.url: http://bell-sw.com/
user.timezone:
jna.nounpack: true
os.name: Linux
java.vm.specification.version: 11
sun.net.client.defaultReadTimeout: 60000
jna.boot.library.path: /usr/lib/arm-linux-gnueabihf/jni
sun.java.launcher: SUN_STANDARD
user.country: US
sun.boot.library.path: /usr/lib/jvm/jdk-11-bellsoft-arm32-vfp-hflt/lib
sun.java.command: /usr/share/filebot/jar/filebot.jar -script fn:sysenv
jdk.debug: release
useGVFS: true
sun.cpu.endian: little
user.home: /home/pi
user.language: en
java.specification.vendor: Oracle Corporation
java.version.date: 2019-01-15
java.home: /usr/lib/jvm/jdk-11-bellsoft-arm32-vfp-hflt
file.separator: /
line.separator:

unixfs: false
useCreationDate: false
java.specification.name: Java Platform API Specification
java.vm.specification.vendor: Oracle Corporation
jna.boot.library.name: jnidispatch.system
java.awt.graphicsenv: sun.awt.X11GraphicsEnvironment
application.cache: /home/pi/.filebot/cache
net.filebot.UserFiles.fileChooser: JavaFX
http.agent: FileBot/4.8.6
sun.management.compiler: HotSpot Tiered Compilers
java.runtime.version: 11.0.2-BellSoft+7
user.name: pi
sun.net.client.defaultConnectTimeout: 10000
path.separator: :
java.net.useSystemProxies: true
os.version: 4.19.57-v7l+
jna.nosys: false
java.runtime.name: OpenJDK Runtime Environment
file.encoding: UTF-8
java.vm.name: OpenJDK Server VM
java.vendor.url.bug: https://bugs.openjdk.java.net
java.io.tmpdir: /home/pi/.filebot/tmp
swing.crossplatformlaf: javax.swing.plaf.nimbus.NimbusLookAndFeel
java.version: 11.0.2-BellSoft
user.dir: /usr/local/bin
os.arch: arm
java.vm.specification.name: Java Virtual Machine Specification
net.filebot.gio.GVFS: /run/user/1000/gvfs
java.awt.printerjob: sun.print.PSPrinterJob
sun.os.patch.level: unknown
application.deployment: deb
java.library.path: /usr/lib/arm-linux-gnueabihf/jni
java.vendor: BellSoft
java.vm.info: mixed mode
java.vm.version: 11.0.2-BellSoft+7
sun.arch.abi: gnueabihf
application.dir: /home/pi/.filebot
sun.io.unicode.encoding: UnicodeLittle
org.apache.commons.logging.Log: org.apache.commons.logging.impl.NoOpLog
java.class.version: 55.0


# Arguments #
args[0] = -script
args[1] = fn:sysenv


Done ヾ(@⌒ー⌒@)ノ

jp4500
Posts: 12
Joined: 23 Aug 2015, 01:55

Re: Filebot and Raspberry Pi 4: "InvalidJarIndexError: Invalid index"

Post by jp4500 » 17 Jul 2019, 20:18

Update.. I installed the portable version and it's working!

I'm surprised there's so many guides out there on getting this working when that seems like it'd be by far the easiest.. honestly, I do remember reading this elsewhere too (ie: viewtopic.php?t=3974) but was hoping for more of a step by step guide on setting it up... ie: which version to get (there's a LOT) and how to extract and what folder to use, etc)..

I was a little confused by the multiple "-portable" versions that exist.. I figured they were all the same thing but just compressed differently so I first downloaded the .zip one until I realized that was for Windows only.

Anyway, if anyone does stumble on this down the road -- here's what I did (feel free to point out any possible problems)

Code: Select all

mkdir filebot
cd filebot
wget https://get.filebot.net/filebot/BETA/FileBot_4.8.6-portable.tar.xz
tar -xvf FileBot_4.8.6-portable.tar.xz
filebot.sh -script "fn:sysinfo"
I still have filebot installed as a package (see link in my first post) but I imagine I can remove that and add a link to /usr/local/bin.. but, I can figure that out later.

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

Re: Filebot and Raspberry Pi 4: "InvalidJarIndexError: Invalid index"

Post by rednoah » 18 Jul 2019, 04:46

1.
Copying a random likely incompatibly native library into the library path is likely why you get this strange error message that nobody else got:

Code: Select all

-rw-r--r-- 1 pi   pi   105543 Jun  4  2013 /usr/lib/arm-linux-gnueabihf/jni/libjnidispatch_4.0.0.so
lrwxrwxrwx 1 root root     23 Jul 17 12:35 /usr/lib/arm-linux-gnueabihf/jni/libjnidispatch.so -> libjnidispatch_4.0.0.so
-rw-r--r-- 1 root root  75628 Aug 13  2018 /usr/lib/arm-linux-gnueabihf/jni/libjnidispatch.system.so

Code: Select all

java.lang.UnsatisfiedLinkError: Can't obtain static method fromNative(Method, Object) from class com.sun.jna.Native

2.
The recommended install instructions for Debian-based systems are as follows:
viewtopic.php?f=11&t=6028

:arrow: The portable packages (in Java 8 or Java 11 flavor) can be used for all Linux devices, Debian or not. But the included native libraries may or may not work, depending on system libraries (e.g. libc and friends).

:arrow: Alternatively, the portable package has an installer script for your convenience: viewtopic.php?f=11&t=6057
:idea: Please read the FAQ and How to Request Help.

jp4500
Posts: 12
Joined: 23 Aug 2015, 01:55

Re: Filebot and Raspberry Pi 4: "InvalidJarIndexError: Invalid index"

Post by jp4500 » 18 Jul 2019, 16:39

>> The recommended install instructions for Debian-based systems are as follows

Well, maybe I did do something to mess this up.. but, I followed these instructions originally and they didn't work for me. That's what led me to look for alternatives.

I'd like to be able to format and start over again so I can make sure I get the steps down in case I ever have to do it again in the future.. not sure I want to mess with it at the moment though now that it's working :)

If anyone else has a clean install on a raspberry pi (4 or other) and is able to get filebot to work with the instructions above -- it'd be helpful to me at least if you mention it here. I'm including getting the mediainfo library working too even though I know it's optional (not sure if I need it for what I'm doing but I do like having it work regardless)

thanks
j

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

Re: Filebot and Raspberry Pi 4: "InvalidJarIndexError: Invalid index"

Post by rednoah » 18 Jul 2019, 18:22

The vast majority of users are on amd64, so armv7 and aarch64 packages are significantly less well tested in comparison. It should work, but odd issues wouldn't be all that unexpected, especially in regards to native libraries.

* Raspberry Pi 3 / armv7 should work, since I'm running that as well.
* Raspberry Pi 4 / 64-bit mode / aarch64 not tested.
* Raspberry Pi 4 / 32-bit compatibility mode / armv7 also untested, but should be the same as Raspberry Pi 3, ideally.


Feedback is welcome.
:idea: Please read the FAQ and How to Request Help.

Post Reply