[jboss-jira] [JBoss JIRA] (WFLY-3664) Exceptions during download of webstart libraries
Stuart Douglas (JIRA)
issues at jboss.org
Mon Feb 23 01:29:49 EST 2015
[ https://issues.jboss.org/browse/WFLY-3664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13042666#comment-13042666 ]
Stuart Douglas commented on WFLY-3664:
--------------------------------------
To repeat what I mentioned on the forum thread:
I just tested this, and I see the same issue, however it does not really appear to be a bug in Undertow but rather a bug in the JnlpDownloadServet.
The code in jnlp.sample.servlet.JnlpResource#getLastModified(ServletContext, java.net.URL, java.lang.String) does the following:
{code}
long getLastModified( ServletContext context, URL resource, String path )
{
long lastModified = 0;
URLConnection conn;
try
{
// Get last modified time
conn = resource.openConnection();
lastModified = conn.getLastModified();
}
catch ( Exception e )
{
// do nothing
}
{code}
In this case the URL instance is a file:// URL and the resulting connection is a FileURLConnection. When FileUrlConnection.getLastModified() is called the URLConnection implementation opens a FileInputStream. The only way to close this stream is to do: conn.getInputStream().close().
The only part of this that really has anything to do with Undertow is that it returns a file based URL, which is perfectly legitimate.
> Exceptions during download of webstart libraries
> ------------------------------------------------
>
> Key: WFLY-3664
> URL: https://issues.jboss.org/browse/WFLY-3664
> Project: WildFly
> Issue Type: Bug
> Components: Web (Undertow)
> Affects Versions: 8.1.0.Final
> Environment: Windows 7 (64bit), Windows Server 2012 R2 (64bit)
> Reporter: Markus Schwarz
> Assignee: Tomaz Cerar
> Priority: Minor
> Attachments: demo-src.zip, lsof.log.gz, server.log, server.log.gz
>
>
> I have a webstart application using the JnlpDownloadServlet. If the client cache is empty, launching the JNLP will download the libraries. The webstart application works as expected, but in the server logs there are many errors regarding download of the libraries.
> Just to mention: Not always the same libraries are listed with erros in the logs files. Sometimes I even got now exceptions.
> For my tests I used Wildfly 8.1.0.FINAL as well as a nightly build from 24. of July without any further changes of the configuration files (https://ci.jboss.org/hudson/job/WildFly-latest-master/).
> I tested it under Windows 7 and Windows Server 2012 R2. The demo contains an older JnlpDownloadServlet, but I tested it also with the one coming with JDK 7u65.
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the jboss-jira
mailing list