Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
Search
Locked Java exception when starting JMRI 4.20 with Java 17
Hello all,
?
I'm trying to get JMRI 4.20 running on a Raspberry 3b.? The RPi OS came with Java 17.0.14.? I'm wondering if JMRI 4.20 will even run with that version of Java.? If not I'll need to upgrade to the latest 5.x version of JMRI.? Thanks and take care.
?
Dennis Drury
Dayton, NV
?
Here is the error log:
?
OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release.
2025-03-12 12:44:53,718 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - * JMRI log ** [main]
2025-03-12 12:44:54,101 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - This log is appended to file: /home/sci/.jmri/log/messages.log [main]
2025-03-12 12:44:54,110 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - This log is stored in file: /home/sci/.jmri/log/session.log [main]
2025-03-12 12:44:54,187 apps.Apps? ? ? ? ? ? ? ? ? ? ? ? ? ? ?INFO? - InstallTest version 4.20+Rc7ba8249b starts under Java 17.0.14 on Linux aarch64 v6.6.74+rpt-rpi-v8 at Wed Mar 12 12:44:54 PDT 2025 [main]
2025-03-12 12:44:54,605 ptionhandler.UncaughtExceptionHandler ERROR - Uncaught Exception caught by jmri.util.exceptionhandler.UncaughtExceptionHandler [main]
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at jmri.util.swing.SliderSnap.init(SliderSnap.java:123)
at apps.Apps.<init>(Apps.java:130)
at apps.InstallTest.InstallTest.<init>(InstallTest.java:40)
at apps.InstallTest.InstallTest.main(InstallTest.java:115)
Caused by: java.lang.reflect.InvocationTargetException
at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1371)
at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1346)
at jmri.util.swing.SliderSnap.init(SliderSnap.java:121)
... 3 more
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected int javax.swing.plaf.basic.BasicSliderUI.xPositionForValue(int) accessible: module java.desktop does not "opens javax.swing.plaf.basic" to unnamed module @42f30e0a
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354)
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297)
at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:200)
at java.base/java.lang.reflect.Method.setAccessible(Method.java:194)
at jmri.util.swing.SliderSnap$Init.run(SliderSnap.java:410)
at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:308)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720)
at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
?
|
开云体育If you’re starting from scratch I’d STRONGLY suggest looking at Steve Todd’s images for Ras Pis
They take all the guesswork away
See?
Phil G
On 12 Mar 2025, at 19:58, Dennis Drury via groups.io <cowrr1984@...> wrote:
|
Dennis, A quick test indicates the 4.22 might work with Java 17. ?4.26 definitely works with Java 17. ? Then again, maybe this a good opportunity to get current. Dave Sand ----- Original message ----- From: "Dennis Drury via groups.io" <cowrr1984=[email protected]> Subject: [jmriusers] Java exception when starting JMRI 4.20 with Java 17 Date: Wednesday, March 12, 2025 2:58 PM Hello all, ? I'm trying to get JMRI 4.20 running on a Raspberry 3b.? The RPi OS came with Java 17.0.14.? I'm wondering if JMRI 4.20 will even run with that version of Java.? If not I'll need to upgrade to the latest 5.x version of JMRI.? Thanks and take care. ? Dennis Drury Dayton, NV ? Here is the error log: ? OpenJDK 64-Bit Server VM warning: Options -Xverify:none and -noverify were deprecated in JDK 13 and will likely be removed in a future release. 2025-03-12 12:44:53,718 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - * JMRI log ** [main] 2025-03-12 12:44:54,101 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - This log is appended to file: /home/sci/.jmri/log/messages.log [main] 2025-03-12 12:44:54,110 util.Log4JUtil? ? ? ? ? ? ? ? ? ? ? ? INFO? - This log is stored in file: /home/sci/.jmri/log/session.log [main] 2025-03-12 12:44:54,187 apps.Apps? ? ? ? ? ? ? ? ? ? ? ? ? ? ?INFO? - InstallTest version 4.20+Rc7ba8249b starts under Java 17.0.14 on Linux aarch64 v6.6.74+rpt-rpi-v8 at Wed Mar 12 12:44:54 PDT 2025 [main] 2025-03-12 12:44:54,605 ptionhandler.UncaughtExceptionHandler ERROR - Uncaught Exception caught by jmri.util.exceptionhandler.UncaughtExceptionHandler [main] java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at jmri.util.swing.SliderSnap.init(SliderSnap.java:123) at apps.Apps.<init>(Apps.java:130) at apps.InstallTest.InstallTest.<init>(InstallTest.java:40) at apps.InstallTest.InstallTest.main(InstallTest.java:115) Caused by: java.lang.reflect.InvocationTargetException at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1371) at java.desktop/java.awt.EventQueue.invokeAndWait(EventQueue.java:1346) at jmri.util.swing.SliderSnap.init(SliderSnap.java:121) ... 3 more Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make protected int javax.swing.plaf.basic.BasicSliderUI.xPositionForValue(int) accessible: module java.desktop does not "opens javax.swing.plaf.basic" to unnamed module @42f30e0a at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) at java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:200) at java.base/java.lang.reflect.Method.setAccessible(Method.java:194) at jmri.util.swing.SliderSnap$Init.run(SliderSnap.java:410) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:308) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:720) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:714) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) ? |
On Wed, Mar 12, 2025 at 01:58 PM, Dennis Drury wrote:
You could try replacing it with Java 11 -- Peter Ulvestad Linux Mint 22.1, JMRI 5.11.3plus, Java 21.0.5 JMRI Users Group Moderator ( /g/jmriusers ) JMRI Developers Group Moderator ( ) Tam Valley Group Moderator ( ) Sprog-DCC Group Moderator ( ) Edmonton Model Railroad Association ( ) |
Hello Dave and all, Great progress has been made.? I have updated JMRI to 4.26 and everything works except...? No messages in the error log.? I can successfully?load a panel and initialize?it.? The missing track lines that I had before are now fixed, how I don't know.? But now, as soon as I try to open a turnout or sensor table I get the message in the attached image.? So close and yet so far.? Thanks?again for all your assistance. Cheers, Dennis Drury Dayton, NV The miracle is this: the more we share the more we have. Leonard Nimoy On Wed, Mar 12, 2025 at 1:25?PM Dave Sand via <ds=[email protected]> wrote:
|
Is there a reason you have not updated to at least the latest production version of JMRI? 4.20 was almost 5 years old, 4.26 is over 3 years old.
I wouldn't expect support for such outdated versions. -- Peter Ulvestad Linux Mint 22.1, JMRI 5.11.3plus, Java 21.0.5 JMRI Users Group Moderator ( /g/jmriusers ) JMRI Developers Group Moderator ( ) Tam Valley Group Moderator ( ) Sprog-DCC Group Moderator ( ) Edmonton Model Railroad Association ( ) |
Hi Peter, I support systems running 3.10, 4.20 and 4.26.? I don't see the need to upgrade to the latest unless it's necessary, but if need be I will.? Thanks and take care. Cheers, Dennis Drury Dayton, NV The miracle is this: the more we share the more we have. Leonard Nimoy On Thu, Mar 13, 2025 at 12:40?PM Peter Ulvestad via <ulvestad=[email protected]> wrote: Is there a reason you have not updated to at least the latest production version of JMRI? 4.20 was almost 5 years old, 4.26 is over 3 years old. |
Dennis, When you use Tools -> Tables -> ????, all of the tables are initialized. ?In this case, the Audio table has a problem. When you installed JMRI 4.26 did you delete or rename the existing JMRI directory before expanding the download? The reference to "/home/sci/JMRI/libgluegen-rt.so" is wrong. ?The actual path is "/home/sci/JMRI/lib/linux/.../libgluegen_rt.so". ?The "..." depends on the PC hardware. If you start PanelPro from the command line with the -d option, the log directory will have the launcher.log file. ?That might have some clues. cd ~/JMRI ./PanelPro -d Dave Sand ----- Original message ----- From: "Dennis Drury via groups.io" <cowrr1984=[email protected]> Subject: Re: [jmriusers] Java exception when starting JMRI 4.20 with Java 17 Date: Thursday, March 13, 2025 2:19 PM Hello Dave and all, Great progress has been made.? I have updated JMRI to 4.26 and everything works except...? No messages in the error log.? I can successfully?load a panel and initialize?it.? The missing track lines that I had before are now fixed, how I don't know.? But now, as soon as I try to open a turnout or sensor table I get the message in the attached image.? So close and yet so far.? Thanks?again for all your assistance. Cheers, Dennis Drury Dayton, NV The miracle is this: the more we share the more we have. Leonard Nimoy On Wed, Mar 12, 2025 at 1:25?PM Dave Sand via <ds=[email protected]> wrote:
Attachments:
|
Thanks Dave.? I'll answer inline below. Cheers, Dennis Drury Dayton, NV The miracle is this: the more we share the more we have. Leonard Nimoy On Thu, Mar 13, 2025 at 1:00?PM Dave Sand via <ds=[email protected]> wrote:
I used Notepad?++ to edit the XML file to get rid of the bell sounds when an OS was occupied.? That seems to have resolved the problem.? I can now open all the tables.?
No.? I put the tgz file in /home/sci and expanded it from there.? It created a JMRI folder and put the files there.?
Didn't see where this came up again since there are now no errors.? Thanks again for all the assistance.
|
Dennis, An interesting test would be to add the bell sounds and see if the problem returns. Dave Sand ----- Original message ----- From: "Dennis Drury via groups.io" <cowrr1984=[email protected]> Subject: Re: [jmriusers] Java exception when starting JMRI 4.20 with Java 17 Date: Thursday, March 13, 2025 4:45 PM Thanks Dave.? I'll answer inline below. Cheers, Dennis Drury Dayton, NV The miracle is this: the more we share the more we have. Leonard Nimoy On Thu, Mar 13, 2025 at 1:00?PM Dave Sand via <ds=[email protected]> wrote:
I used Notepad?++ to edit the XML file to get rid of the bell sounds when an OS was occupied.? That seems to have resolved the problem.? I can now open all the tables.?
No.? I put the tgz file in /home/sci and expanded it from there.? It created a JMRI folder and put the files there.?
Didn't see where this came up again since there are now no errors.? Thanks again for all the assistance.
|
All,
?
I think there are more than anyone is willing to admit still running JMRI 4.26.
?
Uninstalling and upgrading your JAVA is just the beginning of PITAs involved (not to even mention Windows versions needed and its hardware requirements), and no one has ever given a single, solitary example of some extra, additional, or improved feature that a later JAVA version has. I've asked before. Of course, if anyone can offer anything like that now, then knock yourself out. That would contribute to the discussion.
?
Regards |
Don, For new and improved features, the releasenotes are the place to look. Also, there is no shame in being happy with an older release. Having said that, it's nobody's task to convince people one way or the other. It's everyone's own choice to update, not to update, when to update, which version(s) to update to. One thing that will become increasingly important, is that if support is necessary, the older the version, the less likely people iving support are going to be willing to invest their precious time to investigate. That's probably the biggest risk involved. Wouter On Thu, 13 Mar 2025 at 22:03, Don Shroyer via <Donshroyer=[email protected]> wrote:
|
开云体育Adding to Wouter, the further “behind” you get from current, the bigger the task (and risks) there will be if/when you DO need to upgrade?My oldest environment is running Windows 8 (still) and I really can’t remember the last time I hit a problem when upgrading. All my JMRIs are current
Phil G On 13 Mar 2025, at 22:17, whmvd via groups.io <vandoornw@...> wrote:
|
All,
?
Wouter is not the first to conflate "some extra, additional, or improved feature" of JAVA itself, with those of JMRI. The latter is certainly documented, but it is the former which I challenge. What later JAVA improvements enabled or improved JMRI code?
?
And the "precious time" argument is always laid bare when coders spend it denying bugs rather than fixing them.
?
Regards |
开云体育The JAVA debate is certainly separate from the JMRI oneUnfortunately, JMRI does not control the release cycles of JAVA, but generally any a that are taken advantage of tend to make coding simpler and more efficient with no obvious external benefits. So I think we agree there
As for denying the existence of bugs - I have to disagree
JMRI has fixed at least four issues for me in the last 12 months alone
Phil G On 14 Mar 2025, at 11:22, Don Shroyer via groups.io <Donshroyer@...> wrote:
|
On Mar 13, 2025, at 6:03?PM, Don Shroyer via groups.io <Donshroyer@...> wrote:And you’ve been answered before: Bob — Bob Jacobsen rgj1927@... |
Don, I did nothing of the kind. Wouter On Fri, 14 Mar 2025 at 11:22, Don Shroyer via <Donshroyer=[email protected]> wrote:
|
to navigate to use esc to dismiss