Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4478750

Java2D demo throws java.lang.NumberFormatException.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • deploy
    • generic
    • generic

      This problem occurred with merlin beta-refresh build 70 acroos all the tested platforms and both IE and Netscape browsers.
      The tested platforms were - win 98, win 2000, sparc 8 & 9 and Redhat7.1

      Steps to reproduce -

      1. Install the plug-in (merlin beta-refresh build 70).

      2. Download the java2D demo from

      http://sqesvr.eng.sun.com/deployment3/demos/plugin/merlin/jfc/Java2D/Java2Demo.html.

      3. The applet loads up correctly, but it throws the following exception on the console.



      java.lang.NumberFormatException: null
      at java.lang.Integer.parseInt(Unknown Source)
      at java.lang.Integer.parseInt(Unknown Source)
      at java2d.demos.Paint.TextureAnim$DemoControls.actionPerformed(TextureAnim.java:341)
      at javax.swing.JComboBox.fireActionEvent(Unknown Source)
      at javax.swing.JComboBox.contentsChanged(Unknown Source)
      at javax.swing.JComboBox.intervalAdded(Unknown Source)
      at javax.swing.AbstractListModel.fireIntervalAdded(Unknown Source)
      at javax.swing.DefaultComboBoxModel.addElement(Unknown Source)
      at javax.swing.JComboBox.addItem(Unknown Source)
      at java2d.demos.Paint.TextureAnim$DemoControls.<init>(TextureAnim.java:308)
      at java2d.demos.Paint.TextureAnim.<init>(TextureAnim.java:84)
      at sun.reflect.GeneratedConstructorAccessor157.newInstance(Unknown Source)
      at java.lang.reflect.Constructor.newInstance(Unknown Source)
      at java.lang.Class.newInstance0(Unknown Source)
      at java.lang.Class.newInstance(Unknown Source)
      at java2d.DemoPanel.<init>(DemoPanel.java:58)
      at java2d.DemoGroup.<init>(DemoGroup.java:87)
      at java2d.Java2Demo.<init>(Java2Demo.java:128)
      at java2d.Java2DemoApplet.init(Java2DemoApplet.java:109)
      at sun.applet.AppletPanel.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)

            zgu Zhengyu Gu
            anprabha Anjana Prabhakar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: