This content has been marked as final. Show 5 replies
Platform? File system? Were either of the files share-mounts?1 person found this helpful
EJP wrote:Pretty outdated jrockit90_150_10 running weblogic 9.2, both read and write files are on shared folders...
Platform? File system? Were either of the files share-mounts?
I have a gap feeling that this may be a jrockit bug... But would prefer to workaround the code rather than upgrade jrockit at this stage...
Operating system?1 person found this helpful
I would have to add my view based on many years of unwanted experience that any application that uses shared folders for any purpose is really asking for trouble.
EJP wrote:windows server 2003 as weblogic host, the other servers are probably windows as well...
I would have to add my view based on many years of unwanted experience that any application that uses shared folders for any purpose is really asking for trouble.Totally agree, mate... This is legacy stuff and I'm planning to upgrade this as soon as I have the chance...
By the way, I figured out the root cause... file permissions... The weird stuff is... 1. The error message has nothing to do with permissions... 2. The code above is surrounded with an if(sourceFile.canRead()) that's answering true... 3. I can browse the directory and create files there... But the truth is I can NOT read the file itself...
I passed the problem on to the server guys, now they are struggling because according what they see there the user is suppose to have full rights on those folders/files... I guess windows server file permissions are that straight forward, are they?
Found this bug... 6203387 : File.canRead() reports wrong value (win)
It seems like File.canRead() just doesn't work for windows NTFS... And there won't be a fix for that...