Bug 202785

Summary: [classpath] Frysk - if user data is defined in $HOME/.frysk - debug messages are displayed when GUI is started
Product: Red Hat Enterprise Linux 5 Reporter: Len DiMaggio <ldimaggi>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED CURRENTRELEASE QA Contact: Len DiMaggio <ldimaggi>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.0CC: ezannoni, mjw, pmuldoon, tromey
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 4.1.1-24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-27 05:58:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Len DiMaggio 2006-08-16 14:03:43 UTC
Description of problem:
Frysk - if user data is defined in $HOME/.frysk - debug messages are displayed
when GUI is started

Version-Release number of selected component (if applicable):
RHEL5-Server-20060806.1

How reproducible:
100%

Steps to Reproduce:
1. Run the Frysk GUI, create a session, save it, exit Frysk
2. Re-enter Frysk GUI
  
Actual results:

[root@rocco frysk]# frysk
Found subnode: /theManager
Found subnode: /theManager/logWindow
Found subnode: /theManager/mainWindow
Key: size.width Value: 640
Key: size.height Value: 480
Key: position.y Value: 272
Key: position.x Value: 320
Found subnode: /theManager/mainWindow/allProcWidget
Key: vPane.position Value: 200

Expected results:
Debug messages should not be displayed

Additional info:

Comment 1 Phil Muldoon 2006-08-16 14:10:25 UTC
Those are not debug messages, but rather output from
java.utils.prefs.Preferences when a preference file is read and parsed. There
appears to be no way to turn these off (they are not output by Frysk), when I
looked at the issue before.

Comment 2 Andrew Cagney 2006-08-16 14:24:23 UTC
Something to do with a logger?

Long term, frysk should use gconf to pick up its configuration information
making it compatible with the rest of gnome.


Comment 3 Phil Muldoon 2006-08-16 14:27:38 UTC
#2

Nothing to do with the logger. It just console spam that comes from running
preferences. I''ll ask the classpath people to see if we can block it short term
somehow.

And fully agreed on migration to gconf. (the gnome way of doing preferences over
the java way of doing preferences)

Comment 4 Mark Wielaard 2006-08-18 15:33:59 UTC
Bug in classpath/libgcj. It had some System.out.println() debug statements left
in the source of NodeReader:

diff -u -r1.5 NodeReader.java
--- gnu/java/util/prefs/NodeReader.java 2 Jul 2005 20:32:15 -0000       1.5
+++ gnu/java/util/prefs/NodeReader.java 18 Aug 2006 15:41:53 -0000
@@ -124,7 +124,6 @@
             skipTill("name=\"");
             String name = readTill("\"");
             Preferences subnode = node.node(name);
-            System.out.println("Found subnode: " + subnode.absolutePath());
             readMap(subnode);
             readNodes(subnode);
             skipTill("</node>");
@@ -160,7 +159,6 @@
             String key = readTill("\"");
             skipTill("value=\"");
             String value = readTill("\"");
-            System.out.println("Key: " + key + " Value: " + value);
             node.put(key, value);
         }
     }

BTW. Since 0.92 the default util.pref backend for classpath is based on GConf2.

Comment 5 Mark Wielaard 2006-09-18 15:50:15 UTC
Patch in comment #4 has been included in the libgcj in fc6/rawhide.