"Could not save application settings: null" Error popup in Diana 8792

From time to time I am getting the attached error dialog, but I can´t say how I am getting it. The text in it says:
Could not save application settings: null

In this last particular situation I was exporting my settings when this dialog showed up. At the bottom of this message I am including a snippet of idea.log.

I ´ve installed the Copyright plugin and since I am seeing something related to it in the log I am wondering if it might not be fully compatible. I am disabling it now.

Any ideas are very welcome.
Thanks in advance,
Gustavo.

...
2008-09-16 18:02:35,912 INFO - ght.CopyrightProjectPluginImpl - writeExternal()
2008-09-16 18:02:35,912 INFO - idea.copyright.options.Options - writeExternal()
2008-09-16 18:02:44,370 ERROR - e.actions.ExportSettingsAction -
java.lang.ClassNotFoundException: com.intellij.application.options.editor.XmlEditorOptions
at com.intellij.util.lang.UrlClassLoader.findClass(UrlClassLoader.java:67)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at com.intellij.util.lang.UrlClassLoader.loadClass(UrlClassLoader.java:80)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at com.intellij.ide.actions.ExportSettingsAction.getRegisteredComponentsAndFiles(ExportSettingsAction.java:27)
at com.intellij.ide.actions.ExportSettingsAction.actionPerformed(ExportSettingsAction.java:45)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:3)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:76)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:334)
at apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:96)
at java.awt.MenuItem.processActionEvent(MenuItem.java:597)
at java.awt.MenuItem.processEvent(MenuItem.java:556)
at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:298)
at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:286)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:466)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:123)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:109)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:220)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
2008-09-16 18:02:44,372 ERROR - e.actions.ExportSettingsAction - IntelliJ IDEA (Diana) #8792 Build #8792
2008-09-16 18:02:44,372 ERROR - e.actions.ExportSettingsAction - JDK: 1.5.0_13
2008-09-16 18:02:44,372 ERROR - e.actions.ExportSettingsAction - VM: Java HotSpot(TM) Client VM
2008-09-16 18:02:44,372 ERROR - e.actions.ExportSettingsAction - Vendor: Apple Inc.
2008-09-16 18:02:44,372 ERROR - e.actions.ExportSettingsAction - OS: Mac OS X
2008-09-16 18:02:44,372 ERROR - e.actions.ExportSettingsAction - Last Action: ExportSettings
2008-09-16 18:03:10,590 INFO - ight.CopyrightModulePluginImpl - writeExternal()
2008-09-16 18:03:10,590 INFO - idea.copyright.options.Options - writeExternal()
2008-09-16 18:03:10,627 INFO - ght.CopyrightProjectPluginImpl - writeExternal()
2008-09-16 18:03:10,627 INFO - idea.copyright.options.Options - writeExternal()
2008-09-16 18:03:10,822 INFO - ght.CopyrightProjectPluginImpl - writeExternal()
2008-09-16 18:03:10,822 INFO - idea.copyright.options.Options - writeExternal()
2008-09-16 18:03:10,875 INFO - ght.CopyrightProjectPluginImpl - writeExternal()
2008-09-16 18:03:10,876 INFO - idea.copyright.options.Options - writeExternal()
2008-09-16 18:03:10,887 INFO - plication.impl.ApplicationImpl - Saving application settings failed
java.lang.AssertionError
at com.intellij.openapi.components.impl.stores.StateStorageManagerImpl.finishSave(StateStorageManagerImpl.java:151)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl$SaveSessionImpl.finishSave(ComponentStoreImpl.java:14)
at com.intellij.openapi.components.impl.ComponentManagerImpl.doSave(ComponentManagerImpl.java:156)
at com.intellij.openapi.application.impl.ApplicationImpl.saveSettings(ApplicationImpl.java:340)
at com.intellij.ide.SaveAndSyncHandler.b(SaveAndSyncHandler.java:51)
at com.intellij.ide.SaveAndSyncHandler.access$200(SaveAndSyncHandler.java:48)
at com.intellij.ide.SaveAndSyncHandler$3.onFrameDeactivated(SaveAndSyncHandler.java:5)
at com.intellij.ide.FrameStateManagerImpl.a(FrameStateManagerImpl.java:18)
at com.intellij.ide.FrameStateManagerImpl.access$100(FrameStateManagerImpl.java:24)
at com.intellij.ide.FrameStateManagerImpl$1.run(FrameStateManagerImpl.java:2)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:13)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:123)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:109)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:220)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
2008-09-16 18:07:57,964 INFO - ght.CopyrightProjectPluginImpl - writeExternal()



Attachment(s):
Picture 3.png
4 comments
Comment actions Permalink

I too am having this problem, also on a Mac.  It happens whenever I click the Save button (the disk), even when no project is open.  I am running version 8.0.1 and it seems to be falling apart.  The first cue was the "Could not save application settings: null" error.  Now, I get that, but now my project isn't loading an Java files.  There are no packages in the Packages view!

I just tried doing a reinstall, including wiping all preferences from my User/Library/preferences directory and I'm still having the problem.

PLEASE HELP!!  Is there a solution out there?  I don't want to have to switch back to Eclipse but this is preventing me from doing my job!

Thanks,
Mark

0
Comment actions Permalink

Hello Mark,

I too am having this problem, also on a Mac. I am running version
8.0.1 and it seems to be falling apart. The first cue was the "Could
not save application settings: null" error. Now, I get that, but now
my project isn't loading an Java files. There are no packages in the
Packages view!

I just tried doing a reinstall, including wiping all preferences from
my User/Library/preferences directory and I'm still having the
problem.

This problem occurs even when no project is loaded.

PLEASE HELP!! Is there a solution out there? I don't want to have to
switch back to Eclipse but this is preventing me from doing my job

Thanks,
Mark
---
Original message URL:
http://www.jetbrains.net/devnet/message/5228724#5228724


The most evident problems which could cause such error are:

1. OutOfMemoryError. Check idea.log and memory indicator in the status bar.
(E.g. it may happen if you have a data source definition with hundreds of
tables.)

2. Some errors while saving settings, may be from 3rd party plugins. Check
idea.log.

3. Insufficient disk space (for example, when my disk has less than 1Gb,
I clean it before running IDEA).

4. File system permissions on directories where IDEA stores settings and
caches.

Alexander.


0
Comment actions Permalink

Hi all.  I received an email from JetBrains support and their solution worked:


Rename the following directories:

Settings: ~/Library/Preferences/IntelliJIDEAXX
Caches: ~/Library/Caches/IntelliJIDEAXX
Plugins: ~/Library/Application Support/IntelliJIDEAXX
(where XX is IDEA version)

This will allow IDEA to start with all the default settings.

0
Comment actions Permalink

I just ran into this today with 8.0.1, and renaming those directories worked for me, too.  There was a post on the EAP forum implying that the DBHelper plugin was at fault, however I couldn't find that plugin mentioned anywhere in my install.  The only thing I did was _un_ check some options in the various dialogs on startup, I had never installed additional plugins.  -Wendy

0

Please sign in to leave a comment.