java.lang.IllegalArgumentException: Cannot format given Object as a Number

Oracle Community | 807594 | 1 decade 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

    Error when setValueAt in JTable

    Oracle Community | 1 decade ago | 807594
    java.lang.IllegalArgumentException: Cannot format given Object as a Number
  2. 0

    I'm getting a cannot format given object as number exception when I run this code. Not sure what's wrong

    Stack Overflow | 2 years ago | Kausar Mukadam
    java.lang.IllegalArgumentException: Cannot format given Object as a Number
  3. 0

    google.ps, IllegalArgumentException

    Stack Overflow | 3 years ago | Nấdệêm N. IkĦlệîf
    java.lang.IllegalArgumentException: Cannot format given Object as a Number
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    google.ps, IllegalArgumentException

    tagwith.com | 2 years ago
    java.lang.IllegalArgumentException: Cannot format given Object as a Number
  6. 0

    populate data from database into a jtable

    Coderanch | 6 years ago | Kasun Wixkramanayake
    java.lang.IllegalArgumentException: Cannot format given Object as a Number

    4 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.IllegalArgumentException

      Cannot format given Object as a Number

      at java.text.NumberFormat.format()
    2. Java RT
      EventDispatchThread.run
      1. java.text.NumberFormat.format(NumberFormat.java:219)
      2. java.text.Format.format(Format.java:133)
      3. javax.swing.JTable$DoubleRenderer.setValue(JTable.java:3359)
      4. javax.swing.table.DefaultTableCellRenderer.getTableCellRendererComponent(DefaultTableCellRenderer.java:160)
      5. javax.swing.JTable.prepareRenderer(JTable.java:3693)
      6. javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:1149)
      7. javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:1051)
      8. javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:974)
      9. javax.swing.plaf.ComponentUI.update(ComponentUI.java:142)
      10. javax.swing.JComponent.paintComponent(JComponent.java:541)
      11. javax.swing.JComponent.paint(JComponent.java:808)
      12. javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4771)
      13. javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4724)
      14. javax.swing.JComponent._paintImmediately(JComponent.java:4668)
      15. javax.swing.JComponent.paintImmediately(JComponent.java:4477)
      16. javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:410)
      17. javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:117)
      18. java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
      19. java.awt.EventQueue.dispatchEvent(EventQueue.java:448)
      20. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
      21. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
      22. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
      23. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
      24. java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
      24 frames