Summary: | NullPointerException from ProxyDirContext | ||
---|---|---|---|
Product: | Tomcat 4 | Reporter: | Daniel Sheppard <daniels> |
Component: | Catalina | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 4.1.29 | ||
Target Milestone: | --- | ||
Hardware: | Other | ||
OS: | AIX |
Description
Daniel Sheppard
2003-11-10 23:15:35 UTC
Were you ever able to repeat this or was it a one off? It was a one-off occurence Without a repeatable test case this is going to be very difficult / impossible to track down. Since it was a one off, I am going to resolve this bug as a WONTFIX. I've recently ran into this bug. Restarting tomcat causes the problem to go away for a while. I've included a stacktrace with line numbers: Currently my solution is to increase the amount of memory the VM has available with the -Xmx -Xms options. I'm tempted to look at the source now to see what is really going on. Caused by: java.lang.NullPointerException at org.apache.naming.resources.ProxyDirContext.cacheLoad (ProxyDirContext.java:1534) at org.apache.naming.resources.ProxyDirContext.cacheLookup (ProxyDirContext.java:1412) at org.apache.naming.resources.ProxyDirContext.lookup (ProxyDirContext.java:300) at org.apache.catalina.loader.WebappClassLoader.findResourceInternal (WebappClassLoader.java:1730) at org.apache.catalina.loader.WebappClassLoader.findClassInternal (WebappClassLoader.java:1619) at org.apache.catalina.loader.WebappClassLoader.findClass (WebappClassLoader.java:968) at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1409) at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java:1289) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) (My code that doesn't explicitly refer ClassLoader or Class) Got the source for the tomcat server we are running. 4.1.24. The line that is causing the problem is int n = is.read(b, pos, length - pos); Since it is a NullPointerException I would assume that the inputstream is null for whatever reason. |