Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6772884
Votes 0
Synopsis plugin2 : java.lang.OutOfMemoryError or crash and higher heap consumption vs old plugin
Category java_plugin:plugin2
Reported Against b33
Release Fixed
State 11-Closed, Not a Defect, bug
Priority: 3-Medium
Related Bugs
Submit Date 18-NOV-2008
Description
Heap management difference in plugin2 makes applet to go out of heap space exception or crash.

The following exceptions can be observed in the console :

Exception in thread "AWT-EventQueue-1" java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOfRange(Unknown Source)
        at java.lang.String.<init>(Unknown Source)
        at javax.swing.text.GapContent.getString(Unknown Source)
        at javax.swing.text.AbstractDocument.getText(Unknown Source)
        at javax.swing.text.JTextComponent.getText(Unknown Source)
        at com.sun.deploy.util.ConsoleWindow$25.run(Unknown Source)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)

Exception in thread "AWT-EventQueue-1" java.lang.OutOfMemoryError: Java heap space
        at java.util.Arrays.copyOfRange(Unknown Source)
        at java.lang.String.<init>(Unknown Source)
        at java.lang.StringBuffer.toString(Unknown Source)
        at sun.awt.datatransfer.DataTransferer.translateTransferable(Unknown Source)
        at sun.awt.windows.WDataTransferer.translateTransferable(Unknown Source)
        at sun.awt.windows.WClipboard.setContentsNative(Unknown Source)
        at sun.awt.datatransfer.SunClipboard.setContents(Unknown Source)
        at javax.swing.TransferHandler.exportToClipboard(Unknown Source)
        at javax.swing.TransferHandler$TransferAction.actionPerformed(Unknown Source)
        at javax.swing.text.JTextComponent.invokeAction(Unknown Source)
        at javax.swing.text.JTextComponent.copy(Unknown Source)
        at com.sun.deploy.util.ConsoleWindow$11.actionPerformed(Unknown Source)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)


Full customer reproduction problem available in the comments section.

Increasing -Xmx to higher values (tested up to 256Mb) will just postpone the problem.
Posted Date : 2008-11-18 13:59:06.0
Work Around
N/A
Evaluation
N/A
Comments
  
  Include a link with my name & email   

Submitted On 08-APR-2009
afeefmirza
Did you try not printing any value in the console?



PLEASE NOTE: JDK6 is formerly known as Project Mustang