java.lang.ClassCastException: tourma.data.Team cannot be cast to tourma.data.Coach

GitHub | Funny-Valentine | 9 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    [Bug 0.8.6] Erreur lors de la génération du fichier pour la NAF

    GitHub | 9 months ago | Funny-Valentine
    java.lang.ClassCastException: tourma.data.Team cannot be cast to tourma.data.Coach

    Root Cause Analysis

    1. java.lang.ClassCastException

      tourma.data.Team cannot be cast to tourma.data.Coach

      at tourma.data.Tournament.exportNAF()
    2. tourma.data
      Tournament.exportNAF
      1. tourma.data.Tournament.exportNAF(Tournament.java:1170)
      1 frame
    3. tourma
      MainFrame$7.actionPerformed
      1. tourma.MainFrame.jmiExportActionPerformed(MainFrame.java:1010)
      2. tourma.MainFrame.access$700(MainFrame.java:92)
      3. tourma.MainFrame$7.actionPerformed(MainFrame.java:425)
      3 frames
    4. Java RT
      EventDispatchThread.pumpEvents
      1. javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
      2. javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
      4. javax.swing.DefaultButtonModel.setPressed(Unknown Source)
      5. javax.swing.AbstractButton.doClick(Unknown Source)
      6. javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
      7. javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
      8. java.awt.Component.processMouseEvent(Unknown Source)
      9. javax.swing.JComponent.processMouseEvent(Unknown Source)
      10. java.awt.Component.processEvent(Unknown Source)
      11. java.awt.Container.processEvent(Unknown Source)
      12. java.awt.Component.dispatchEventImpl(Unknown Source)
      13. java.awt.Container.dispatchEventImpl(Unknown Source)
      14. java.awt.Component.dispatchEvent(Unknown Source)
      15. java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      16. java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      17. java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      18. java.awt.Container.dispatchEventImpl(Unknown Source)
      19. java.awt.Window.dispatchEventImpl(Unknown Source)
      20. java.awt.Component.dispatchEvent(Unknown Source)
      21. java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      22. java.awt.EventQueue.access$200(Unknown Source)
      23. java.awt.EventQueue$3.run(Unknown Source)
      24. java.awt.EventQueue$3.run(Unknown Source)
      25. java.security.AccessController.doPrivileged(Native Method)
      26. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      27. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      28. java.awt.EventQueue$4.run(Unknown Source)
      29. java.awt.EventQueue$4.run(Unknown Source)
      30. java.security.AccessController.doPrivileged(Native Method)
      31. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      32. java.awt.EventQueue.dispatchEvent(Unknown Source)
      33. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      34. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      35. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      36. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      37. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      37 frames