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 237666 - Configuration not saved
Summary: Configuration not saved
Status: RESOLVED INCOMPLETE
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P1 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-25 13:34 UTC by flip101
Modified: 2013-11-15 11:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
netbeans messages.log (41.50 KB, application/octet-stream)
2013-10-25 14:22 UTC, flip101
Details
Reproducing the bug, relevant files (10.70 KB, application/x-zip-compressed)
2013-11-15 08:38 UTC, flip101
Details

Note You need to log in before you can comment on or make changes to this bug.
Description flip101 2013-10-25 13:34:14 UTC
I just installed netbeans 7.4 ever since i often loose all netbeans configuration. For example: opened projects and space identation settings. I have used netbeans 7.3 months before without any problem. Sometimes it does save, sometimes it doesn't.
Comment 1 Jiri Prox 2013-10-25 13:52:09 UTC
Can you please attach messages.log?
Is there any problem with write access to the userdir?
Comment 2 flip101 2013-10-25 14:22:32 UTC
Created attachment 141557 [details]
netbeans messages.log

Retrieved from:
C:\Users\pl\AppData\Roaming\NetBeans\7.4\var\log
Comment 3 flip101 2013-10-25 14:23:30 UTC
I'm not aware of any problems with write access to the user dir. Which particular dir would i check and how would i check it?
Comment 4 Jiri Prox 2013-10-25 18:38:19 UTC
Thanks for log, the only exception in it are 

java.io.IOException: Cannot read DefaultAttributes.: attributes.xml
[catch] at org.openide.filesystem.DefaultAttributes.loadTable(DefaultAttributes.java:723)
	at org.openide.filesystem.DefaultAttributes.load(DefaultAttributes.java:673)
	at org.openide.filesystem.DefaultAttributes.loadTable(DefaultAttributes.java:651)
	at org.openide.filesystem.DefaultAttributes.readAttribute(DefaultAttributes.java:373)
	at org.netbeans.modules.masterfs.ExLocalFileSystem$OneFileAttributeAttachedToRoot.readAttribute(ExLocalFileSystem.java:98)
	at org.netbeans.modules.masterfs.providers.Attributes.readAttribute(Attributes.java:141)
	at org.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.getAttribute(BaseFileObj.java:512)

and 

java.io.IOException: Cannot read DefaultAttributes.: Windows2Local/Modes/.nbattrs
[catch] at org.openide.filesystem.DefaultAttributes.loadTable(DefaultAttributes.java:723)
	at org.openide.filesystem.DefaultAttributes.load(DefaultAttributes.java:673)
	at org.openide.filesystem.DefaultAttributes.loadTable(DefaultAttributes.java:651)
	at org.openide.filesystem.DefaultAttributes.readAttribute(DefaultAttributes.java:373)
	at org.openide.filesystem.LocalFileSystem$InnerAttrs.readAttribute(LocalFileSystem.java:737)
	at org.netbeans.core.startup.layers.LocalFileSystemEx$DelegatingAttributes.readAttribute(LocalFileSystemEx.


-> reassigning for further evaluation
Comment 5 Jaroslav Havlin 2013-10-30 14:54:05 UTC
Did you import settings from 7.3 to 7.4?

Maybe the contents of the files is incorrect. If you can still reproduce this bug,
can you please attach file that caused the error (e.g.  Windows2Local/Modes/.nbattrs
in your userdir) to this issue? Thank you.
Comment 6 flip101 2013-10-30 15:18:31 UTC
Yes i imported configuration and plugins from 7.3.

I couldn't continue with my work like this, also project (netbeans metadata) was getting corrupt. So i unstalled Netbeans and java, then cleaned up all files and registry entries i could find and installed the latest version of Java JDK and netbeans. Seems fine so far. Sorry i can not reproduce the issue anymore.
Comment 7 Jaroslav Havlin 2013-10-30 16:32:40 UTC
(In reply to flip101 from comment #6)
> Yes i imported configuration and plugins from 7.3.
It could have caused some of the problems.

> I couldn't continue with my work like this, also project (netbeans metadata)
> was getting corrupt. So i unstalled Netbeans and java, then cleaned up all
> files and registry entries i could find and installed the latest version of
> Java JDK and netbeans. Seems fine so far. Sorry i can not reproduce the
> issue anymore.
Of course. I'll mark this bug as incomplete, because we cannot say what was
broken. If someone can reproduce this bug and attach the corrupted file, we'll
reopen this issue.

Thank you very much for reporting.
Comment 8 flip101 2013-11-15 08:38:14 UTC
Created attachment 142217 [details]
Reproducing the bug, relevant files

C:\Users\pl\AppData\Roaming\NetBeans\7.4\var\log\messages.log
C:\Users\pl\AppData\Roaming\NetBeans\7.4\var\attributes.xml
C:\Users\pl\AppData\Roaming\NetBeans\7.4\config\Windows2Local\Modes\.nbattrs
Comment 9 flip101 2013-11-15 08:39:41 UTC
It happened again ... i made a new attachment with more files now. The only thing i did from the default netbeans installation is adding a plugin for line endings (which now seems to be missing if i go to the plugin window and look at installation plugins), and:

In config file:
C:\Program Files\NetBeans 7.4\etc\netbeans.conf

i modified:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true -J-Dsun.java2d.dpiaware=true -J-Dsun.zip.disableMemoryMapping=true -J-Dline.separator=LF"

by adding:
-J-Dline.separator=LF
Comment 10 Jaroslav Havlin 2013-11-15 09:25:28 UTC
(In reply to flip101 from comment #9)
> by adding:
> -J-Dline.separator=LF
The line.separator property is set incorrectly. I think it shouldn't be changed.
See http://stackoverflow.com/questions/3708991/setting-java-vm-line-separator.
Comment 11 flip101 2013-11-15 11:47:48 UTC
removing -J-Dline.separator=LF or -J-Dline.separator=$'\n' seems to make the difference. Bug solved. Though as feature request it would be nice to support other line endings then the oeprating system.

Thanks for support.