Details
Description
CachedFileEntityResolver could throw the following exception:
Server returned HTTP response code: 503 for URL: http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
To reproduce this error, just try the following snippet:
public static void main( String[] args )
throws Exception
{
new URL( "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" ).openStream();
}
Issue Links
| This issue is duplicated by: | ||||
| DOXIA-344 | Should not download common HTML DTDs |
|
|
|
It seems to be a recent change to the w3 servers, some other projects have this problem:
https://bamboo.developer.atlassian.com/build/viewBuildResultsFailedTests.action;jsessionid=E232501DDF6CE20E5AB1ACF2A98C0D0D?buildKey=USGTRK-STABLE&buildNumber=73
http://www.nabble.com/Why-does-TestNodeWalker-keep-failing--to23995758.html
A workaround could be to use HttpClient.
One more reference:
http://www.w3.org/blog/systeam/2008/02/08/w3c_s_excessive_dtd_traffic