Bug 574369 - PackageJavadocTests.testFailToAccessAttachedJavadoc fails since I20210621-1800
Summary: PackageJavadocTests.testFailToAccessAttachedJavadoc fails since I20210621-1800
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.21   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard: stalebug
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-22 02:07 EDT by Andrey Loskutov CLA
Modified: 2023-06-16 16:34 EDT (History)
1 user (show)

See Also:


Attachments
workspace log (70.42 KB, text/plain)
2021-06-22 02:11 EDT, Andrey Loskutov CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Loskutov CLA 2021-06-22 02:07:15 EDT
https://download.eclipse.org/eclipse/downloads/drops4/I20210621-1800/testresults/html/org.eclipse.jdt.ui.tests_ep421I-unit-cen64-gtk3-java11_linux.gtk.x86_64_11.html

Looks like we are failing to get expected javadoc from Oracle?

java.lang.AssertionError: <html><head><style CHARSET="ISO-8859-1" TYPE="text/css">/* Font definitions */
html { font-family: 'Sans',sans-serif; font-size: 10pt; font-style: normal; font-weight: normal; }
body, h1, h2, h3, h4, h5, h6, p, table, td, caption, th, ul, ol, dl, li, dd, dt { font-size: 1em; }
pre { font-family: monospace; }

/* Margins */
body { overflow: auto; margin-top: 0px; margin-bottom: 0.5em; margin-left: 0.3em; margin-right: 0px; }
h1 { margin-top: 0.3em; margin-bottom: 0.04em; }
h2 { margin-top: 2em; margin-bottom: 0.25em; }
h3 { margin-top: 1.7em; margin-bottom: 0.25em; }
h4 { margin-top: 2em; margin-bottom: 0.3em; }
h5 { margin-top: 0px; margin-bottom: 0px; }
p { margin-top: 1em; margin-bottom: 1em; }
pre { margin-left: 0.6em; }
ul { margin-top: 0px; margin-bottom: 1em; margin-left: 1em; padding-left: 1em;}
li { margin-top: 0px; margin-bottom: 0px; }
li p { margin-top: 0px; margin-bottom: 0px; }
ol { margin-top: 0px; margin-bottom: 1em; margin-left: 1em; padding-left: 1em; }
dl { margin-top: 0px; margin-bottom: 1em; }
dt { margin-top: 0px; margin-bottom: 0px; font-weight: bold; }
dd { margin-top: 0px; margin-bottom: 0px; }

/* Styles and colors */
a:link { color: #2a76c6; } /* get's replaced with actual color */
a:hover { color: #1d538b; } /* get's replaced with actual color */
a:visited { text-decoration: underline; }
a.header:link { text-decoration: none; color: #000000 }
a.header:visited { text-decoration: none; color: #000000 }
a.header:hover { text-decoration: underline; color: #1d538b; } /* get's replaced with actual color */
h4 { font-style: italic; }
strong { font-weight: bold; }
em { font-style: italic; }
var { font-style: italic; }
th { font-weight: bold; }

/* Workarounds for new Javadoc stylesheet (1.7) */
ul.blockList li.blockList, ul.blockListLast li.blockList {
list-style:none;
}
ul.blockList ul.blockList ul.blockList ul.blockList li.blockListLast {
list-style:none;
}
</style></head><body text="#000000" bgcolor="#ffffff"><h5><div style='word-wrap: break-word; position: relative; margin-left: 20px; padding-top: 2px; '><a href='eclipse-open:%E2%98%82=TestSetupProject/%5C/home%5C/jenkins%5C/agent%5C/workspace%5C/ep421I-unit-cen64-gtk3-java11%5C/workarea%5C/I20210621-1800%5C/eclipse-testing%5C/test-eclipse%5C/eclipse%5C/plugins%5C/org.eclipse.jdt.ui.tests_3.14.0.v20210618-1953%5C/testresources%5C/rtstubs15.jar=/javadoc_location=/https:%5C/%5C/docs.oracle.com%5C/javase%5C/6%5C/docs%5C/apii%5C/=/%3Cjava.math'><!--[if lte IE 6]><![if gte IE 5.5]>
<span alt='Open Declaration' style="border:none; position: absolute; width: 16px; height: 16px; left: -21px; filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='file:/home/jenkins/agent/workspace/ep421I-unit-cen64-gtk3-java11/workarea/I20210621-1800/eclipse-testing/test-eclipse/eclipse/jdt_folder/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/0.png')"></span>
<![endif]><![endif]-->
<!--[if !IE]>-->
<img alt='Open Declaration' style='border:none; position: absolute; width: 16px; height: 16px; left: -21px; ' src='file:/home/jenkins/agent/workspace/ep421I-unit-cen64-gtk3-java11/workarea/I20210621-1800/eclipse-testing/test-eclipse/eclipse/jdt_folder/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/0.png'/>
<!--<![endif]-->
<!--[if gte IE 7]>
<img alt='Open Declaration' style='border:none; position: absolute; width: 16px; height: 16px; left: -21px; ' src='file:/home/jenkins/agent/workspace/ep421I-unit-cen64-gtk3-java11/workarea/I20210621-1800/eclipse-testing/test-eclipse/eclipse/jdt_folder/.metadata/.plugins/org.eclipse.jdt.ui/jdt-images/0.png'/>
<![endif]-->
</a><a class='header' href='eclipse-javadoc:%E2%98%82=TestSetupProject/%5C/home%5C/jenkins%5C/agent%5C/workspace%5C/ep421I-unit-cen64-gtk3-java11%5C/workarea%5C/I20210621-1800%5C/eclipse-testing%5C/test-eclipse%5C/eclipse%5C/plugins%5C/org.eclipse.jdt.ui.tests_3.14.0.v20210618-1953%5C/testresources%5C/rtstubs15.jar=/javadoc_location=/https:%5C/%5C/docs.oracle.com%5C/javase%5C/6%5C/docs%5C/apii%5C/=/%3Cjava'>java</a>.math</div></h5><br><p><em>Note: An exception occurred while getting the Javadoc. See log for details.</em></body></html>
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.assertTrue(Assert.java:42)
at org.eclipse.jdt.ui.tests.hover.PackageJavadocTests.testFailToAccessAttachedJavadoc(PackageJavadocTests.java:354)
Comment 1 Andrey Loskutov CLA 2021-06-22 02:11:24 EDT
Created attachment 286652 [details]
workspace log

Workspace log contains following:

Caused by: java.io.IOException: Server returned HTTP response code: 502 for URL: https://docs.oracle.com/pls/rdman/handle404?X_ORCL_404path=%2fjavase%2f6%2fdocs%2fapii%2fjava%2fmath%2fpackage-summary.html
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1924)
	at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
	at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527)
	at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:334)
	at org.eclipse.jdt.internal.core.JavaElement.getURLContents(JavaElement.java:877)
Comment 2 Andrey Loskutov CLA 2021-06-22 02:14:15 EDT
Interestingly, the test succeeds locally.
Did we had a temporary oracle server outage?

Fabrice, since you've created the tests, could you please check this?
Comment 3 Fabrice Tiercelin CLA 2021-06-24 12:53:40 EDT
I don't know much this code. I only applied automatic kind of formatting on it.
Comment 4 Eclipse Genie CLA 2023-06-16 16:34:38 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.