Skip to content

Error "Timed out while retrieving the attached javadoc...." #176

@joewood

Description

@joewood

While typing in the editor using regular packages I see this error. It appears that the Java extension is trying to access the JavaDoc data from the internet, but it isn't respecting the configured proxy setting in VSCode.

Environment

Operating System: RHEL2.7
JDK version:1.8
Visual Studio Code version: 1.10.2
Java extension version: 0.1.0
Steps To Reproduce

Type any code that uses the standard packages:

java.util.Collections.

I see the following error in the "Output Window" For "Language Support for Java"

[Error - 12:24:14 PM] Mar 31, 2017 8:39:36 AM Unable to resolve compilation
Timed out while retrieving the attached javadoc for Collections [in Collections.class [in java.util [in /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/jre/lib/rt.jar]]] 
Java Model Exception: Java Model Status [Timed out while retrieving the attached javadoc for Collections [in Collections.class [in java.util [in /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.121-0.b13.el7_3.x86_64/jre/lib/rt.jar]]] ]
	at org.eclipse.jdt.internal.core.JavaElement.getURLContents(JavaElement.java:909)
	at org.eclipse.jdt.internal.core.BinaryType.getJavadocContents(BinaryType.java:1039)
	at org.eclipse.jdt.internal.core.BinaryMethod.getAttachedJavadoc(BinaryMethod.java:717)
	at org.eclipse.jdt.ls.core.internal.javadoc.JavadocContentAccess.getHTMLContentReader(JavadocContentAccess.java:218)
	at org.eclipse.jdt.ls.core.internal.handlers.CompletionResolveHandler.resolve(CompletionResolveHandler.java:119)
	at org.eclipse.jdt.ls.core.internal.handlers.JDTLanguageServer.lambda$2(JDTLanguageServer.java:203)
	at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1590)
	at java.util.concurrent.CompletableFuture$AsyncSupply.exec(CompletableFuture.java:1582)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

My user settings configured my proxy as follows - which works fine for all other operations:

    "http.proxyStrictSSL": false,
    "http.proxy": "http://mycorpproxy",

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions