ho-dev / HattrickOrganizer

Assistant for Hattrick online football manager
https://ho-dev.github.io/HattrickOrganizer/
GNU Lesser General Public License v3.0
193 stars 79 forks source link

[BUG] Error in training panel #2186

Open jmbr4 opened 1 week ago

jmbr4 commented 1 week ago

Describe the bug Unhadled error when scroll in traniing panel

To Reproduce Steps to reproduce the behavior:

  1. Go to trainning
  2. Click on subtab trainning
  3. Scroll down in the central pannel
  4. See error

Screenshots image

Platform information: OS: Windows Version v9 r 705

tychobrailleur commented 1 week ago

Hi @jmbr4, would you please be able to share your logs? They should be under the logs folder in your HO installation.

jmbr4 commented 1 week ago

Hi, I don't see any log file in a HO installation image image

edit -> cc: @tychobrailleur

tychobrailleur commented 1 week ago

Do you have anything under %APPDATA%/HO/logs ? If not, could you at least make a screenshot of the error above, but with the button “Details” expanded, to see the full stracktrace?

jmbr4 commented 1 week ago

Hi @tychobrailleur,

Of course this is the stactrace:

java.lang.ClassCastException: class java.lang.String cannot be cast to class module.training.ui.comp.VerticalIndicator (java.lang.String is in module java.base of loader 'bootstrap'; module.training.ui.comp.VerticalIndicator is in unnamed module of loader 'app')
    at module.training.ui.renderer.OutputTableRenderer.getTableCellRendererComponent(OutputTableRenderer.java:83)
    at java.desktop/javax.swing.JTable.prepareRenderer(JTable.java:5797)
    at java.desktop/javax.swing.plaf.synth.SynthTableUI.paintCell(SynthTableUI.java:688)
    at java.desktop/javax.swing.plaf.synth.SynthTableUI.paintCells(SynthTableUI.java:585)
    at java.desktop/javax.swing.plaf.synth.SynthTableUI.paint(SynthTableUI.java:369)
    at java.desktop/javax.swing.plaf.synth.SynthTableUI.update(SynthTableUI.java:282)
    at java.desktop/javax.swing.JComponent.paintComponent(JComponent.java:842)
    at java.desktop/javax.swing.JComponent.paint(JComponent.java:1119)
    at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:952)
    at java.desktop/javax.swing.JComponent.paint(JComponent.java:1128)
    at java.desktop/javax.swing.JViewport.paint(JViewport.java:736)
    at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:952)
    at java.desktop/javax.swing.JComponent.paint(JComponent.java:1128)
    at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:952)
    at java.desktop/javax.swing.JSplitPane.paintChildren(JSplitPane.java:1030)
    at java.desktop/javax.swing.JComponent.paint(JComponent.java:1128)
    at java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:952)
    at java.desktop/javax.swing.JComponent.paint(JComponent.java:1128)
    at core.gui.comp.panel.ImagePanel.paint(ImagePanel.java:52)
    at java.desktop/javax.swing.JComponent.paintToOffscreen(JComponent.java:5311)
    at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBufferedFPScales(RepaintManager.java:1721)
    at java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1630)
    at java.desktop/javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1570)
    at java.desktop/javax.swing.RepaintManager.paint(RepaintManager.java:1337)
    at java.desktop/javax.swing.JComponent._paintImmediately(JComponent.java:5259)
    at java.desktop/javax.swing.JComponent.paintImmediately(JComponent.java:5069)
    at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:879)
    at java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:862)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:862)
    at java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:835)
    at java.desktop/javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:784)
    at java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1898)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
    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:741)
    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)

I found the logs in %APPDATA%/HO/logs i review it and see this possible relevant lines:

2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.lang.ClassCastException: class java.lang.String cannot be cast to class module.training.ui.comp.VerticalIndicator (java.lang.String is in module java.base of loader 'bootstrap'; module.training.ui.comp.VerticalIndicator is in unnamed module of loader 'app')
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: module.training.ui.renderer.OutputTableRenderer.getTableCellRendererComponent(OutputTableRenderer.java:83)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.JTable.prepareRenderer(JTable.java:5797)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.plaf.synth.SynthTableUI.paintCell(SynthTableUI.java:688)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.plaf.synth.SynthTableUI.paintCells(SynthTableUI.java:585)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.plaf.synth.SynthTableUI.paint(SynthTableUI.java:369)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.plaf.synth.SynthTableUI.update(SynthTableUI.java:282)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.JComponent.paintComponent(JComponent.java:842)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.JComponent.paint(JComponent.java:1119)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:952)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.JComponent.paint(JComponent.java:1128)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.JViewport.paint(JViewport.java:736)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:952)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.JComponent.paint(JComponent.java:1128)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:952)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.JSplitPane.paintChildren(JSplitPane.java:1030)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.JComponent.paint(JComponent.java:1128)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.JComponent.paintChildren(JComponent.java:952)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.JComponent.paint(JComponent.java:1128)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: core.gui.comp.panel.ImagePanel.paint(ImagePanel.java:52)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.JComponent.paintToOffscreen(JComponent.java:5311)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBufferedFPScales(RepaintManager.java:1721)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1630)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1570)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.RepaintManager.paint(RepaintManager.java:1337)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.JComponent._paintImmediately(JComponent.java:5259)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.JComponent.paintImmediately(JComponent.java:5069)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:879)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.RepaintManager$4.run(RepaintManager.java:862)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:862)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:835)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:784)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1898)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
2024-11-17 01:24:37 [Error]   core.util.ExceptionHandler: java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

Sorry I can't be of more help, I don't know the ins and outs of the app.