Hi,
We shouldn't crash with an NPE, regardless, but out of curiosity, are
there actually any files in your docBase?

Yoav Shapira http://www.yoavshapira.com


>-----Original Message-----
>From: James Clark [mailto:[EMAIL PROTECTED]
>Sent: Friday, October 15, 2004 1:51 PM
>To: [EMAIL PROTECTED]
>Subject: null array in FileDirContext?
>
>I just added the following line to my <Host> in server.xml:
>
>   <Context path="/diveport-cache-servlet"
>docBase="C:\Work\Dev\diveport-cache\dist\diveport-cache-servlet"/>
>
>And now Tomcat crashes upon startup, with the following in
'stdout.log':
>
>java.lang.reflect.InvocationTargetException
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>Caused by: java.lang.NullPointerException
>     at java.util.Arrays.sort(Arrays.java:1078)
>     at
>org.apache.naming.resources.FileDirContext.list(FileDirContext.java:885
)
>
>This happens in both Tomcat 5.0.29-beta and 5.0.25, under Windows XP,
>using Sun's Java SDK 1.4.2_05.
>
>Can anyone help with this problem?
>
>
>-jamie
>
>
>
>(full stack trace below)
>
>
>
>
>java.lang.reflect.InvocationTargetException
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at
>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
va:3
>9)
>     at
>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
rImp
>l.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:324)
>     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
>     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
>Caused by: java.lang.NullPointerException
>     at java.util.Arrays.sort(Arrays.java:1078)
>     at
>org.apache.naming.resources.FileDirContext.list(FileDirContext.java:885
)
>     at
>org.apache.naming.resources.FileDirContext.listBindings(FileDirContext.
java
>:335)
>     at
>org.apache.naming.resources.ProxyDirContext.listBindings(ProxyDirContex
t.ja
>va:509)
>     at
>org.apache.catalina.util.ExtensionValidator.validateApplication(Extensi
onVa
>lidator.java:178)
>     at
>org.apache.catalina.core.StandardContext.start(StandardContext.java:419
1)
>     at
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
>     at
org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
>     at
>org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
>     at
>org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
>     at
>org.apache.catalina.core.StandardService.start(StandardService.java:480
)
>     at
>org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
>     at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
>     ... 6 more
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to