Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-31806

Fix jna warning on ARM

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2023.0
    • Component/s: Elasticsearch

      Description

      After switching to Opensearch we noticed the following warning on ARM architecture:

      2023-03-29T15:53:27,817 WARN  [Natives] unable to load JNA native support library, native methods will be disabled.
      java.lang.UnsatisfiedLinkError: /Users/User/Library/Caches/JNA/temp/jna15049402261071084504.tmp: dlopen(/Users/User/Library/Caches/JNA/temp/jna15049402261071084504.tmp, 0x0001): tried: '/Users/User/Library/Caches/JNA/temp/jna15049402261071084504.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/User/Library/Caches/JNA/temp/jna15049402261071084504.tmp' (no such file), '/Users/User/Library/Caches/JNA/temp/jna15049402261071084504.tmp' (fat file, but missing compatible architecture (have 'i386,x86_64', need 'arm64'))
      	at jdk.internal.loader.NativeLibraries.load(Native Method) ~[?:?]
      	at jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388) ~[?:?]
      	at jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232) ~[?:?]
      	at jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174) ~[?:?]
      	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2389) ~[?:?]
      	at java.lang.Runtime.load0(Runtime.java:755) ~[?:?]
      	at java.lang.System.load(System.java:1953) ~[?:?]
      	at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:1018) ~[jna-5.5.0.jar:5.5.0 (b0)]
      	at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:988) ~[jna-5.5.0.jar:5.5.0 (b0)]
      	at com.sun.jna.Native.<clinit>(Native.java:195) ~[jna-5.5.0.jar:5.5.0 (b0)]
      	at java.lang.Class.forName0(Native Method) ~[?:?]
      	at java.lang.Class.forName(Class.java:375) ~[?:?]
      	at org.opensearch.bootstrap.Natives.<clinit>(Natives.java:58) [opensearch-1.3.9.jar:1.3.9]
      	at org.opensearch.bootstrap.BootstrapInfo.isMemoryLocked(BootstrapInfo.java:63) [opensearch-1.3.9.jar:1.3.9]
      	at org.opensearch.monitor.process.ProcessProbe.processInfo(ProcessProbe.java:142) [opensearch-1.3.9.jar:1.3.9]
      	at org.opensearch.monitor.process.ProcessService.<init>(ProcessService.java:63) [opensearch-1.3.9.jar:1.3.9]
      	at org.opensearch.monitor.MonitorService.<init>(MonitorService.java:58) [opensearch-1.3.9.jar:1.3.9]
      	at org.opensearch.node.Node.<init>(Node.java:502) [opensearch-1.3.9.jar:1.3.9]
      	at org.nuxeo.elasticsearch.core.PluginConfigurableNode.<init>(PluginConfigurableNode.java:35) [nuxeo-elasticsearch-core-2023.0-SNAPSHOT.jar:?]
      	at org.nuxeo.elasticsearch.core.ElasticSearchEmbeddedNode.start(ElasticSearchEmbeddedNode.java:97) [nuxeo-elasticsearch-core-2023.0-SNAPSHOT.jar:?]
      	at org.nuxeo.elasticsearch.core.ElasticSearchAdminImpl.connect(ElasticSearchAdminImpl.java:142) [nuxeo-elasticsearch-core-2023.0-SNAPSHOT.jar:?]
      	at org.nuxeo.elasticsearch.core.ElasticSearchAdminImpl.<init>(ElasticSearchAdminImpl.java:123) [nuxeo-elasticsearch-core-2023.0-SNAPSHOT.jar:?]
      	at org.nuxeo.elasticsearch.ElasticSearchComponent.start(ElasticSearchComponent.java:182) [nuxeo-elasticsearch-core-2023.0-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.start(RegistrationInfoImpl.java:350) [nuxeo-runtime-2023.0-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponent(ComponentManagerImpl.java:742) [nuxeo-runtime-2023.0-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.model.impl.ComponentManagerImpl.startComponents(ComponentManagerImpl.java:724) [nuxeo-runtime-2023.0-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.model.impl.ComponentManagerImpl.start(ComponentManagerImpl.java:825) [nuxeo-runtime-2023.0-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.osgi.OSGiRuntimeService.startComponents(OSGiRuntimeService.java:470) [nuxeo-runtime-2023.0-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.osgi.OSGiRuntimeService.frameworkEvent(OSGiRuntimeService.java:485) [nuxeo-runtime-2023.0-SNAPSHOT.jar:?]
      	at org.nuxeo.osgi.OSGiAdapter.fireFrameworkEvent(OSGiAdapter.java:222) [nuxeo-runtime-osgi-2023.0-SNAPSHOT.jar:?]
      	at org.nuxeo.osgi.application.loader.FrameworkLoader.doStart(FrameworkLoader.java:232) [nuxeo-runtime-osgi-2023.0-SNAPSHOT.jar:?]
      	at org.nuxeo.osgi.application.loader.FrameworkLoader.start(FrameworkLoader.java:138) [nuxeo-runtime-osgi-2023.0-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.deployment.NuxeoStarter.start(NuxeoStarter.java:124) [nuxeo-runtime-deploy-2023.0-SNAPSHOT.jar:?]
      	at org.nuxeo.runtime.deployment.NuxeoStarter.contextInitialized(NuxeoStarter.java:93) [nuxeo-runtime-deploy-2023.0-SNAPSHOT.jar:?]
      	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4493) [catalina.jar:9.0.73]
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4939) [catalina.jar:9.0.73]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.73]
      	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:683) [catalina.jar:9.0.73]
      	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:658) [catalina.jar:9.0.73]
      	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662) [catalina.jar:9.0.73]
      	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:689) [catalina.jar:9.0.73]
      	at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1888) [catalina.jar:9.0.73]
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) [?:?]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
      	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) [tomcat-util-9.0.73.jar:9.0.73]
      	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:123) [?:?]
      	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:582) [catalina.jar:9.0.73]
      	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472) [catalina.jar:9.0.73]
      	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1617) [catalina.jar:9.0.73]
      	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:318) [catalina.jar:9.0.73]
      	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) [catalina.jar:9.0.73]
      	at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423) [catalina.jar:9.0.73]
      	at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366) [catalina.jar:9.0.73]
      	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:898) [catalina.jar:9.0.73]
      	at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:795) [catalina.jar:9.0.73]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.73]
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1332) [catalina.jar:9.0.73]
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1322) [catalina.jar:9.0.73]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
      	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) [tomcat-util-9.0.73.jar:9.0.73]
      	at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) [?:?]
      	at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:871) [catalina.jar:9.0.73]
      	at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:249) [catalina.jar:9.0.73]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.73]
      	at org.apache.catalina.core.StandardService.startInternal(StandardService.java:428) [catalina.jar:9.0.73]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.73]
      	at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:917) [catalina.jar:9.0.73]
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) [catalina.jar:9.0.73]
      	at org.apache.catalina.startup.Catalina.start(Catalina.java:772) [catalina.jar:9.0.73]
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
      	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
      	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
      	at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
      	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:347) [bootstrap.jar:9.0.73]
      	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:478) [bootstrap.jar:9.0.73]
      

      We would like to provide a jna version compatible with ARM architecture.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: