I'm getting this error for long time at different places now at this place i'm not able to find any open stream which is not closed:
<stackTrace><![CDATA[java.io.IOException: Too many open files
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.><init>(Unknown Source)
at com.i2.xcore.util.ClassPath.getInputStream(ClassPath.java:156)
at com.i2.xcore.xrules.xmlform.LoadXMLFileStatement.execute(LoadXMLFileStatement.java:33)
At line 33 of this method i have:
public void execute(RuleContext context) throws XcoreException
{
InputStream ip = null;
try
{
String fileName = (String) rhs_.getValue(context, false) ;
ClassPath cp = ClassPath.getDefaultClassPath() ;
<line 33> ip = cp.getInputStream(fileName) ;
XMLform ret = XMLform.toXML(ip) ;
lhs_.setValue(context, ret) ;
ip.close() ;
}
Can anyone help me out to get rid of this problem