[
https://issues.apache.org/jira/browse/XALANJ-2558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13427947#comment-13427947
]
Amit Lodha commented on XALANJ-2558:
------------------------------------
Thanks Gary.
issue has not been identified with xalan version, it has been identifed with
Filename:
FileURLConnection.java
http://www.docjar.com/html/api/sun/net/www/protocol/file/FileURLConnection.java.html
202 for (int i = 0 ; i < files.size() ; i++) {
203 String fileName = files.get(i);
204 buf.append(fileName);
205 buf.append("\n");
206 }
207 // Put it into a (default) locale-specific byte-stream.
208 is = new
ByteArrayInputStream(buf.toString().getBytes());
209 } else {
210 throw new FileNotFoundException(filename);
211 }
at line 208 "is" input stream is open that need to be closed in finally block.
and the source jar that is identified is xerces.jar
Error logs:
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at
sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
at
sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown
Source)
at
org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
> (Too many open files (errno:24))
> --------------------------------
>
> Key: XALANJ-2558
> URL: https://issues.apache.org/jira/browse/XALANJ-2558
> Project: XalanJ2
> Issue Type: Bug
> Security Level: No security risk; visible to anyone(Ordinary problems in
> Xalan projects. Anybody can view the issue.)
> Components: Xalan
> Affects Versions: 2.7
> Environment: Unix OS, Java6
> Reporter: Amit Lodha
> Assignee: Steven J. Hathaway
> Priority: Blocker
>
> we have recived the error
> (Too many open files (errno:24))
> at
> org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:505)
> and it seems that there is an open FileInputStream which is not closed in
> finally block.
> Error is Frequent and normally occur under high load.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]