Exception in thread "main" org.xerial.snappy.SnappyError: [FAILED_TO_LOAD_NATIVE_LIBRARY] no native library is found for os.name=AIX and os.arch=ppc64
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 45/100
Rechercherichtung
Start by reading SnappyLoader.findNativeLibrary and loadNativeLibrary, especially the platform-specific library name and extension handling mentioned in the report. Check how the AIX/ppc64 native library is packaged and compare that path with the loader’s lookup; run the relevant tests for native library loading. Done means the default lookup can load the packaged AIX library without requiring custom system properties.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
I've observed that while running the snappy in the IBM AIX 7.2 it gives the error,
Exception in thread "main" org.xerial.snappy.SnappyError: [FAILED_TO_LOAD_NATIVE_LIBRARY] no native library is found for os.name=AIX and os.arch=ppc64
at org.xerial.snappy.SnappyLoader.findNativeLibrary(SnappyLoader.java:345)
at org.xerial.snappy.SnappyLoader.loadNativeLibrary(SnappyLoader.java:179)
at org.xerial.snappy.SnappyLoader.loadSnappyApi(SnappyLoader.java:157)
at org.xerial.snappy.Snappy.init(Snappy.java:70)
at org.xerial.snappy.Snappy.<clinit>(Snappy.java:47)
I've tried to find the RCA, to do so I've first manually put the aix related native libraries and passed them as variables
jdk/bin/./java -Dorg.xerial.snappy.lib.path=/tmp -Dorg.xerial.snappy.lib.name=libsnappyjava.a -cp Demo.jar:lib/* com.demo.Bootstrap
And it worked! So I tried to find that by default (if we're not passing any variable) why it's not able to find that file?
So I've added a print statement and tried to debug, there I've noticed that it tries to find the file at the correct destination, But what I've noticed is that the file extension is different.
has resource /org/xerial/snappy/native/AIX/ppc64/libsnappyjava.so
And the native file that is present in the jar have a different file extension,
total 264
-rw-r--r-- 1 root root 266695 Aug 7 05:49 libsnappyjava.a
root@demo:/demo/snappy/org/xerial/snappy/native/AIX/ppc64#
And in the code, the file's extension is entirely dependent on the System class, And the System class it self returns the .so extension instead of .a and this extension issue is also a very popular issue.
So what's the correct extension?? Is there no alternate way than passing the variable??
- Vorherrschende Sprache
- Java
- Sterne
- 1.1k
- Forks
- 261
- Ø Merge
- 2 Min.
- Gemergte PRs (30 T.)
- 2
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus xerial/snappy-java
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
xerial/snappy-java#658 · 3 Kommentare · 1 Reaktion ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 56/100
xerial/snappy-java#607 ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
xerial/snappy-java#604 · 1 Kommentar ·
-
Snappy error on Mac OS Ventura: "no native library is found for os.name=Mac and os.arch=aarch64"Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
xerial/snappy-java#573 · 1 Reaktion ·
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
xerial/snappy-java#567 · 1 Kommentar ·
Alle Issues in xerial/snappy-java
Ähnliche Issues
-
hermes-queue
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 85/100
chrisalunlloyd2-sudo/mindpalace#403 ·
Maintainer antworten meist innerhalb von 1 Tag
-
triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
xerial/sqlite-jdbc#1515 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Area/Configuration Type/Improvement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
ballerina-platform/static-code-analysis-tool#217 ·
Maintainer antworten meist innerhalb von 1 Tag
-
SequenceEncoder: a value ending with a backslash swallows the tokens after it (“No state for trait”)Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
vassalengine/vassal#15337 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
eclipse-dirigible/dirigible#8636 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag