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.
java.lang.IllegalArgumentException: Malformed \uxxxx encoding. at java.util.Properties.loadConvert(Properties.java:552) at java.util.Properties.load0(Properties.java:374) at java.util.Properties.load(Properties.java:325) at org.netbeans.core.startup.preferences.PropertiesStorage.load(PropertiesStorage.java:201) at org.netbeans.core.startup.preferences.NbPreferences.properties(NbPreferences.java:188) at org.netbeans.core.startup.preferences.NbPreferences.getSpi(NbPreferences.java:110) at org.netbeans.core.startup.preferences.NbPreferences.put(NbPreferences.java:130) at java.util.prefs.AbstractPreferences.putLong(AbstractPreferences.java:396) at org.netbeans.modules.uihandler.Installer.<clinit>(Installer.java:203) Caused: java.lang.ExceptionInInitializerError at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.openide.util.SharedClassObject.createInstancePrivileged(SharedClassObject.java:641) at org.openide.util.SharedClassObject$SetAccessibleAction.run(SharedClassObject.java:1001) at org.openide.util.SharedClassObject$SetAccessibleAction.run(SharedClassObject.java:993) at java.security.AccessController.doPrivileged(Native Method) at org.openide.util.SharedClassObject.findObject(SharedClassObject.java:515) at org.netbeans.core.startup.NbInstaller.loadCode(NbInstaller.java:397) at org.netbeans.core.startup.NbInstaller.load(NbInstaller.java:340) at org.netbeans.ModuleManager.enable(ModuleManager.java:906) at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:428) at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:364) at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:276) at org.netbeans.core.startup.Main.getModuleSystem(Main.java:165) at org.netbeans.core.startup.Main.start(Main.java:312) at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:110) [catch] at java.lang.Thread.run(Thread.java:619)
Created attachment 81636 [details] LOG
Please can you attach file $USERDIR/config/Preferences/org/netbeans/modules/uihandler.properties
BTW do you use "\u" in your user name or password for exception reporter?
"\u" should be escaped by NbPreferences. I do not see any possible problem with it.
*** Issue 166299 has been marked as a duplicate of this issue. ***
rising priority ... more duplicates are comming
*** Issue 166661 has been marked as a duplicate of this issue. ***
*** Issue 157161 has been marked as a duplicate of this issue. ***
*** Issue 163021 has been marked as a duplicate of this issue. ***
In fact all keys and values are escaped in java.util.Properties.store. File $USERDIR/config/Preferences/org/netbeans/modules/uihandler.properties had to be modified externally and exception points that the key was wrong. It really helps if someone could attach uihandler.properties file. Otherwise I can just catch the exception and remove broken file.
Fixed. IllegalArgumentException is caught and broken content of uihandler.properties file is rewritten afterwards. core-main #6a4cd34dd7f2
*** Issue 166735 has been marked as a duplicate of this issue. ***
Integrated into 'main-golden', will be available in build *200906110201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/6a4cd34dd7f2 User: Jiri Skrivanek <jskrivanek@netbeans.org> Log: #164580 - ignore IllegalArgumentException: Malformed \uxxxx encoding.
*** Issue 166899 has been marked as a duplicate of this issue. ***
*** Issue 167775 has been marked as a duplicate of this issue. ***
makpandian, can you verify the fix in the latest trunk build that is available here http://bits.netbeans.org/dev/nightly/latest/? Thanks
v
The fix has been ported into the release67_fixes repository. http://hg.netbeans.org/release67_fixes/rev/54dcb659bb77
*** Issue 167977 has been marked as a duplicate of this issue. ***
*** Issue 167976 has been marked as a duplicate of this issue. ***
See also fix made in issue #167745 - the syntax error in that case causes the file to be deleted as it is loaded, rather than when new keys are added. Probably my fix is better, but it has not been verified that I know of, and either should suffice for the 6.7 backport.