update jna library to support Apple M1 architecture

Description

M1 is pretty new, we are shipping 5.5.0, there are newer releases which support the M1 architecture better

https://github.com/java-native-access/jna/issues/1313

Latest is 5.10.0, 5.8.0 solves this

https://github.com/java-native-access/jna/blob/master/CHANGES.md#release-5100

Attachments

1

Activity

Patrick 
2 February 2022 at 18:46

This Java setup runs good on the latest MBP 2021 machine with M1 chip.

Zac Spitzer 
29 January 2022 at 10:28

ok, the problem is now resolved

the updated sun.com.jna 5.10.0 jar needs to be dynamically downloaded from the update provider, but there is a bug which meant it didn't see the new version, I manually fixed it by adding an artifact entry

this bug is still outstanding, but the fix didn’t help

Zac Spitzer 
29 January 2022 at 08:53
(edited)

this is also triggered when using an older loader

Zac Spitzer 
29 January 2022 at 06:42
(edited)

the problem is this jna jar is only bundled in the Lucee loader (aka fat .jar, but not in the core update aka .lco via the admin) so Lucee goes and asks the update provider for it.

https://update.lucee.org/rest/update/provider/download/com.sun.jna/5.10.0/?allowRedirect=true&jv=11.0.13 404

https://update.lucee.org/rest/update/provider/download/com.sun.jna/5.9.0/?allowRedirect=true&jv=11.0.13 works

I'm not sure why the update provider is being so super annoying here (i.e. 5.9.0 working but not 5.10.0)

For an existing install, replacing the Lucee loader lucee*.jar under lucee/lib with https://cdn.lucee.org/lucee-5.3.9.61-SNAPSHOT.jar (means you can't downgrade below that release tho) works fine.. just stop tomcat, rename the existing .jar to .jarz, and restart tomcat

or via command box "cfengine":"lucee@5.3.9-SNAPSHOT+61" works too

Zac Spitzer 
28 January 2022 at 16:49

Fixed

Details

Assignee

Reporter

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Sprint

Fix versions

Priority

Created 25 May 2021 at 12:06
Updated 10 July 2023 at 09:47
Resolved 10 February 2022 at 21:03