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

appletviewer:NullPointerException occurerd with file saving for the second time.

XMLWordPrintable

      This phenemenon has been seeing with fcs_O - fcs_W.
      No exception occured in file saving with appletviewer for the first time
      and ser file is saved correctly.
      However,java.lang.NullPointerException occured in file saving for the
      second time by the same oeration as for the first time.

      Confirmed OS is Solaris2.6,7,8 (ja,C locale) / Windows95,98,NT4.0,2000(Japanese).

      Please compile and run the attached files.

      This proglam (JAppletTest.java) use api is listed below.
      javax.swing.JApplet;
      javax.swing.JPanel;
      javax.swing.JLabel;
      javax.swing.JTextField;
      javax.swing.JButton;
      javax.swing.JMenuBar;
      javax.swing.JMenu;
      javax.swing.JMenuItem;
      java.awt.*;

      There were nothing the same phenomenon in $JAVA_HOME/demo/applets.

      ---Part of exception---

      Exception occurred during event dispatching:
      java.lang.NullPointerException
              at javax.swing.plaf.basic.BasicMenuBarUI.uninstallListeners(BasicMenuBarUI.java:145)
              at javax.swing.plaf.basic.BasicMenuBarUI.uninstallUI(BasicMenuBarUI.java:132)
              at javax.swing.JComponent.compWriteObjectNotify(JComponent.java:4530)
              at javax.swing.JComponent$EnableSerializationFocusListener.writeObject(JComponent.java:4520)
              at java.lang.reflect.Method.invoke(Native Method)
      -----------------------
      slightly diffefent, but reproducible with kestrel-linux-rc1-b10

      An exception was thrown on saving a file for the first time as well as for the second time:

      ¥¢¥×¥ì¥Ã¥ÈÊݸ: java.io.NotSerializableException: java.lang.Thread
      java.lang.NullPointerException
              at javax.swing.plaf.basic.BasicGraphicsUtils.isLeftToRight(BasicGraphicsUtils.java:300)
              at javax.swing.plaf.basic.BasicMenuItemUI.layoutMenuItem(BasicMenuItemUI.java:753)
              at javax.swing.plaf.basic.BasicMenuItemUI.getPreferredMenuItemSize(BasicMenuItemUI.java:368)
              at javax.swing.plaf.basic.BasicMenuItemUI.getPreferredSize(BasicMenuItemUI.java:305)
              at javax.swing.JComponent.getPreferredSize(JComponent.java:1042)
              at javax.swing.BoxLayout.checkRequests(BoxLayout.java:361)
              at javax.swing.BoxLayout.preferredLayoutSize(BoxLayout.java:194)
              at java.awt.Container.preferredSize(Container.java:833)
              at java.awt.Container.getPreferredSize(Container.java:817)
              at javax.swing.JComponent.getPreferredSize(JComponent.java:1044)
              at javax.swing.JRootPane$RootLayout.layoutContainer(JRootPane.java:694)
              at java.awt.Container.layout(Container.java:686)
              at java.awt.Container.doLayout(Container.java:676)
              at java.awt.Container.validateTree(Container.java:750)
              at java.awt.Container.validateTree(Container.java:757)
              at java.awt.Container.validateTree(Container.java:757)
              at java.awt.Container.validate(Container.java:728)
              at sun.applet.AppletPanel.run(AppletPanel.java:359)
              at java.lang.Thread.run(Thread.java:484)
      Warning:
          Name: menu_bar
          Class: XmRowColumn
          XtGrabKeyboard failed.

      ¥¢¥×¥ì¥Ã¥ÈÊݸ: java.io.NotSerializableException: java.lang.Thread

      keiko.nakayama@Eng 2000-07-20

            mdavidsosunw Mark Davidson (Inactive)
            kkichisunw Kichi Kichi (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: