Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-1746

Lock with org.apache.uima.utils.XmlInputSource (uimaj-core)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.2.2, 2.3
    • 2.3.1SDK
    • Core Java Framework
    • None
    • Tested on Windows, but should appear also on UNIX platforms.

    Description

      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); }

      Attachments

        1. UIMA-1746.patch
          2 kB
          Baptiste Gaillard
        2. UIMA-1746-TEST.zip
          208 kB
          Baptiste Gaillard

        Activity

          People

            Unassigned Unassigned
            bouba Baptiste Gaillard
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified