Hi,

There is a bug in crimson jar(1.1.3) in the following file.

org\apache\crimson\parser\InputEntity.java, in the method

//        public void init(InputSource in, String name, InputEntity stack,
//               boolean isPE) throws IOException, SAXException


//reader = XmlReader.createReader(url.openStream()); // line no 208

but url.openStream() method takes a lock on the url, if url is a file url
we can not delete this till JVM exits. we can suppress this locking by
doing so

//----------------------
URLConnection urlConnection = url.openConnection();
urlConnection.setUseCaches(false);
inputStream = urlConnection.getInputStream();
reader = XmlReader.createReader(inputStream);
//--------------------------

if you want me to send the patch file, pl let me know.

regards,
Sato.




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to