[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Temp Directory is null  XML
Forum Index -> Development
Author Message
heyl

Power User

Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline

Hi Björn,

how can it happen that Params.getWebappTempDirectoryName() returns null?
Are there any circumstances that may lead to it?

The problem occured "out of nowhere" on one of our test Tomcats, and after restarting the Tomcat it was ok again.
It does not look like a memory error.

Thanks for any hints....

Frauke

CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

Hi Frauke,

the method is a direct pass through of Servlet methods, i.e. no own logic involved.

Code:
     public static String getServletTempDirectory()
     {
         File f = (File)s_servletContext.getAttribute("javax.servlet.context.tempdir");
         String result = f.getAbsolutePath();
         result = result.replace('\\','/');
         if (!result.endsWith("/")) result = result + "/";
         return result;
     }
 


Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team