-
Bug
-
Resolution: Fixed
-
P3
-
5.0
FULL PRODUCT VERSION :
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Linux pascoe 2.4.22-1.2199.nptl #1 Wed Aug 4 12:25:07 EDT 2004 i686 athlon i386 GNU/Linux
Fedora Core 1
A DESCRIPTION OF THE PROBLEM :
Clipboard.getContents() throws ArrayOutOfBoundsException when the system clipboard contains data from OpenOffice.org version 1.1.0 Writer.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Load given test.html page into the OpenOffice.org 1.1.0 Writer.
Select All (Ctrl A)
Copy to clipboard (Ctrl C)
Run given TestClipBoard class (java TestClipBoard)
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No output at all.
ACTUAL -
Exception thrown.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
java.lang.ArrayIndexOutOfBoundsException: 1024
at sun.awt.X11.XSelection.getData(XSelection.java:418)
at sun.awt.X11.XClipboard.getClipboardData(XClipboard.java:98)
at sun.awt.datatransfer.ClipboardTransferable.fetchOneFlavor(ClipboardTransferable.java:106)
at sun.awt.datatransfer.ClipboardTransferable.<init>(ClipboardTransferable.java:80)
at sun.awt.X11.XClipboard.getContents(XClipboard.java:84)
at TestClipBoard.main(TestClipBoard.java:7)
java.lang.ArrayIndexOutOfBoundsException: 1024
at sun.awt.X11.XSelection.getData(XSelection.java:418)
at sun.awt.X11.XClipboard.getClipboardData(XClipboard.java:98)
at sun.awt.datatransfer.ClipboardTransferable.fetchOneFlavor(ClipboardTransferable.java:106)
at sun.awt.datatransfer.ClipboardTransferable.<init>(ClipboardTransferable.java:80)
at sun.awt.X11.XClipboard.getContents(XClipboard.java:84)
at TestClipBoard.main(TestClipBoard.java:7)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Test.html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
<TITLE>Frog - Launcher Configuration XML - Welcome</TITLE>
<META NAME="GENERATOR" CONTENT="OpenOffice.org 1.1.0 (Linux)">
<META NAME="CREATED" CONTENT="20041103;11131600">
<META NAME="CHANGED" CONTENT="20041103;11500800">
</HEAD>
<BODY LANG="en-US" DIR="LTR">
<DIV ID="banner" DIR="LTR">
<P STYLE="margin-bottom: 0in">Test</P>
</DIV>
</BODY>
</HTML>
Java code:
import java.awt.Toolkit;
public class TestClipBoard
{
public static void main(String[] arguments)
{
Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null);
}
}
---------- END SOURCE ----------
Release Regression From : 1.4.2
The above release value was the last known release where this
bug was known to work. Since then there has been a regression.
java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode, sharing)
ADDITIONAL OS VERSION INFORMATION :
Linux pascoe 2.4.22-1.2199.nptl #1 Wed Aug 4 12:25:07 EDT 2004 i686 athlon i386 GNU/Linux
Fedora Core 1
A DESCRIPTION OF THE PROBLEM :
Clipboard.getContents() throws ArrayOutOfBoundsException when the system clipboard contains data from OpenOffice.org version 1.1.0 Writer.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Load given test.html page into the OpenOffice.org 1.1.0 Writer.
Select All (Ctrl A)
Copy to clipboard (Ctrl C)
Run given TestClipBoard class (java TestClipBoard)
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
No output at all.
ACTUAL -
Exception thrown.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
java.lang.ArrayIndexOutOfBoundsException: 1024
at sun.awt.X11.XSelection.getData(XSelection.java:418)
at sun.awt.X11.XClipboard.getClipboardData(XClipboard.java:98)
at sun.awt.datatransfer.ClipboardTransferable.fetchOneFlavor(ClipboardTransferable.java:106)
at sun.awt.datatransfer.ClipboardTransferable.<init>(ClipboardTransferable.java:80)
at sun.awt.X11.XClipboard.getContents(XClipboard.java:84)
at TestClipBoard.main(TestClipBoard.java:7)
java.lang.ArrayIndexOutOfBoundsException: 1024
at sun.awt.X11.XSelection.getData(XSelection.java:418)
at sun.awt.X11.XClipboard.getClipboardData(XClipboard.java:98)
at sun.awt.datatransfer.ClipboardTransferable.fetchOneFlavor(ClipboardTransferable.java:106)
at sun.awt.datatransfer.ClipboardTransferable.<init>(ClipboardTransferable.java:80)
at sun.awt.X11.XClipboard.getContents(XClipboard.java:84)
at TestClipBoard.main(TestClipBoard.java:7)
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
Test.html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; charset=utf-8">
<TITLE>Frog - Launcher Configuration XML - Welcome</TITLE>
<META NAME="GENERATOR" CONTENT="OpenOffice.org 1.1.0 (Linux)">
<META NAME="CREATED" CONTENT="20041103;11131600">
<META NAME="CHANGED" CONTENT="20041103;11500800">
</HEAD>
<BODY LANG="en-US" DIR="LTR">
<DIV ID="banner" DIR="LTR">
<P STYLE="margin-bottom: 0in">Test</P>
</DIV>
</BODY>
</HTML>
Java code:
import java.awt.Toolkit;
public class TestClipBoard
{
public static void main(String[] arguments)
{
Toolkit.getDefaultToolkit().getSystemClipboard().getContents(null);
}
}
---------- END SOURCE ----------
Release Regression From : 1.4.2
The above release value was the last known release where this
bug was known to work. Since then there has been a regression.