fetch external resource fails with HTTP 406
IDEA cant' fetch the following schema
http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd
Sun server returns a 406 code (not acceptable).
This url works fine when using a browser.
I sniffed the http request made by IDEA, and i guess text/xml should be added to the acceptable formats.
The error message comes from my corporation proxy, so i do not know if it is jsut forwarding the message it gets from the sun server or if the problem is from the proxy itself.
Anyone seen this already ?
GET http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd HTTP/1.1
User-Agent: Java/1.5.0_11
Host: java.sun.com
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Proxy-Connection: keep-alive
HTTP/1.1 406 Not Acceptable
Cache-Control: no-cache
Pragma: no-cache
Content-Type: text/html; charset=utf-8
Proxy-Connection: close
Connection: close
Content-Length: 513
....
..
.. ..Message du serveur de cache BCPC11
..Votre requ..te utilise un protocole () invalide.
..
..Veuillez r..essayer ult..rieurement. .. .. .. ..
Please sign in to leave a comment.
Thibaut wrote:
But it already accepts /, so that shouldn't affect anything, right?
But this seems to try to find something called
"http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" (essentially a
concatenation of two URLs) which doesn't exist.
right but this request was created by IDEA when choosing the "fetch external resource" quickfix on
]]>
(triggering alt-enter on "http://java.sun.com/xml/ns/j2ee/application_1_4.xsd" token)
Indeed exception shown by idea is "java.io.IOException: Server returned HTTP response code: 406 for URL: http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"
Please submit a request
'xmlns:schemaLocation' should be replaced with 'xsi:schemaLocation'
Thibaut wrote:
--
Best regards,
Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"