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

Coderanch | Mike Lipay | 7 years 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

    DecimalFormat error

    Coderanch | 7 years ago | Mike Lipay
    java.lang.IllegalArgumentException: Cannot format given Object as a Number
  2. 0

    What would cause this IllegalArgumentException during event dispatching?

    Stack Overflow | 8 years ago | Thomas Owens
    java.lang.IllegalArgumentException: Cannot format given Object as a Number
  3. 0

    [#JDK-8013550] DefaultKeyboardFocusManager throws Exception for small Components (<10px) - Java Bug System

    java.net | 2 years ago
    java.lang.IllegalArgumentException: Comparison method violates its general contract!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    CTS plugin error

    Google Groups | 7 years ago | pdo...@netmadeira.com
    java.lang.IllegalArgumentException: latitude_of_origin - Could not find the key. at com.sun.media.jai.util.CaselessStringArrayTable.indexOf(CaselessStringArrayTable.java:96) at com.sun.media.jai.util.CaselessStringArrayTable.indexOf(CaselessStringArrayTable.java:110) at javax.media.jai.ParameterListDescriptorImpl.getParamValueRange(ParameterListDescriptorImpl.java:434) at org.geotools.resources.DescriptorNaming.equals(DescriptorNaming.java:255) at org.geotools.resources.DescriptorNaming.equals(DescriptorNaming.java:277) at org.geotools.cs.Projection.equals(Projection.java:324) at org.geotools.cs.Info.equals(Info.java:316) at org.geotools.util.WeakHashSet.intern(WeakHashSet.java:364) at org.geotools.util.WeakHashSet.canonicalize(WeakHashSet.java:408) at org.geotools.cs.CoordinateSystemFactory.createProjection(CoordinateSystemFactory.java:576) at org.geotools.cs.WKTParser.parseProjection(WKTParser.java:301) at org.geotools.cs.WKTParser.parseProjCS(WKTParser.java:553) at org.geotools.cs.WKTParser.parseCoordinateSystem(WKTParser.java:611) at org.geotools.cs.WKTParser.parseCoordinateSystem(WKTParser.java:651) at org.geotools.cs.CoordinateSystemFactory.createFromWKT(CoordinateSystemFactory.java:747) at de.soldin.gt2jump.cts.WKTCSLoader.<init>(WKTCSLoader.java:57) at de.soldin.gt2jump.cts.CSSetting.setCS(CSSetting.java:82) at de.soldin.gt2jump.cts.CSSetting.itemStateChanged(CSSetting.java:73) at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1224) at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1281) at javax.swing.JComboBox.contentsChanged(JComboBox.java:1328) at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:117) at javax.swing.DefaultComboBoxModel.setSelectedItem(DefaultComboBoxModel.java:105) at javax.swing.JComboBox.setSelectedItem(JComboBox.java:576)

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Cannot format given Object as a Number

      at java.text.DecimalFormat.format()
    2. Java RT
      Dialog.setVisible
      1. java.text.DecimalFormat.format(Unknown Source)
      2. java.text.Format.format(Unknown Source)
      3. javax.swing.JTable$DoubleRenderer.setValue(Unknown Source)
      4. javax.swing.table.DefaultTableCellRenderer.getTableCellRendererComponent(Unknown Source)
      5. javax.swing.JTable.prepareRenderer(Unknown Source)
      6. javax.swing.plaf.basic.BasicTableUI.paintCell(Unknown Source)
      7. javax.swing.plaf.basic.BasicTableUI.paintCells(Unknown Source)
      8. javax.swing.plaf.basic.BasicTableUI.paint(Unknown Source)
      9. javax.swing.plaf.ComponentUI.update(Unknown Source)
      10. javax.swing.JComponent.paintComponent(Unknown Source)
      11. javax.swing.JComponent.paint(Unknown Source)
      12. javax.swing.JComponent.paintChildren(Unknown Source)
      13. javax.swing.JComponent.paint(Unknown Source)
      14. javax.swing.JViewport.paint(Unknown Source)
      15. javax.swing.JComponent.paintChildren(Unknown Source)
      16. javax.swing.JComponent.paint(Unknown Source)
      17. javax.swing.JComponent.paintChildren(Unknown Source)
      18. javax.swing.JComponent.paint(Unknown Source)
      19. javax.swing.JComponent.paintChildren(Unknown Source)
      20. javax.swing.JComponent.paint(Unknown Source)
      21. javax.swing.JLayeredPane.paint(Unknown Source)
      22. javax.swing.JComponent.paintChildren(Unknown Source)
      23. javax.swing.JComponent.paintToOffscreen(Unknown Source)
      24. javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
      25. javax.swing.RepaintManager.paint(Unknown Source)
      26. javax.swing.JComponent.paint(Unknown Source)
      27. java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
      28. sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
      29. sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
      30. java.awt.Container.paint(Unknown Source)
      31. java.awt.Window.paint(Unknown Source)
      32. javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
      33. javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
      34. javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
      35. javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
      36. java.awt.event.InvocationEvent.dispatch(Unknown Source)
      37. java.awt.EventQueue.dispatchEvent(Unknown Source)
      38. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      39. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      40. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      41. java.awt.Dialog$1.run(Unknown Source)
      42. java.awt.Dialog$3.run(Unknown Source)
      43. java.security.AccessController.doPrivileged(Native Method)
      44. java.awt.Dialog.show(Unknown Source)
      45. java.awt.Component.show(Unknown Source)
      46. java.awt.Component.setVisible(Unknown Source)
      47. java.awt.Window.setVisible(Unknown Source)
      48. java.awt.Dialog.setVisible(Unknown Source)
      48 frames
    3. Unknown
      Service$1.run
      1. Service$1.run(service.java:42)
      1 frame
    4. Java RT
      EventDispatchThread.run
      1. java.awt.event.InvocationEvent.dispatch(Unknown Source)
      2. java.awt.EventQueue.dispatchEvent(Unknown Source)
      3. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      4. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      5. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      6. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      7. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      8. java.awt.EventDispatchThread.run(Unknown Source)
      8 frames