This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 58159 - Editor settings not saved
Summary: Editor settings not saved
Status: RESOLVED DUPLICATE of bug 51945
Alias: None
Product: editor
Classification: Unclassified
Component: Settings (show other bugs)
Version: 4.x
Hardware: Sun Windows ME/2000
: P3 blocker (vote)
Assignee: Martin Roskanin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-21 11:04 UTC by vvainio
Modified: 2007-11-05 13:42 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
properties.xml fo Java editor settings. (757 bytes, text/xml)
2005-04-21 13:08 UTC, Martin Roskanin
Details
My <oyur_user_dir>/var/log/messages.log file (275.58 KB, text/plain)
2005-04-21 13:39 UTC, vvainio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vvainio 2005-04-21 11:04:58 UTC
Some of my editor settings don't get saved. Each time I start NetBeans 4.0 those
editor settings get reset to defaults.

How I set those settings:
1. When NetBeans 4.0 is running, choose Tools / Options
2. In the dialog, select Editing / Editor Settings / Java Editor from the tree.
3. Modify some settings, e.g. Tab Size, Auto Popup Completion Window, Line
Numbers and Text Limit Character Count.

To notice that they don't get saved, I close NetBeans, start it again and notice
that the modifications I made are lost.

I investigated the issue as much as I could and I notice that in my user folder
there is this folder .netbeans\4.0\config\Editors\text\ where it seems that some
of the settings get saved. Specifically, the files html/properties.xml and
x-java/properties.xml were empty (html and java are probably the only types of
settings I have tried to modify). By empty I mean that their length is 0 bytes.
I tried to delete these empty files, but the result is that when I modify the
settings again, another empty file gets created.

This problem appeared to me after using NetBeans 4.0 for a couple of months. I
don't think I did anything special to trigger this problem (like anything
unusual with installation or settings).

I think this problem should be fixed so that if such files are empty, a valid
and working file should be created to replace the empty file.

As a temporary solution, could somebody please mail me a valid copy of those two
files so I could see if that fixes my problem?

Thanks,
Vesa
Comment 1 Martin Roskanin 2005-04-21 13:08:57 UTC
Created attachment 21789 [details]
properties.xml fo Java editor settings.
Comment 2 Martin Roskanin 2005-04-21 13:14:00 UTC
Possible duplicate of issue #57954
I have attached properties.xml file with several changed properties. This
settings file contains diffed (changed) settings. If you delete settings file,
you get the default values in editor. I don't know why the settings were not
written to xml file after modification in customizer. Could you please attach
<oyur_user_dir>/var/log/messages.log file. Perhaps there will be some exception
or other clue. Thanks.
Comment 3 vvainio 2005-04-21 13:39:42 UTC
Created attachment 21792 [details]
My <oyur_user_dir>/var/log/messages.log file
Comment 4 Martin Roskanin 2005-04-21 14:00:39 UTC
Yes, I have alerady seen it.
The problem occurs during saving a setting to XML file.
java.io.IOException: Unsupported DOM document implementation!
java.lang.ClassNotFoundException: org.apache.xml.serialize.XMLSerializer
	at org.openide.xml.XMLUtilImpl.handleImplementationException(XMLUtilImpl.java:207)
	at org.openide.xml.XMLUtilImpl.write(XMLUtilImpl.java:175)
	at org.openide.xml.XMLUtil.write(XMLUtil.java:298)

The same as mentioned in issue #52857 and issue #51945




*** This issue has been marked as a duplicate of 51945 ***