JDK-8009629 : REGRESSION: closed/java/awt/Clipboard/HTMLTransferTest/HTMLTransferTest.html fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7u2
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2013-03-07
  • Updated: 2013-07-18
  • Resolved: 2013-03-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8Resolved
Related Reports
Duplicate :  
Description
Testsuite name: Regression 
Test name: closed/java/awt/Clipboard/HTMLTransferTest/HTMLTransferTest
JDK tested: jdk 7u21 b05 
OS tested: Windows 
Is it a regression: YES
Fails since 7u02 b11

LOG:

#section:applet
----------messages:(3/136)----------
command: applet HTMLTransferTest.html
reason: User specified action: run applet HTMLTransferTest.html 
elapsed time (seconds): 2.719
----------System.out:(0/0)----------
----------System.err:(67/3977)----------
===>Testing formats from the list:
"text/html; class=java.io.InputStream; charset=UTF-8"
"text/html; class=java.lang.String; charset=UTF-8"

{PRODUCER: lost clipboard ownership
++received message: BA
testing native HTML format "text/html; class=java.io.InputStream; charset=UTF-8"...
}PRODUCER: lost clipboard ownership
{PRODUCER: lost clipboard ownership
++received message: N
testing native HTML format "text/html; class=java.lang.String; charset=UTF-8"...
}PRODUCER: lost clipboard ownership
{PRODUCER: lost clipboard ownership
++received message: N
}PRODUCER: lost clipboard ownership
========= Child VM System.err ========
{CONSUMER: start
{CONSUMER: lost clipboard ownership
received message: 
============================================================
Put as text/html; class=java.io.InputStream; charset=UTF-8
----------------------------------------------------------
Extract as text/html; class=java.io.InputStream; charset=UTF-8
in :The quick <font color='#78650d'>brown</font> <b>mouse</b> jumped over the lazy <b>cat</b>.
out:<HTML><BODY><!--StartFragment-->The quick <font color='#78650d'>brown</font> <b>mouse</b> jumped over the lazy <b>cat</b>.<!--EndFragment--></BODY></HTML>
transferred DATA is different from initial DATA

----------------------------------------------------------
Extract as text/html; class=java.lang.String; charset=UTF-8
in :The quick <font color='#78650d'>brown</font> <b>mouse</b> jumped over the lazy <b>cat</b>.
out:<HTML><BODY><!--StartFragment-->The quick <font color='#78650d'>brown</font> <b>mouse</b> jumped over the lazy <b>cat</b>.<!--EndFragment--></BODY></HTML>
transferred DATA is different from initial DATA

----------------------------------------------------------
format failed!!!
============================================================
}CONSUMER: lost clipboard ownership
{CONSUMER: lost clipboard ownership
received message: The quick <font color='#78650d'>brown</font> <b>mouse</b> jumped over the lazy <b>cat</b>.
============================================================
Put as text/html; class=java.lang.String; charset=UTF-8
----------------------------------------------------------
Extract as text/html; class=java.io.InputStream; charset=UTF-8
in :The quick <font color='#78650d'>brown</font> <b>mouse</b> jumped over the lazy <b>cat</b>.
out:<HTML><BODY><!--StartFragment-->The quick <font color='#78650d'>brown</font> <b>mouse</b> jumped over the lazy <b>cat</b>.<!--EndFragment--></BODY></HTML>
transferred DATA is different from initial DATA

----------------------------------------------------------
Extract as text/html; class=java.lang.String; charset=UTF-8
in :The quick <font color='#78650d'>brown</font> <b>mouse</b> jumped over the lazy <b>cat</b>.
out:<HTML><BODY><!--StartFragment-->The quick <font color='#78650d'>brown</font> <b>mouse</b> jumped over the lazy <b>cat</b>.<!--EndFragment--></BODY></HTML>
transferred DATA is different from initial DATA

----------------------------------------------------------
format failed!!!
============================================================
}CONSUMER: lost clipboard ownership
{CONSUMER: lost clipboard ownership
received message: E
}CONSUMER: lost clipboard ownership
}CONSUMER: start
======================================
java.lang.RuntimeException: test failed: HTMLs in following native formats are not transferred properly: text/html; class=java.io.InputStream; charset=UTF-8 text/html; class=java.lang.String; charset=UTF-8 
	at HTMLTransferTest.start(HTMLTransferTest.java:131)
	at com.sun.javatest.regtest.AppletWrapper$AppletRunnable.run(AppletWrapper.java:153)
	at java.lang.Thread.run(Thread.java:722)
