JDK-8235744 : PIT: test/jdk/javax/swing/text/html/TestJLabelWithHTMLText.java times out in linux-x64
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8,11,14,15
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2019-12-11
  • Updated: 2020-09-10
  • Resolved: 2019-12-13
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 11 JDK 13 JDK 14 JDK 15 JDK 8 Other
11.0.7-oracleFixed 13.0.4Fixed 14 b28Fixed 15Fixed 8u251Fixed openjdk8u252Fixed
Description
Newly added test 
test/jdk/javax/swing/text/html/TestJLabelWithHTMLText.java
sometimes times out in ubuntu 18.04 linux

"MainThread" #14 prio=5 os_prio=0 cpu=87.07ms elapsed=120.15s tid=0x00007fbf642a2000 nid=0x699c in Object.wait()  [0x00007fbf2342b000]
   java.lang.Thread.State: WAITING (on object monitor)
	at java.lang.Object.wait(java.base@14-internal/Native Method)
	- waiting on <0x000000071661ac00> (a java.awt.EventQueue$1AWTInvocationLock)
	at java.lang.Object.wait(java.base@14-internal/Object.java:321)
	at java.awt.EventQueue.invokeAndWait(java.desktop@14-internal/EventQueue.java:1361)
	- locked <0x000000071661ac00> (a java.awt.EventQueue$1AWTInvocationLock)
	at java.awt.EventQueue.invokeAndWait(java.desktop@14-internal/EventQueue.java:1342)
	at javax.swing.SwingUtilities.invokeAndWait(java.desktop@14-internal/SwingUtilities.java:1480)
	at TestJLabelWithHTMLText.main(TestJLabelWithHTMLText.java:40)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@14-internal/Native Method)
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@14-internal/NativeMethodAccessorImpl.java:62)
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@14-internal/DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(java.base@14-internal/Method.java:564)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
Comments
Fix request (13u) Requesting backport to 13u for parity with 11u, applies cleanly.
27-05-2020

Allowing for 8u252 as 8230235 is allowed and this is just a one-line test fix.
10-03-2020

Fix Request (8u): This is a testbug follow up after JDK-8230235. It's also a bug fixed in Oracle JDK 8u251. Test only change => low risk. Patch applies clean after unshuffeling.
09-03-2020

Fix Request (11u) This is the testbug followup after JDK-8230235. It keeps codebases in sync (I see 11.0.7-oracle). Patch applies cleanly to 11u. Affected test keeps passing. Patched 11u passes tier1, tier2, tier3 (including headful) tests.
20-01-2020

URL: https://hg.openjdk.java.net/jdk/jdk14/rev/ccdd7713f14a User: pbansal Date: 2019-12-13 06:39:02 +0000
13-12-2019

Issue: The test test/jdk/javax/swing/text/html/TestJLabelWithHTMLText.java on linux-64. The test was added under https://bugs.openjdk.java.net/browse/JDK-8230235. The test has a JLabel and a html text with empty image tag. The client property ���DocumentBaseKey��� is set on the JLabel with value ���https://www.google.com/���. If the test is run on a linux machine on a network which requires proxy settings to access internet, the test is timed out if no proxy is set for java. The test just keeps trying to access the url set in ���DocumentBaseKey��� and as it is set to ���https://www.google.com/���, it requires a proxy. I think the test passes on mach5 system as no system proxy is required there to access internet there. Fix: The fix is to change the ���DocumentBaseKey��� value to a URL where proxy is not required even if the network needs a proxy to access internet. This can be localhost, some local directory url etc. In the fix, localhost is used. I have verified that after making this change, the test passes with the fix done in https://bugs.openjdk.java.net/browse/JDK-8230235 and fails without the fix.
12-12-2019