java.lang.IllegalArgumentException: Cant remove more than player has of resource: PUs. current:0 toRemove: 57

GitHub | DanVanAtta | 6 months ago
  1. 0

    GitHub comment 210#231607572

    GitHub | 6 months ago | DanVanAtta
    java.lang.IllegalArgumentException: Cant remove more than player has of resource: PUs. current:0 toRemove: 57
  2. 0
    Probably you try to create an actor using actorSystem.actorOf(Props(classOf[AnyActor], args...)) where args does not match AnyActor constructor parameters.
  3. 0
    Some bots are sending malformed HTTP requests to your site. Try to find their IP addresses in the access logs and ask them to fix the bots or blacklist them.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0
    This error is caused by malformed HTTP request. You are trying to access unsecured page through https.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Cant remove more than player has of resource: PUs. current:0 toRemove: 57

      at games.strategy.engine.data.ResourceCollection.removeResource()
    2. games.strategy.engine
      ResourceCollection.difference
      1. games.strategy.engine.data.ResourceCollection.removeResource(ResourceCollection.java:62)
      2. games.strategy.engine.data.ResourceCollection.subtract(ResourceCollection.java:130)
      3. games.strategy.engine.data.ResourceCollection.subtract(ResourceCollection.java:125)
      4. games.strategy.engine.data.ResourceCollection.difference(ResourceCollection.java:120)
      4 frames
    3. games.strategy.triplea
      PurchasePanel$4.actionPerformed
      1. games.strategy.triplea.ui.ProductionPanel.calculateLimits(ProductionPanel.java:232)
      2. games.strategy.triplea.ui.ProductionPanel.show(ProductionPanel.java:79)
      3. games.strategy.triplea.ui.TabbedProductionPanel.getProduction(TabbedProductionPanel.java:43)
      4. games.strategy.triplea.ui.PurchasePanel$4.actionPerformed(PurchasePanel.java:124)
      4 frames
    4. Java RT
      BasicButtonListener.mouseReleased
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
      5 frames
    5. org.pushingpixels.substance
      RolloverButtonListener.mouseReleased
      1. org.pushingpixels.substance.internal.utils.RolloverButtonListener.mouseReleased(RolloverButtonListener.java:124)
      1 frame
    6. Java RT
      EventDispatchThread.run
      1. java.awt.Component.processMouseEvent(Component.java:6535)
      2. javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
      3. java.awt.Component.processEvent(Component.java:6300)
      4. java.awt.Container.processEvent(Container.java:2236)
      5. java.awt.Component.dispatchEventImpl(Component.java:4891)
      6. java.awt.Container.dispatchEventImpl(Container.java:2294)
      7. java.awt.Component.dispatchEvent(Component.java:4713)
      8. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
      9. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
      10. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
      11. java.awt.Container.dispatchEventImpl(Container.java:2280)
      12. java.awt.Window.dispatchEventImpl(Window.java:2750)
      13. java.awt.Component.dispatchEvent(Component.java:4713)
      14. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
      15. java.awt.EventQueue.access$500(EventQueue.java:97)
      16. java.awt.EventQueue$3.run(EventQueue.java:709)
      17. java.awt.EventQueue$3.run(EventQueue.java:703)
      18. java.security.AccessController.doPrivileged(Native Method)
      19. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      20. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
      21. java.awt.EventQueue$4.run(EventQueue.java:731)
      22. java.awt.EventQueue$4.run(EventQueue.java:729)
      23. java.security.AccessController.doPrivileged(Native Method)
      24. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
      25. java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
      26. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
      27. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
      28. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
      29. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
      30. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      31. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
      31 frames