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

"IllegalArgumentException: null source" exception when running applet demos

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 6
    • client-libs
    • sparc
    • solaris_10

      I'm getting the following exception when starting all applets in demo/applets
      directory simultaneously on a dual-cpu Solaris system:
      [tdv@nukite:] -< /import/java/jdk1.6.0/solaris-sparc/demo/applets >
      #>../../bin/appletviewer */*.html
      Exception in thread "AWT-EventQueue-5" java.lang.IllegalArgumentException: null source
              at java.util.EventObject.<init>(EventObject.java:38)
              at java.awt.AWTEvent.<init>(AWTEvent.java:259)
              at java.awt.event.ComponentEvent.<init>(ComponentEvent.java:97)
              at java.awt.event.WindowEvent.<init>(WindowEvent.java:179)
              at java.awt.event.WindowEvent.<init>(WindowEvent.java:219)
              at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:641)
              at java.awt.Component.dispatchEventImpl(Component.java:4250)
              at java.awt.Container.dispatchEventImpl(Container.java:2042)
              at java.awt.Window.dispatchEventImpl(Window.java:2299)
              at java.awt.Component.dispatchEvent(Component.java:4208)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
              at java.awt.SentEvent.dispatch(SentEvent.java:55)
              at java.awt.DefaultKeyboardFocusManager$DefaultKeyboardFocusManagerSentEvent.dispatch(DefaultKeyboardFocusManager.java:177)
              at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
              at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
              at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
              at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
              at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

      I can reproduce it probably 1 out of 3 attempts by just starting all of them
      at the same time.

      I can't get the same exception on Windows, but I got this one once (also a dual-cpu
      system). Note that I only got it when I hit Ctrl+C while the appets were still
      starting:
      Exception in thread "main" java.lang.InternalError: couldn't create menu peer
              at sun.awt.windows.WMenuItemPeer.checkMenuCreation(WMenuItemPeer.java:103)
              at sun.awt.windows.WMenuItemPeer.<init>(WMenuItemPeer.java:87)
              at sun.awt.windows.WToolkit.createMenuItem(WToolkit.java:442)
              at java.awt.MenuItem.addNotify(MenuItem.java:196)
              at java.awt.Menu.addNotify(Menu.java:158)
              at java.awt.MenuBar.addNotify(MenuBar.java:122)
              at java.awt.Frame.addNotify(Frame.java:475)
              at java.awt.Window.pack(Window.java:556)
              at sun.applet.AppletViewer.<init>(AppletViewer.java:180)
              at sun.applet.StdAppletViewerFactory.createAppletViewer(AppletViewer.java:82)
              at sun.applet.AppletViewer.parse(AppletViewer.java:1122)
              at sun.applet.AppletViewer.parse(AppletViewer.java:1056)
              at sun.applet.Main.run(Main.java:138)
              at sun.applet.Main.main(Main.java:80)

      I can not reproduce either of these exceptions on 5.0.

            ant Anton Tarasov (Inactive)
            tdv Dmitri Trembovetski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: