United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 4729230 loging to "TEMP" file does not work
4729230 : loging to "TEMP" file does not work

Details
Type:
Bug
Submit Date:
2002-08-09
Status:
Resolved
Updated Date:
2003-04-12
Project Name:
JDK
Resolved Date:
2002-10-07
Component:
deploy
OS:
windows_nt
Sub-Component:
webstart
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.2.0
Fixed Versions:
1.4.2

Related Reports

Sub Tasks

Description
Console.java implementa a function whereby if the log to filename is "TEMP",
then a new unique temp file will be created for each javaws process started, and
is supposed to contain the logging output.
Unfortunately in 1.0.1 and 1.2 the file is created but no output is put in it.

                                    

Comments
SUGGESTED FIX


in initFileLogging():
138c138,140
< 		    _logFile=File.createTempFile("JaWS",".log");
---
> 		    _logFile=File.createTempFile("javaws",".log");
> 		    _filePrintStream = new PrintStream(new FileOutputStream(_logFile));
> 		    msg = Resources.getString("console.logfilemsg",_logFile.toString());
                                     
2004-08-31
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis
mantis-b02

FIXED IN:
mantis
mantis-b02

INTEGRATED IN:
mantis
mantis-b02


                                     
2004-08-31
EVALUATION

caused by code in initFileLogging() failing to create _filePrintStream if name is "TEMP". see suggested fix
###@###.### 2002-08-09
                                     
2002-08-09



Hardware and Software, Engineered to Work Together