Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in run program #102

Closed
sami-soft opened this issue Jul 5, 2023 · 2 comments
Closed

error in run program #102

sami-soft opened this issue Jul 5, 2023 · 2 comments

Comments

@sami-soft
Copy link

JByteMod-1.8.2>java -jar JByteMod-1.8.2.jar
[00:16:32] [INFO] Reading Language XML..
[00:16:32] [INFO] Successfully loaded 187 local resources and 187 default resources
[00:16:32] [INFO] Unicode check finished!
[00:16:32] [INFO] Loading settings...
[00:16:32] [ERROR] Failed to set encoding to UTF-8 (Unable to make field private static volatile java.nio.charset.Charset java.nio.charset.Charset.defaultCharset accessible: module java.base does not "opens java.nio.charset" to unnamed module @7946e1f4)
[00:16:32] [INFO] Setting default Look and Feel
[AWT-EventQueue-0] ERROR com.alee.utils.ProprietaryUtils - java.lang.NoSuchFieldException: AA_TEXT_PROPERTY_KEY
java.lang.NoSuchFieldException: AA_TEXT_PROPERTY_KEY
        at java.base/java.lang.Class.getField(Class.java:2211)
        at com.alee.utils.ReflectUtils.getStaticFieldValue(ReflectUtils.java:440)
        at com.alee.utils.ProprietaryUtils.setupUIDefaults(ProprietaryUtils.java:103)
        at com.alee.laf.WebLookAndFeel.initComponentDefaults(WebLookAndFeel.java:537)
        at java.desktop/javax.swing.plaf.basic.BasicLookAndFeel.getDefaults(BasicLookAndFeel.java:153)
        at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:592)
        at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:638)
        at com.alee.utils.LafUtils.setupLookAndFeelSafely(LafUtils.java:1557)
        at com.alee.utils.LafUtils.setupLookAndFeelSafely(LafUtils.java:1544)
        at com.alee.laf.WebLookAndFeel.install(WebLookAndFeel.java:939)
        at com.alee.laf.WebLookAndFeel.install(WebLookAndFeel.java:927)
        at me.grax.jbytemod.utils.gui.LookUtils.setLAF(LookUtils.java:15)
        at me.grax.jbytemod.JByteMod$1.run(JByteMod.java:166)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
        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:400)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
        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)
[AWT-EventQueue-0] ERROR com.alee.utils.XmlUtils - java.lang.ExceptionInInitializerError
java.lang.ExceptionInInitializerError
        at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:807)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:574)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:496)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:465)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:411)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:378)
        at com.alee.utils.XmlUtils.initializeXStream(XmlUtils.java:94)
        at com.alee.utils.XmlUtils.getXStream(XmlUtils.java:81)
        at com.alee.utils.XmlUtils.processAnnotations(XmlUtils.java:148)
        at com.alee.laf.WebLookAndFeel$2.propertyChange(WebLookAndFeel.java:856)
        at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
        at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
        at java.desktop/javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:93)
        at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
        at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:601)
        at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:638)
        at com.alee.utils.LafUtils.setupLookAndFeelSafely(LafUtils.java:1557)
        at com.alee.utils.LafUtils.setupLookAndFeelSafely(LafUtils.java:1544)
        at com.alee.laf.WebLookAndFeel.install(WebLookAndFeel.java:939)
        at com.alee.laf.WebLookAndFeel.install(WebLookAndFeel.java:927)
        at me.grax.jbytemod.utils.gui.LookUtils.setLAF(LookUtils.java:15)
        at me.grax.jbytemod.JByteMod$1.run(JByteMod.java:166)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
        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:400)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
        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)
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 @7946e1f4
        at java.base/java.lang.reflect.AccessibleObject.throwInaccessibleObjectException(AccessibleObject.java:387)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:363)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:311)
        at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:181)
        at java.base/java.lang.reflect.Field.setAccessible(Field.java:175)
        at com.thoughtworks.xstream.core.util.Fields.locate(Fields.java:39)
        at com.thoughtworks.xstream.converters.collections.TreeMapConverter.<clinit>(TreeMapConverter.java:50)
        ... 35 more
[AWT-EventQueue-0] ERROR com.alee.utils.LafUtils - Unable to initialize L&F for class name: com.alee.laf.WebLookAndFeel
java.lang.NullPointerException: Cannot invoke "com.thoughtworks.xstream.XStream.processAnnotations(java.lang.Class)" because the return value of "com.alee.utils.XmlUtils.getXStream()" is null
        at com.alee.utils.XmlUtils.processAnnotations(XmlUtils.java:148)
        at com.alee.laf.WebLookAndFeel$2.propertyChange(WebLookAndFeel.java:856)
        at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
        at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
        at java.desktop/javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:93)
        at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
        at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:601)
        at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:638)
        at com.alee.utils.LafUtils.setupLookAndFeelSafely(LafUtils.java:1557)
        at com.alee.utils.LafUtils.setupLookAndFeelSafely(LafUtils.java:1544)
        at com.alee.laf.WebLookAndFeel.install(WebLookAndFeel.java:939)
        at com.alee.laf.WebLookAndFeel.install(WebLookAndFeel.java:927)
        at me.grax.jbytemod.utils.gui.LookUtils.setLAF(LookUtils.java:15)
        at me.grax.jbytemod.JByteMod$1.run(JByteMod.java:166)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
        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:400)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
        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)
