Posted: Tue Dec 06, 2005 8:16 pm Post subject: Different behaviour of java code [Solved]
Centurion
Joined: 27 Apr 2003 Posts: 124
Hi Gurus,
When I try the following code in two different scenarios, I get two different responses.
Java code: new File(files[i].getName()).length()
Using the code in a standalone java program, it returns me the actual size of the file.
Calling this code from a Compute node: Value returned is '0'.
Similary the last modified date
But the name of the file is returned properly in both the cases(files[i].getName()). Also, when I insert a SOPL (System.out.println) statement, where the output is written?
Any inputs on this is much appreciated.
Thanks in advance,
Pranava.
Hi Gurus,
Problem is solved once the new file object was created by passing parent name and file name. Otherwise broker is looking for the file in bin directory.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum