We just solved an issue here where a jar file was only readable by root on a unix server and our web application was trying to get to it as "other"
It was hard to solve because upon server restart, the first attempt to access it threw an error that contained: at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Caused by: java.security.PrivilegedActionException: java.util.zip.ZipException: Permission denied at java.security.AccessController.doPrivileged(Native Method) ... 44 more
subsequent attempts gave a different error that did not show the permission denied or anything else useful, just a noClassDefFound error.
It seems like on the first attempt the inaccessible file gets partially opened or something and the java environment keeps some memory of that. Then, subsequent visits don't see it as a permission error.
my reason for posting is to see if someone can explain this for me.
Environment is weblogic server, but it is using plain sun JVM
Probably some kind of performance optimization the VM is doing...
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus