¿ªÔÆÌåÓý

Locked Re: Mac Java 17 upgrade caused permission issue #mac-os


 

¿ªÔÆÌåÓý

There are other errors in the log of my own doing. The significant line(s) ?highlighted (user Guest has not permission). My question is how and what changed my permission? Is it because I am using a patched 5.9.2?


2024-09-04T10:51:01,624 util.Log4JUtil ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- * JMRI log ** [main]
2024-09-04T10:51:01,629 util.Log4JUtil ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- This log is stored in file: /Users/enduser/Library/Preferences/JMRI/log/session.log [main]
2024-09-04T10:51:01,630 util.Log4JUtil ? ? ? ? ? ? ? ? ? ? ? ?INFO ?- This log is appended to file: /Users/enduser/Library/Preferences/JMRI/log/messages.log [main]
2024-09-04T10:51:01,632 apps.Apps ? ? ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- PanelPro version 5.9.2plus+jenkins+20240815T0713Z+Rb2a88be98b starts under Java 17.0.12 on Mac OS X aarch64 v14.6.1 at Wed Sep 04 10:51:01 EDT 2024 [main]
2024-09-04T10:51:02,159 permission.DefaultPermissionManager ? INFO ?- Permission file: /Users/enduser/Library/Preferences/JMRI/.permissions.xml [main]
2024-09-04T10:51:02,162 permission.DefaultPermissionManager ? INFO ?- Permission system is enabled: yes [main]
2024-09-04T10:51:03,773 apps.Apps ? ? ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- Starting with profile New_Profile.3f6317b2 [main]
2024-09-04T10:51:03,793 node.NodeIdentity ? ? ? ? ? ? ? ? ? ? INFO ?- Using aeff0b20-6eef-11e9-8000-9801a7bc11cb as the JMRI storage identity for profile id 3f6317b2 [AWT-EventQueue-0]
2024-09-04T10:51:03,852 dccpp.DCCppInitializationManager ? ? ?INFO ?- DCC++ Initialization Complete [main]
2024-09-04T10:51:03,970 roster.Roster ? ? ? ? ? ? ? ? ? ? ? ? INFO ?- Reading roster file with rootFromName(/Users/enduser/Library/Preferences/JMRI/roster.xml) [main]
2024-09-04T10:51:04,051 withrottle.FacelessServer ? ? ? ? ? ? INFO ?- Published ZeroConf service for 'my jmri railroad._withrottle._tcp.local.' on 192.168.1.33:12090 [WiThrottleServer]
2024-09-04T10:51:04,053 withrottle.FacelessServer ? ? ? ? ? ? INFO ?- Creating new WiThrottle DeviceServer(socket) on port 12090, waiting for incoming connection... [WiThrottleServer]
2024-09-04T10:51:04,187 startup.PerformFileModel ? ? ? ? ? ? ?INFO ?- Loading file /Users/enduser/Library/Preferences/JMRI/New_Profile.jmri/Pi_DCC_EX.xml [main]
2024-09-04T10:51:04,925 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path program: is /Applications/JMRI/ [main]
2024-09-04T10:51:04,925 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path preference: is /Users/enduser/Library/Preferences/JMRI/ [main]
2024-09-04T10:51:04,925 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path profile: is /Users/enduser/Library/Preferences/JMRI/New_Profile.jmri/ [main]
2024-09-04T10:51:04,925 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path settings: is /Users/enduser/Library/Preferences/JMRI/ [main]
2024-09-04T10:51:04,925 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path home: is /Users/enduser/ [main]
2024-09-04T10:51:04,926 util.FileUtilSupport ? ? ? ? ? ? ? ? ?INFO ?- File path scripts: is /Applications/JMRI/jython/ [main]
2024-09-04T10:51:05,515 dccpp.DCCppCommandStation ? ? ? ? ? ? INFO ?- Station Type set to 'DCC-EX' [AWT-EventQueue-0]
2024-09-04T10:51:05,515 dccpp.DCCppCommandStation ? ? ? ? ? ? INFO ?- Build set to '9db6d36' [AWT-EventQueue-0]
2024-09-04T10:51:05,516 dccpp.DCCppCommandStation ? ? ? ? ? ? INFO ?- Version set to '4.0.1' [AWT-EventQueue-0]
2024-09-04T10:51:05,901 PanelPro.PanelPro ? ? ? ? ? ? ? ? ? ? INFO ?- Main initialization done [main]
2024-09-04T10:51:51,293 permission.DefaultUser ? ? ? ? ? ? ? ?WARN ?- User Guest has not permission Store table content and panels file [AWT-EventQueue-0]
2024-09-04T10:51:58,170 configurexml.StoreAndCompare ? ? ? ? ?WARN ?- Match failed in StoreAndCompare: [AWT-EventQueue-0]
2024-09-04T10:51:58,171 configurexml.StoreAndCompare ? ? ? ? ?WARN ?- ? ? file1:line 10: " ?<sensors class="jmri.jmrix.dccpp.configurexml.DCCppSensorManagerXml">" [AWT-EventQueue-0]
2024-09-04T10:51:58,171 configurexml.StoreAndCompare ? ? ? ? ?WARN ?- ? ? file2:line 10: " ?<sensors class="jmri.jmrix.internal.configurexml.InternalSensorManagerXml">" [AWT-EventQueue-0]
2024-09-04T10:51:58,171 configurexml.StoreAndCompare ? ? ? ? ?WARN ?- ? comparing file1:"/Users/enduser/Library/Preferences/JMRI/New_Profile.jmri/Pi_DCC_EX.xml" [AWT-EventQueue-0]
2024-09-04T10:51:58,171 configurexml.StoreAndCompare ? ? ? ? ?WARN ?- ? ? ? ? ?to file2:"/var/folders/st/y6_9p_yj0xvcmvfxzz53p8q80000gn/T/8f1a16a6-378a-4baf-9b16-517d65115afc.xml" [AWT-EventQueue-0]
2024-09-04T10:52:00,799 permission.DefaultUser ? ? ? ? ? ? ? ?WARN ?- User Guest has not permission Store table content and panels file [AWT-EventQueue-0]
2024-09-04T10:52:04,195 managers.DefaultShutDownManager ? ? ? INFO ?- Normal termination complete [Thread-32]

