https://issues.apache.org/bugzilla/show_bug.cgi?id=56785
--- Comment #3 from Juergen Sussner <juergen.suss...@gmail.com> --- Hello, You are right, a standart tomcat did not seem to have this issue, it somehow depends on the applicaitons we had installed. Sorry my fault. i'll try to investigate. There has to be some sort of application setup / setting that triggers this ContextConfig.processAnnotations. Annyway. i didt a short test programm to show where the nullpointer came from: import java.io.File; public class FilePermissionCheck { public static void main(String[] args) { if (args.length != 1) { System.out.println("Usage: FilePermissionCheck <fileNameWithPath>"); System.exit(-1); } String fileName = args[0]; File f = new File(fileName); System.out.println("isDirectory() = " + f.isDirectory()); System.out.println("canRead() = " + f.canRead()); System.out.println("canWrite() = " + f.canWrite()); System.out.println("canExecute() = " + f.canExecute()); System.out.println("listFiles() = " + f.listFiles()); } } doing so on a SLES10 system results in the following: ## /tmp/user.dir> ls -la total 24 drwxr-xr-x 3 suweb users 4096 Jul 31 07:27 . drwxrwxrwt 37 root root 12288 Jul 31 07:35 .. -rw-r--r-- 1 suweb users 1350 Jul 31 07:27 FilePermissionCheck.class drwx------ 2 root root 4096 Jul 31 06:58 root ## /tmp/user.dir> id uid=55052(suweb) gid=100(users) groups=100(users),1001(web) ## /tmp/user.dir> java -version java version "1.7.0" Java(TM) SE Runtime Environment (build pxa6470sr6fp1-20140108_01(SR6 FP1)) IBM J9 VM (build 2.6, JRE 1.7.0 Linux amd64-64 Compressed References 20140106_181350 (JIT enabled, AOT enabled) J9VM - R26_Java726_SR6_20140106_1601_B181350 JIT - r11.b05_20131003_47443.02 GC - R26_Java726_SR6_20140106_1601_B181350_CMPRSS J9CL - 20140106_181350) JCL - 20140103_01 based on Oracle 7u51-b11 ## /tmp/user.dir> java FilePermissionCheck . isDirectory() = true canRead() = true canWrite() = true canExecute() = true listFiles() = [Ljava.io.File;@22cf6604 ## /tmp/user.dir> java FilePermissionCheck root isDirectory() = true canRead() = false canWrite() = false canExecute() = false listFiles() = null -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org