From nobody Thu Apr 18 21:00:34 2024 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4VL9Ck4bnKz5HZ69 for ; Thu, 18 Apr 2024 21:00:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4VL9Ck3CL1z4Rb0 for ; Thu, 18 Apr 2024 21:00:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1713474034; a=rsa-sha256; cv=none; b=FPp04BofDWt+IBlaV1UXsgG0VrpRscq9YpIMR9UWNg/3D8iXk3VJ45xEbDalNvixjekJxc iKafe0b22lgAtl/h5WZljvFIIFIVhFZmzmKn7ZFqYUSo5zirnm2N8fIzmbEPo0yZ8kDLF6 TJs8JcjxW2zPKJ2BEZ99vM5wphO4l4XuY6gR6ySaTprBqDI66BWTMqRRAocP5oUA2ruq4q bl2ZxFrDT6HFxYgqqOMt5dkLgH17+ZLClV6ljGww0lVK7ysKxdV/iulbCxgXLDuud/c5HN XBf6UkkHIfrFoDkl1j7L4VXIFi9Z6pYZmcqXDQyUY8EuvCRqf5lHOgO88Ai47w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1713474034; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=vQgt1fMf8wql3Pj5Cd0epC4NpMtOE4CNisQMUye3Tw0=; b=s1gMJjBnq05htwmPWfpUxUoaq9l9qQMwM86qv+iDVACHeY3MmgyDzF6B3V89oFPuSLVNt9 84dU4qzOaLOof4LmL0HfRug5ZvymL+s9/IT7KriT3Ss+uZ9xBNUkh+4W0iyTCCy5RokLja lhbdPjO38rR2TYYKeU4g//iBTyzU8n12kR0FS+pbXjrLC15HS1Mgy56yUDhdFm3hZ7hQRs 8Uz3UOFqEaUNGXEHp8ea2nvZehEzxjHZQRT3w6XA62Ak3rbFOGOshwDC3xtA9PPnr//ZbJ JPInrfT1gT7y8hJ5UIqWmymxDxXOTxmDrNxvJIZdAkcAx6I7UHuWbycGMRgg5g== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4VL9Ck2hxkzQDf for ; Thu, 18 Apr 2024 21:00:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 43IL0YwV029979 for ; Thu, 18 Apr 2024 21:00:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 43IL0YLD029978 for ports-bugs@FreeBSD.org; Thu, 18 Apr 2024 21:00:34 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 278443] devel/sonarqube-community: Native library (com/sun/jna/freebsd-aarch64/libjnidispatch.so) not found in resource path () [in thread "main"] Date: Thu, 18 Apr 2024 21:00:34 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: clarkddc@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: netchild@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports-bugs@freebsd.org Sender: owner-freebsd-ports-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278443 Bug ID: 278443 Summary: devel/sonarqube-community: Native library (com/sun/jna/freebsd-aarch64/libjnidispatch.so) not found in resource path () [in thread "main"] Product: Ports & Packages Version: Latest Hardware: arm64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: netchild@FreeBSD.org Reporter: clarkddc@gmail.com Flags: maintainer-feedback?(netchild@FreeBSD.org) Assignee: netchild@FreeBSD.org I installed sonarqube-community-10.3.0.82913_3 today on a fresh install of FreeBSD 14.0 arm64. While troubleshooting why sonarcube wasn't listening on= the default port of 9000, I discovered there was an issue with elasticsearch in= the es.log. This snippet is the most relevant: java.lang.NoClassDefFoundError: Could not initialize class com.sun.jna.Nati= ve at java.lang.Class.forName0(Native Method) ~[?:?] at java.lang.Class.forName(Class.java:375) ~[?:?] at org.elasticsearch.common.filesystem.FileSystemNatives.loadJnaProvider(FileS= ystemNatives.java:37) ~[elasticsearch-8.11.0.jar:?] at org.elasticsearch.common.filesystem.FileSystemNatives.(FileSystemNa= tives.java:31) ~[elasticsearch-8.11.0.jar:?] at org.elasticsearch.bootstrap.Elasticsearch.initializeNatives(Elasticsearch.j= ava:333) ~[elasticsearch-8.11.0.jar:?] at org.elasticsearch.bootstrap.Elasticsearch.initPhase2(Elasticsearch.java:167) ~[elasticsearch-8.11.0.jar:?] at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:72) ~[elasticsearch-8.11.0.jar:?] Caused by: java.lang.ExceptionInInitializerError: Exception java.lang.UnsatisfiedLinkError: Native library (com/sun/jna/freebsd-aarch64/libjnidispatch.so) not found in resource path = () [in thread "main"] at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1059) ~[jna-5.10.0.jar:?] at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:1015) ~[jna-5.10.0.jar:?] at com.sun.jna.Native.(Native.java:221) ~[jna-5.10.0.jar:?] at java.lang.Class.forName0(Native Method) ~[?:?] at java.lang.Class.forName(Class.java:375) ~[?:?] at org.elasticsearch.bootstrap.Natives.(Natives.java:34) ~[elasticsearch-8.11.0.jar:?] at org.elasticsearch.bootstrap.Elasticsearch.initializeNatives(Elasticsearch.j= ava:281) ~[elasticsearch-8.11.0.jar:?] ... 2 more I then verified that the jar file in question: root@sonarqube:/var/log/sonarqube> jar tvf /usr/local/libexec/sonarqube/elasticsearch/lib/jna-5.10.0.jar | egrep 'arm64|aarch64' 0 Mon Nov 08 20:28:44 EST 2021 com/sun/jna/darwin-aarch64/ 159768 Wed Oct 06 12:09:54 EDT 2021 com/sun/jna/darwin-aarch64/libjnidispatch.jnilib 0 Mon Nov 08 20:28:44 EST 2021 com/sun/jna/linux-aarch64/ 162296 Wed Oct 06 14:27:13 EDT 2021 com/sun/jna/linux-aarch64/libjnidispatc= h.so 0 Mon Nov 08 20:28:44 EST 2021 com/sun/jna/win32-aarch64/ 256000 Wed Oct 06 21:00:40 EDT 2021 com/sun/jna/win32-aarch64/jnidispatch.d= ll Lastly, I learned from https://github.com/java-native-access/jna/blob/master/CHANGES.md, that free= bsd aarch64 support won't be added until the 5.15.0 version of the jna library.= If this is correct, why was the current sonarqube-community-10.3.0.82913_3 pac= kage released on the arm64 architecture with the elasticsearch jna-5.10.0.jar library? --=20 You are receiving this mail because: You are the assignee for the bug.=