John ?Bauchiero
- D&H Model Railroad
-?NCE PH-Pro & PowerCab, Pi4b, DCC-EX
- JMRI current test version 5.9.2

On Sep 3, 2024, at 11:26?PM, Dave Sand via groups.io <ds@...> wrote:

John,

After you get the error upload the session.log file located at /Users/<username>/Library/Preferences/JMRI/log.

Dave Sand

----- Original message -----
From: John Bauchiero <john4dhmr@...>
Subject: [jmriusers] Mac Java 17 upgrade caused permission issue
Date: Tuesday, September 03, 2024 8:57 PM

My railroad's Pi/JMRI computer uses Java 17 included with MSteveTodd¡¯s compilation. That works with no problems. This is noted as a reference only.

The issue I¡¯m having is a Permission Denied issue when saving the PanelPro .xml file(s), I use a MacBook for developing JMRI files, which was using Java 11 JDK. With 5.9.x uses Java 17 and future releases will require 17, I upgraded to Java 17 JRE. and removed the zulu-11.jdk directory as per the JMRI method. It upgraded without any problems and worked as expected, maybe even faster? Re-boot done between each change.?

After adding AZUL 17 JRE and removing the 11 directory when quitting JMRI and saving changes a dialog box pops up with Panel Pro ¡°Permission Denied¡±. Clicking OK allows the program to close, as expected. Upon re-starting JMRI the changes saved are there, as expected. No matter if I replace Java 11 as long as Java 17 exists the the error exists.

Question: Did I do something wrong during the upgrade process? ?Or is this a bug with the Mac JMRI version? ?Or is it a Zulu Java 17 issue? ? ?

John ?Bauchiero
- D&H Model Railroad
-?NCE PH-Pro & PowerCab, Pi4b, DCC-EX
- JMRI current test version 5.9.2


Join [email protected] to automatically receive all group messages.