java.lang.NumberFormatException: For input string: "i"

freecol | alancio | 2 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

    Game hang: Integer parse exception

    freecol | 2 years ago | alancio
    java.lang.NumberFormatException: For input string: "i"
  2. 0

    Java- Palindrome Program

    Stack Overflow | 2 years ago | Kultid_Games
    java.lang.NumberFormatException: For input string: "i"
  3. 0

    Nested List - Module def question?

    Google Groups | 7 years ago | poweroftesting
    java.lang.NumberFormatException: For input string: "i"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Some java.version give an exception

    GitHub | 1 year ago | wernight
    java.lang.ExceptionInInitializerError
  6. 0

    java : convert string value to int

    Stack Overflow | 5 years ago | lamisse
    java.lang.NumberFormatException: For input string: ""

  1. rp 4 times, last 3 weeks ago
  2. Handemelindo 6 times, last 3 weeks ago
  3. treefolk 3 times, last 1 month ago
  4. andreeaa marin 2 times, last 1 month ago
  5. eti22 6 times, last 1 month ago
33 more registered users
62 unregistered visitors
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.NumberFormatException

    For input string: "i"

    at java.lang.NumberFormatException.forInputString()
  2. Java RT
    Integer.parseInt
    1. java.lang.NumberFormatException.forInputString(Unknown Source)
    2. java.lang.Integer.parseInt(Unknown Source)
    3. java.lang.Integer.parseInt(Unknown Source)
    3 frames
  3. net.sf.freecol
    DefaultTransferHandler.importData
    1. net.sf.freecol.common.model.Unit.readChildren(Unit.java:3900)
    2. net.sf.freecol.common.model.FreeColObject.readFromXML(FreeColObject.java:521)
    3. net.sf.freecol.common.model.FreeColGameObject.readFromXML(FreeColGameObject.java:484)
    4. net.sf.freecol.common.model.FreeColGameObject.updateFreeColGameObject(FreeColGameObject.java:358)
    5. net.sf.freecol.common.model.UnitLocation.readChild(UnitLocation.java:442)
    6. net.sf.freecol.common.model.GoodsLocation.readChild(GoodsLocation.java:320)
    7. net.sf.freecol.common.model.Unit.readChildren(Unit.java:3913)
    8. net.sf.freecol.common.model.FreeColObject.readFromXML(FreeColObject.java:521)
    9. net.sf.freecol.common.model.FreeColGameObject.readFromXML(FreeColGameObject.java:484)
    10. net.sf.freecol.common.model.FreeColGameObject.updateFreeColGameObject(FreeColGameObject.java:358)
    11. net.sf.freecol.common.model.UnitLocation.readChild(UnitLocation.java:442)
    12. net.sf.freecol.common.model.Tile.readChild(Tile.java:2042)
    13. net.sf.freecol.common.model.UnitLocation.readChildren(UnitLocation.java:433)
    14. net.sf.freecol.common.model.Tile.readChildren(Tile.java:1977)
    15. net.sf.freecol.common.model.FreeColObject.readFromXML(FreeColObject.java:521)
    16. net.sf.freecol.common.model.FreeColGameObject.readFromXML(FreeColGameObject.java:484)
    17. net.sf.freecol.common.model.FreeColObject.readFromXMLElement(FreeColObject.java:468)
    18. net.sf.freecol.client.control.InGameInputHandler.updateGameObjects(InGameInputHandler.java:240)
    19. net.sf.freecol.client.control.InGameInputHandler.update(InGameInputHandler.java:221)
    20. net.sf.freecol.client.control.InGameInputHandler.handle(InGameInputHandler.java:114)
    21. net.sf.freecol.common.networking.Client.handleReply(Client.java:176)
    22. net.sf.freecol.common.networking.ServerAPI.askHandling(ServerAPI.java:1183)
    23. net.sf.freecol.common.networking.ServerAPI.embark(ServerAPI.java:464)
    24. net.sf.freecol.client.control.InGameController.boardShip(InGameController.java:1436)
    25. net.sf.freecol.client.gui.panel.CargoPanel.add(CargoPanel.java:211)
    26. net.sf.freecol.client.gui.panel.DefaultTransferHandler.importData(DefaultTransferHandler.java:220)
    26 frames
  4. Java RT
    SunDropTargetContextPeer.processDropMessage
    1. javax.swing.TransferHandler.importData(Unknown Source)
    2. javax.swing.TransferHandler$DropHandler.drop(Unknown Source)
    3. java.awt.dnd.DropTarget.drop(Unknown Source)
    4. javax.swing.TransferHandler$SwingDropTarget.drop(Unknown Source)
    5. sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown Source)
    5 frames
  5. sun.awt.X11
    XDropTargetContextPeer.processDropMessage
    1. sun.awt.X11.XDropTargetContextPeer.processDropMessage(Unknown Source)
    1 frame
  6. Java RT
    EventDispatchThread.run
    1. sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown Source)
    2. sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown Source)
    3. sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
    4. java.awt.Component.dispatchEventImpl(Unknown Source)
    5. java.awt.Container.dispatchEventImpl(Unknown Source)
    6. java.awt.Component.dispatchEvent(Unknown Source)
    7. java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    8. java.awt.LightweightDispatcher.processDropTargetEvent(Unknown Source)
    9. java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    10. java.awt.Container.dispatchEventImpl(Unknown Source)
    11. java.awt.Window.dispatchEventImpl(Unknown Source)
    12. java.awt.Component.dispatchEvent(Unknown Source)
    13. java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    14. java.awt.EventQueue.access$200(Unknown Source)
    15. java.awt.EventQueue$3.run(Unknown Source)
    16. java.awt.EventQueue$3.run(Unknown Source)
    17. java.security.AccessController.doPrivileged(Native Method)
    18. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    19. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    20. java.awt.EventQueue$4.run(Unknown Source)
    21. java.awt.EventQueue$4.run(Unknown Source)
    22. java.security.AccessController.doPrivileged(Native Method)
    23. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    24. java.awt.EventQueue.dispatchEvent(Unknown Source)
    25. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    26. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    27. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    28. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    29. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    30. java.awt.EventDispatchThread.run(Unknown Source)
    30 frames