[AWT-EventQueue-0] ERROR com.alee.utils.XmlUtils - java.lang.NoClassDefFoundError: Could not initialize class com.thoughtworks.xstream.converters.collections.TreeMapConverter
java.lang.NoClassDefFoundError: Could not initialize class com.thoughtworks.xstream.converters.collections.TreeMapConverter
        at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:807)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:574)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:496)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:465)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:411)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:378)
        at com.alee.utils.XmlUtils.initializeXStream(XmlUtils.java:94)
        at com.alee.utils.XmlUtils.getXStream(XmlUtils.java:81)
        at com.alee.utils.XmlUtils.processAnnotations(XmlUtils.java:148)
        at com.alee.managers.style.StyleManager.<clinit>(StyleManager.java:66)
        at com.alee.laf.panel.WebPanelUI.installUI(WebPanelUI.java:106)
        at java.desktop/javax.swing.JComponent.setUI(JComponent.java:740)
        at java.desktop/javax.swing.JPanel.setUI(JPanel.java:153)
        at java.desktop/javax.swing.JPanel.updateUI(JPanel.java:129)
        at java.desktop/javax.swing.JPanel.<init>(JPanel.java:89)
        at java.desktop/javax.swing.JPanel.<init>(JPanel.java:112)
        at java.desktop/javax.swing.JPanel.<init>(JPanel.java:120)
        at java.desktop/javax.swing.JRootPane.createGlassPane(JRootPane.java:509)
        at java.desktop/javax.swing.JRootPane.<init>(JRootPane.java:336)
        at java.desktop/javax.swing.JFrame.createRootPane(JFrame.java:279)
        at java.desktop/javax.swing.JFrame.frameInit(JFrame.java:258)
        at java.desktop/javax.swing.JFrame.<init>(JFrame.java:181)
        at me.grax.jbytemod.JByteMod.<init>(JByteMod.java:228)
        at me.grax.jbytemod.JByteMod$1.run(JByteMod.java:169)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
        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:400)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
        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)
Caused by: java.lang.ExceptionInInitializerError: Exception 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 @7946e1f4 [in thread "AWT-EventQueue-0"]
        at java.base/java.lang.reflect.AccessibleObject.throwInaccessibleObjectException(AccessibleObject.java:387)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:363)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:311)
        at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:181)
        at java.base/java.lang.reflect.Field.setAccessible(Field.java:175)
        at com.thoughtworks.xstream.core.util.Fields.locate(Fields.java:39)
        at com.thoughtworks.xstream.converters.collections.TreeMapConverter.<clinit>(TreeMapConverter.java:50)
        at com.thoughtworks.xstream.XStream.setupConverters(XStream.java:807)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:574)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:496)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:465)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:411)
        at com.thoughtworks.xstream.XStream.<init>(XStream.java:378)
        at com.alee.utils.XmlUtils.initializeXStream(XmlUtils.java:94)
        at com.alee.utils.XmlUtils.getXStream(XmlUtils.java:81)
        at com.alee.utils.XmlUtils.processAnnotations(XmlUtils.java:148)
        at com.alee.laf.WebLookAndFeel$2.propertyChange(WebLookAndFeel.java:856)
        at java.desktop/java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:343)
        at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:335)
        at java.desktop/javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:93)
        at java.desktop/java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:268)
        at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:601)
        at java.desktop/javax.swing.UIManager.setLookAndFeel(UIManager.java:638)
        at com.alee.utils.LafUtils.setupLookAndFeelSafely(LafUtils.java:1557)
        at com.alee.utils.LafUtils.setupLookAndFeelSafely(LafUtils.java:1544)
        at com.alee.laf.WebLookAndFeel.install(WebLookAndFeel.java:939)
        at com.alee.laf.WebLookAndFeel.install(WebLookAndFeel.java:927)
        at me.grax.jbytemod.utils.gui.LookUtils.setLAF(LookUtils.java:15)
        at me.grax.jbytemod.JByteMod$1.run(JByteMod.java:166)
        ... 13 more
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
        at com.alee.laf.panel.WebPanelUI.installUI(WebPanelUI.java:106)
        at java.desktop/javax.swing.JComponent.setUI(JComponent.java:740)
        at java.desktop/javax.swing.JPanel.setUI(JPanel.java:153)
        at java.desktop/javax.swing.JPanel.updateUI(JPanel.java:129)
        at java.desktop/javax.swing.JPanel.<init>(JPanel.java:89)
        at java.desktop/javax.swing.JPanel.<init>(JPanel.java:112)
        at java.desktop/javax.swing.JPanel.<init>(JPanel.java:120)
        at java.desktop/javax.swing.JRootPane.createGlassPane(JRootPane.java:509)
        at java.desktop/javax.swing.JRootPane.<init>(JRootPane.java:336)
        at java.desktop/javax.swing.JFrame.createRootPane(JFrame.java:279)
        at java.desktop/javax.swing.JFrame.frameInit(JFrame.java:258)
        at java.desktop/javax.swing.JFrame.<init>(JFrame.java:181)
        at me.grax.jbytemod.JByteMod.<init>(JByteMod.java:228)
        at me.grax.jbytemod.JByteMod$1.run(JByteMod.java:169)
        at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
        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:400)
        at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:87)
        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)
Caused by: java.lang.NullPointerException: Cannot invoke "com.thoughtworks.xstream.XStream.processAnnotations(java.lang.Class)" because the return value of "com.alee.utils.XmlUtils.getXStream()" is null
        at com.alee.utils.XmlUtils.processAnnotations(XmlUtils.java:148)
        at com.alee.managers.style.StyleManager.<clinit>(StyleManager.java:66)
@neilhuang007
Copy link

me too

@Phlosioneer
Copy link

It's failing on Java 17, but I'm able to run it on Java 8. Some java update broke this, get an older version and run it that way. C:\path\to\old\java\bin\java.exe -jar JByteMod-1.8.2.jar (javaw.exe also works)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants