Hi,
Would you please try following code to check whether the access to files can work:
Java
for(File ff : new File("/tmp/Fonts").listFiles())
{
byte[] data = new byte[(int)ff.length()];
RandomAccessFile raf = new RandomAccessFile(ff.getAbsolutePath(), “r”);
raf.seek(data.length/2);
raf.read(data, 0, data.length/2);
raf.seek(0);
raf.read(data, 0, data.length/2);
raf.close();
}
mshakeel.faiz:
Hi,
Would you please try following code to check whether the access to files can work:
Java
for(File ff : new File("/tmp/Fonts").listFiles())
{
byte[] data = new byte[(int)ff.length()];
RandomAccessFile raf = new RandomAccessFile(ff.getAbsolutePath(), "r");
raf.seek(data.length/2);
raf.read(data, 0, data.length/2);
raf.seek(0);
raf.read(data, 0, data.length/2);
raf.close();
}
it worked fine, no errors
Hi,
We have built a debug version to print some details of the process(by System.out.println()) and hope that can help us to figure the issue out. Please use this debug version to run your application and send us back the output. Thank you.
So I have to run my class from a command line and copy the output?
Hi,
Did you test whether you can reproduce such kind of issue by running your program from command line? If you can reproduce this issue at command line, it will be easier than in oracle environment for you and us to trace the issue. If the issue cannot be reproduced by command line, we are afraid we need a way to check the debug messages when you run your application in oracle environment(Hope you can find a way to dump the output of System.out, otherwise maybe we need to change the debug code to save the debug messages into a file of your local file system).