I'm new with Open Web Start, I'm evaluating it as an alternative to Jre 1.8 for JNLP applications such as this one:https://jws.agenziaentrate.it/jws/dichi ... 77024.jnlp
I installed OpenJDK Runtime Environment Microsoft-10377968 (build 21.0.5+11-LTS) and OpenWebStart 1.11.1, then I put the link above in the browser.
After the application jar files were downloaded the working window opened, apparently it was running well, unfortunately it cannot be closed using the menu or the cross icon.
It correctly works using Jre 1.8 and its web start.
Besides on first run that application performs some initial configuration and creates a shortcut. Using OpenWebStart it always behaves as it was the first run,
it asks again one time configuration choices, which clearly is not correct.
If there is no easy way to fix this problems I have to abandon OpenWebStart
Thanks
Filippo
Cannot close an application launched with OpenWebStart
-
- Posts: 2
- Joined: 27 Feb 2025, 14:40
-
- Posts: 963
- Joined: 24 Mar 2020, 13:37
Re: Cannot close an application launched with OpenWebStart
Once OWS does not control the behavior of an application in any way. OWS just launches a jnlp application with the JVM that best matches that specified in the Jnlp file. You say that with Java 21 the application is starting but after that you are not able to close the window of the application.
Does the application code needs to be ported to newer versions of Java? Do you need to specify additional JVM args in the jnlp file to make it run with JREs > 1.8?
Please check OWS logs in case your application has logged some messages.
Does the application code needs to be ported to newer versions of Java? Do you need to specify additional JVM args in the jnlp file to make it run with JREs > 1.8?
Please check OWS logs in case your application has logged some messages.
-
- Posts: 2
- Joined: 27 Feb 2025, 14:40
Re: Cannot close an application launched with OpenWebStart
I enabled log on file. When I try to close the application(Esci command) there are lots of exception, but I have no idea how to deal with them.
The root cause seems to be:
Any help will be appreciated
Here is an extract from the log:
The root cause seems to be:
Code: Select all
java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.util.Comparator
java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module @af975d7
Here is an extract from the log:
telem INFO 2025/03/03 15:56:43:533 Operazione: Esci
telem INFO 2025/03/03 15:56:43:533 Operazione: Esci
telem INFO 2025/03/03 15:56:43:646 Exception in thread "AWT-EventQueue-1"
telem INFO 2025/03/03 15:56:43:648 java.lang.ExceptionInInitializerError
telem INFO 2025/03/03 15:56:43:648 at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:832)
telem INFO 2025/03/03 15:56:43:648 at com.thoughtworks.xstream.XStream.<init>(XStream.java:574)
telem INFO 2025/03/03 15:56:43:650 at com.thoughtworks.xstream.XStream.<init>(XStream.java:496)
telem INFO 2025/03/03 15:56:43:650 at com.thoughtworks.xstream.XStream.<init>(XStream.java:465)
telem INFO 2025/03/03 15:56:43:650 at com.thoughtworks.xstream.XStream.<init>(XStream.java:411)
telem INFO 2025/03/03 15:56:43:650 at com.thoughtworks.xstream.XStream.<init>(XStream.java:378)
telem INFO 2025/03/03 15:56:43:652 at finanze.IDAC.struct.ZipObject.save(ZipObject.java:63)
telem INFO 2025/03/03 15:56:43:654 at finanze.IDAC.struct.ZipObject.save(ZipObject.java:16)
telem INFO 2025/03/03 15:56:43:654 at finanze.IDAC.gui.MainWin.closeApplication(MainWin.java:1118)
telem INFO 2025/03/03 15:56:43:654 at finanze.IDAC.gui.MainWin.closeApplication(MainWin.java:1112)
telem INFO 2025/03/03 15:56:43:654 at finanze.IDAC.gui.MainWin.actionPerformed(MainWin.java:798)
telem INFO 2025/03/03 15:56:43:656 at finanze.IDAC.gui770.MainWin77024.actionPerformed(MainWin77024.java:322)
telem INFO 2025/03/03 15:56:43:656 at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
telem INFO 2025/03/03 15:56:43:656 at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
telem INFO 2025/03/03 15:56:43:656 at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
telem INFO 2025/03/03 15:56:43:658 at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
telem INFO 2025/03/03 15:56:43:658 at java.desktop/javax.swing.AbstractButton.doClick(Unknown Source)
telem INFO 2025/03/03 15:56:43:658 at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
telem INFO 2025/03/03 15:56:43:658 at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
telem INFO 2025/03/03 15:56:43:658 at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
telem INFO 2025/03/03 15:56:43:660 at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
telem INFO 2025/03/03 15:56:43:660 at java.desktop/java.awt.Component.processEvent(Unknown Source)
telem INFO 2025/03/03 15:56:43:660 at java.desktop/java.awt.Container.processEvent(Unknown Source)
telem INFO 2025/03/03 15:56:43:660 at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
telem INFO 2025/03/03 15:56:43:662 at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
telem INFO 2025/03/03 15:56:43:662 at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
telem INFO 2025/03/03 15:56:43:662 at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
telem INFO 2025/03/03 15:56:43:662 at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
telem INFO 2025/03/03 15:56:43:662 at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
telem INFO 2025/03/03 15:56:43:662 at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
telem INFO 2025/03/03 15:56:43:664 at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
telem INFO 2025/03/03 15:56:43:666 at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
telem INFO 2025/03/03 15:56:43:666 at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
telem INFO 2025/03/03 15:56:43:666 at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
telem INFO 2025/03/03 15:56:43:666 at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
telem INFO 2025/03/03 15:56:43:666 at java.base/java.security.AccessController.doPrivileged(Unknown Source)
telem INFO 2025/03/03 15:56:43:668 at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
telem INFO 2025/03/03 15:56:43:668 at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
telem INFO 2025/03/03 15:56:43:668 at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
telem INFO 2025/03/03 15:56:43:668 at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
telem INFO 2025/03/03 15:56:43:668 at java.base/java.security.AccessController.doPrivileged(Unknown Source)
telem INFO 2025/03/03 15:56:43:668 at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
telem INFO 2025/03/03 15:56:43:671 at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
telem INFO 2025/03/03 15:56:43:671 at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
telem INFO 2025/03/03 15:56:43:671 at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
telem INFO 2025/03/03 15:56:43:671 at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
telem INFO 2025/03/03 15:56:43:671 at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
telem INFO 2025/03/03 15:56:43:673 at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
telem INFO 2025/03/03 15:56:43:673 at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
telem INFO 2025/03/03 15:56:43:675 Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.util.Comparator java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module @af975d7
telem INFO 2025/03/03 15:56:43:675 at java.base/java.lang.reflect.AccessibleObject.throwInaccessibleObjectException(Unknown Source)
telem INFO 2025/03/03 15:56:43:675 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source)
telem INFO 2025/03/03 15:56:43:675 at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(Unknown Source)
telem INFO 2025/03/03 15:56:43:675 at java.base/java.lang.reflect.Field.checkCanSetAccessible(Unknown Source)
telem INFO 2025/03/03 15:56:43:675 at java.base/java.lang.reflect.Field.setAccessible(Unknown Source)
telem INFO 2025/03/03 15:56:43:677 at com.thoughtworks.xstream.core.util.Fields.locate(Fields.java:40)
telem INFO 2025/03/03 15:56:43:677 at com.thoughtworks.xstream.converters.collections.TreeMapConverter.<clinit>(TreeMapConverter.java:50)
telem INFO 2025/03/03 15:56:43:677 ... 49 more
-
- Posts: 963
- Joined: 24 Mar 2020, 13:37
Re: Cannot close an application launched with OpenWebStart
>
java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.util.Comparator
java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module @af975d7
>
It seems that to work with Java 21 your application needs to add some module related JVM args in the Jnlp file. Please find out the module dependencies required by your application and add the required modules related JVM args.
java.lang.reflect.InaccessibleObjectException: Unable to make field private final java.util.Comparator
java.util.TreeMap.comparator accessible: module java.base does not "opens java.util" to unnamed module @af975d7
>
It seems that to work with Java 21 your application needs to add some module related JVM args in the Jnlp file. Please find out the module dependencies required by your application and add the required modules related JVM args.