java.lang.NoSuchMethodError: net.sf.freecol.common.model.Unit.getRole()Lnet/sf/freecol/common/model/UnitType$Role;

freecol | highwayoflife | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Labor Adviser menu not working

    freecol | 9 years ago | highwayoflife
    java.lang.NoSuchMethodError: net.sf.freecol.common.model.Unit.getRole()Lnet/sf/freecol/common/model/UnitType$Role;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      net.sf.freecol.common.model.Unit.getRole()Lnet/sf/freecol/common/model/UnitType$Role;

      at net.sf.freecol.client.gui.panel.LabourData.incrementOutsideWorker()
    2. net.sf.freecol
      ReportLabourAction.actionPerformed
      1. net.sf.freecol.client.gui.panel.LabourData.incrementOutsideWorker(LabourData.java:486)
      2. net.sf.freecol.client.gui.panel.LabourData.gatherData(LabourData.java:424)
      3. net.sf.freecol.client.gui.panel.LabourData.<init>(LabourData.java:400)
      4. net.sf.freecol.client.gui.panel.ReportLabourPanel.<init>(ReportLabourPanel.java:91)
      5. net.sf.freecol.client.gui.Canvas.showReportPanel(Canvas.java:1522)
      6. net.sf.freecol.client.gui.action.ReportLabourAction.actionPerformed(ReportLabourAction.java:75)
      6 frames
    3. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
      5. javax.swing.AbstractButton.doClick(AbstractButton.java:334)
      6. javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051)
      7. javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092)
      8. java.awt.Component.processMouseEvent(Component.java:5583)
      9. javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
      10. java.awt.Component.processEvent(Component.java:5348)
      11. java.awt.Container.processEvent(Container.java:2010)
      12. java.awt.Component.dispatchEventImpl(Component.java:4050)
      13. java.awt.Container.dispatchEventImpl(Container.java:2068)
      14. java.awt.Component.dispatchEvent(Component.java:3885)
      15. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
      16. java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
      17. java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
      18. java.awt.Container.dispatchEventImpl(Container.java:2054)
      19. java.awt.Window.dispatchEventImpl(Window.java:1791)
      20. java.awt.Component.dispatchEvent(Component.java:3885)
      21. java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
      22. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
      23. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
      24. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
      25. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
      26. java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      26 frames