You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Baptiste Gaillard (JIRA)" <ui...@incubator.apache.org> on 2010/03/18 14:51:27 UTC

[jira] Created: (UIMA-1746) Lock with org.apache.uima.utils.XmlInputSource (uimaj-core)

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.3, 2.2.2
         Environment: Tested on Windows, but should appear also on UNIX platforms.
            Reporter: Baptiste Gaillard
            Priority: Minor


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.


[jira] Updated: (UIMA-1746) Lock with org.apache.uima.utils.XmlInputSource (uimaj-core)

Posted by "Baptiste Gaillard (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Baptiste Gaillard updated UIMA-1746:
------------------------------------

    Attachment: UIMA-1746-TEST.zip

Eclipse project with an unit test class to illustrate the bug. 

Just comment / uncomment line 77 in the org.apache.uima.util.XmlInputSourceTest class to see the problem. 


> 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
>         Attachments: UIMA-1746-TEST.zip
>
>   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.


[jira] Updated: (UIMA-1746) Lock with org.apache.uima.utils.XmlInputSource (uimaj-core)

Posted by "Baptiste Gaillard (JIRA)" <ui...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/UIMA-1746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Baptiste Gaillard updated UIMA-1746:
------------------------------------

    Attachment: UIMA-1746.patch

Patch which fix the bug

> 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
>         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.