[JHV 2.0] Cannot write Log-Files on Windows

Bug #595394 reported by Markus Langenberg
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
JHelioviewer
Fix Released
Undecided
Andre Dau

Bug Description

Using the new logging system, I cannot write log files on Windows. The reason is quite simpel: On Windows, colon may not be used in filenames:

log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: C:\Users\Markus\JHelioviewer\Logs\jhv.2010-06-17T09:32:54Z.log (Die Syntax für den Dateinamen, Verzeichnisnamen oder die Datenträgerbezeichnung ist falsch)
 at java.io.FileOutputStream.openAppend(Native Method)
 at java.io.FileOutputStream.<init>(Unknown Source)
 at java.io.FileOutputStream.<init>(Unknown Source)
 at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
 at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
 at org.helioviewer.base.logging.TimestampRollingFileAppender.activateOptions(TimestampRollingFileAppender.java:112)
 at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
 at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
 at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
 at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:809)
 at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:735)
 at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:615)
 at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:502)
 at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:428)
 at org.helioviewer.base.logging.LogSettings.<init>(LogSettings.java:177)
 at org.helioviewer.base.logging.LogSettings.init(LogSettings.java:82)
 at org.helioviewer.jhv.JavaHelioViewer.main(JavaHelioViewer.java:41)

Changed in jhelioviewer:
assignee: nobody → Andre Dau (andre-dau)
Revision history for this message
Andre Dau (andre-dau) wrote :

Thanks for the hint, I changed it. In order to apply the changes you have to remove the old settings file in Logs/Settings

Changed in jhelioviewer:
status: New → In Progress
Andre Dau (andre-dau)
Changed in jhelioviewer:
status: In Progress → Fix Committed
Changed in jhelioviewer:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.