STATUS:Failed.Applet thread threw exception: java.lang.RuntimeException: test failed: HTMLs in following native formats are not transferred properly: text/html; class=java.io.InputStream; charset=UTF-8 text/html; class=java.lang.String; charset=UTF-8
result: Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: test failed: HTMLs in following native formats are not transferred properly: text/html; class=java.io.InputStream; charset=UTF-8 text/html; class=java.lang.String; charset=UTF-8


test result: Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: test failed: HTMLs in following native formats are not transferred properly: text/html; class=java.io.InputStream; charset=UTF-8 text/html; class=java.lang.String; charset=UTF-8
Comments
The test should be excluded for the jdk 7u releases we have reverted the behavior with JDK-2215341 by customer request. For jdk8 the test should pass.
18-03-2013

Test also fails on Solaris 10 x86: #section:applet ----------messages:(3/133)---------- command: applet HTMLTransferTest.html reason: User specified action: run applet HTMLTransferTest.html elapsed time (seconds): 2.536 ----------System.out:(0/0)---------- ----------System.err:(63/3278)---------- ===>Testing formats from the list: "text/html; class=java.io.InputStream; charset=UTF-8" "text/html; class=java.lang.String; charset=UTF-8" {PRODUCER: lost clipboard ownership ++received message: BA testing native HTML format "text/html; class=java.io.InputStream; charset=UTF-8"... }PRODUCER: lost clipboard ownership {PRODUCER: lost clipboard ownership ++received message: N testing native HTML format "text/html; class=java.lang.String; charset=UTF-8"... }PRODUCER: lost clipboard ownership {PRODUCER: lost clipboard ownership ++received message: Y }PRODUCER: lost clipboard ownership ========= Child VM System.err ======== {CONSUMER: start {CONSUMER: lost clipboard ownership received message: ============================================================ Put as text/html; class=java.io.InputStream; charset=UTF-8 ---------------------------------------------------------- Extract as text/html; class=java.io.InputStream; charset=UTF-8 in :The quick <font color='#78650d'>brown</font> <b>mouse</b> jumped over the lazy <b>cat</b>. out: transferred DATA is different from initial DATA ---------------------------------------------------------- Extract as text/html; class=java.lang.String; charset=UTF-8 in :The quick <font color='#78650d'>brown</font> <b>mouse</b> jumped over the lazy <b>cat</b>. out: transferred DATA is different from initial DATA ---------------------------------------------------------- format failed!!! ============================================================ }CONSUMER: lost clipboard ownership {CONSUMER: lost clipboard ownership received message: The quick <font color='#78650d'>brown</font> <b>mouse</b> jumped over the lazy <b>cat</b>. ============================================================ Put as text/html; class=java.lang.String; charset=UTF-8 ---------------------------------------------------------- Extract as text/html; class=java.io.InputStream; charset=UTF-8 in :The quick <font color='#78650d'>brown</font> <b>mouse</b> jumped over the lazy <b>cat</b>. out:The quick <font color='#78650d'>brown</font> <b>mouse</b> jumped over the lazy <b>cat</b>. ---------------------------------------------------------- Extract as text/html; class=java.lang.String; charset=UTF-8 in :The quick <font color='#78650d'>brown</font> <b>mouse</b> jumped over the lazy <b>cat</b>. out:The quick <font color='#78650d'>brown</font> <b>mouse</b> jumped over the lazy <b>cat</b>. ---------------------------------------------------------- format passed!!! ============================================================ }CONSUMER: lost clipboard ownership {CONSUMER: lost clipboard ownership received message: E }CONSUMER: start }CONSUMER: lost clipboard ownership ====================================== java.lang.RuntimeException: test failed: HTMLs in following native formats are not transferred properly: text/html; class=java.io.InputStream; charset=UTF-8 at HTMLTransferTest.start(HTMLTransferTest.java:131) at com.sun.javatest.regtest.AppletWrapper$AppletRunnable.run(AppletWrapper.java:153) at java.lang.Thread.run(Thread.java:722) STATUS:Failed.Applet thread threw exception: java.lang.RuntimeException: test failed: HTMLs in following native formats are not transferred properly: text/html; class=java.io.InputStream; charset=UTF-8 result: Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: test failed: HTMLs in following native formats are not transferred properly: text/html; class=java.io.InputStream; charset=UTF-8 test result: Failed. Execution failed: Applet thread threw exception: java.lang.RuntimeException: test failed: HTMLs in following native formats are not transferred properly: text/html; class=java.io.InputStream; charset=UTF-8
11-03-2013

This regression was uncovered after test fixing. There was a bug in test before 7u9b05, so this regression was not seen. The test bug had been fixed, so regression was found.
07-03-2013