[Anthill-pro] No such file exception
Maxim Bruy
maxim.bruy at ctco.lv
Thu May 15 08:40:53 CDT 2008
Running this script
import java.io.InputStreamReader;
import java.io.FileInputStream;
String path = "/file.to.read";
BufferedReader in = new BufferedReader(new InputStreamReader(new
FileInputStream(path)));
String s;
while ((s = in.readLine()) != null) {
print "done";
}
in.close();
I'm getting exception like:
2008-05-15 16:31:54,946 ERROR 674931 0 0 - Exception:
2008-05-15 16:31:54,946 ERROR 674931 0 0 - org.apache.bsf.BSFException: The
application script threw an exception: java.io.FileNotFoundException:
/file.to.read (No such file or directory) BSF info: noFile at line: 0
column: columnNo
2008-05-15 16:31:54,946 ERROR 674931 0 0 -
com.urbancode.anthill3.runtime.scripting.ScriptException:
org.apache.bsf.BSFException: The application script threw an exception:
java.io.FileNotFoundException: /file.to.read (No such file or directory) BSF
info: noFile at line: 0 column: columnNo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20080515/2742d355/attachment.htm
More information about the Anthill-pro
mailing list