java.lang.InternalError: couldn't create component peer

JDK Bug System | Webbug Group | 5 years ago
  1. 0

    FULL PRODUCT VERSION : Java7u4 ADDITIONAL OS VERSION INFORMATION : Windows 7 32Bit ver6.1.7600 A DESCRIPTION OF THE PROBLEM : I use javascript to create html applet tag, then append to html DOM. The first append is worked,but it will fail on append more than twice. Sometimes applet seems not repaint. Sometimes JVM will run the second instance. REGRESSION. Last worked in version 7 STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : step 1:Write a simple applet. step 2:White a javascript function to create applet tag and append to html DOM. step 3:Run the javascript function many times. step 4:You will see some applet will not worded or JVM will run the second instance. step 5:Fix the bug please. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - Applets will run at the same ClassLoader and each applet is running normal. ACTUAL - Situation 1:Applet will not repaint, seems applet dead. Situation 2:Applet running at the different JVM. ERROR MESSAGES/STACK TRACES THAT OCCUR : None Error Message. REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- Applet Code: public class MyApplet extends JApplet { public MyApplet() { super(); } public void init() { this.setSize(300, 300); } } HTML Code: <body style="margin:0px;padding:0px;"> <input type="button" value="createApplet" onclick="createApplet();"> <script> var count = 0; function createApplet(){ var div=document.createElement("div"); var s = "<applet mayscript='true' code='MyApplet.class' width='50px' height='50px' name='MyApplet"+count+"' id='MyApplet"+count+"' alt='Java Runtime Environment is not working on your system' codebase='' archive='MyApplet.jar'><"+"/applet>"; div.innerHTML = s; document.body.appendChild(div); count++; } </script> </body> ---------- END SOURCE ---------- Please indicate when the regression was introduced. If it's a recent regression - please update the release notes.

    JDK Bug System | 5 years ago | Webbug Group
    java.lang.InternalError: couldn't create component peer
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Applet does not load in firefox

    Oracle Community | 5 years ago | 901819
    java.lang.InternalError: couldn't create component peer

    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.InternalError

      couldn't create component peer

      at sun.awt.windows.WComponentPeer.checkCreation()
    2. Java RT
      WEmbeddedFrame.addNotify
      1. sun.awt.windows.WComponentPeer.checkCreation(Unknown Source)
      2. sun.awt.windows.WComponentPeer.<init>(Unknown Source)
      3. sun.awt.windows.WCanvasPeer.<init>(Unknown Source)
      4. sun.awt.windows.WPanelPeer.<init>(Unknown Source)
      5. sun.awt.windows.WWindowPeer.<init>(Unknown Source)
      6. sun.awt.windows.WFramePeer.<init>(Unknown Source)
      7. sun.awt.windows.WEmbeddedFramePeer.<init>(Unknown Source)
      8. sun.awt.windows.WToolkit.createEmbeddedFrame(Unknown Source)
      9. sun.awt.windows.WEmbeddedFrame.addNotify(Unknown Source)
      9 frames
    3. sun.plugin2.main
      PluginEmbeddedFrame.addNotify
      1. sun.plugin2.main.client.PluginEmbeddedFrame.addNotify(Unknown Source)
      1 frame
    4. Java RT
      WEmbeddedFrame.<init>
      1. sun.awt.windows.WEmbeddedFrame.<init>(Unknown Source)
      1 frame
    5. sun.plugin2.main
      PluginEmbeddedFrame.<init>
      1. sun.plugin2.main.client.PluginEmbeddedFrame.<init>(Unknown Source)
      1 frame
    6. com.sun.deploy
      AWTPluginWindowFactory.createWindow
      1. com.sun.deploy.uitoolkit.impl.awt.AWTPluginEmbeddedFrameWindow.<init>(Unknown Source)
      2. com.sun.deploy.uitoolkit.impl.awt.AWTPluginWindowFactory.createWindow(Unknown Source)
      2 frames
    7. sun.plugin2.main
      PluginMain$AppletFrameCreator.run
      1. sun.plugin2.main.client.PluginMain$AppletFrameCreator.run(Unknown Source)
      1 frame
    8. Java RT
      EventDispatchThread.run
      1. java.awt.event.InvocationEvent.dispatch(Unknown Source)
      2. java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      3. java.awt.EventQueue.access$000(Unknown Source)
      4. java.awt.EventQueue$3.run(Unknown Source)
      5. java.awt.EventQueue$3.run(Unknown Source)
      6. java.security.AccessController.doPrivileged(Native Method)
      7. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
      8. java.awt.EventQueue.dispatchEvent(Unknown Source)
      9. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      10. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      11. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      12. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      13. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      14. java.awt.EventDispatchThread.run(Unknown Source)
      14 frames