[ https://issues.apache.org/jira/browse/UIMA-1746?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12922306#action_12922306 ]
Marshall Schor commented on UIMA-1746: -------------------------------------- Note: the fix I did doesn't check to see if the url connection is a "jar" type - it just sets this flag. This might make it work for "file" connections (but I don't know if it's broken for those), and it might "slow down" repeated accessing of the same http: URLs, although, if the URL contents might change, perhaps this also should not be cached, anyways. > Lock with org.apache.uima.utils.XmlInputSource (uimaj-core) > ----------------------------------------------------------- > > Key: UIMA-1746 > URL: https://issues.apache.org/jira/browse/UIMA-1746 > Project: UIMA > Issue Type: Bug > Components: Core Java Framework > Affects Versions: 2.2.2, 2.3 > Environment: Tested on Windows, but should appear also on UNIX > platforms. > Reporter: Baptiste Gaillard > Priority: Minor > Fix For: 2.3.1SDK > > Attachments: UIMA-1746-TEST.zip, UIMA-1746.patch > > Original Estimate: 1h > Remaining Estimate: 1h > > See: http://uima.markmail.org/thread/4h7ljnaz26v4jicl > XmlInputSource.close() locks the JARs where a JARUrlConnection is used. > This bug is described in the SUN bug database: > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4386865 > To fix that we only have to insert the following lines before each > 'URL.openStream()' call: > URLConnection urlConnection = mURL.openConnection(); > if(urlConnection instanceof JarURLConnection) > { > ((JarURLConnection) mURL.openConnection()).setDefaultUseCaches(false); > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.