"could not save application settings: 0" Error

Hi,

I'm running IntelliJ 7.0.3 build 7757 on Mac OS X with the latest Apple updates (yesterday) and am a new user of IntelliJ. When I started up the IDE this morning I have been repeatedly getting a dialog box with the above error. Dismissing the dialog box by pressing the "Ok" button only produces another dialog box. I also have to "Force Quit" the application as it hangs when I try to exit it.

I am using JDK 1.5.0_13-b05-237 on OS X.

Thanks for any help.
John

4 comments
Comment actions Permalink

Hello johndubchak,

I'm running IntelliJ 7.0.3 build 7757 on Mac OS X with the latest
Apple updates (yesterday) and am a new user of IntelliJ. When I
started up the IDE this morning I have been repeatedly getting a
dialog box with the above error. Dismissing the dialog box by
pressing the "Ok" button only produces another dialog box. I also
have to "Force Quit" the application as it hangs when I try to exit
it.

I am using JDK 1.5.0_13-b05-237 on OS X.


There should be an exception stacktrace in your log file (~/Library/Caches/IntelliJIdea70/idea.log).
Could you please post it here?

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Here is the stacktrace from the idea.log file:

2008-05-29 10:13:44,256 INFO - plication.impl.ApplicationImpl - Saving application settings failed
java.lang.ArrayIndexOutOfBoundsException: 0
at com.mssra.hibernate.Configuration.getModule(Configuration.java:161)
at com.mssra.hibernate.Configuration.getModuleName(Configuration.java:156)
at com.mssra.hibernate.Configuration.writeExternal(Configuration.java:529)
at com.mssra.hibernate.HibernateToolsPlugin.writeExternal(HibernateToolsPlugin.java:269)
at com.intellij.openapi.components.impl.stores.DefaultStateSerializer.serializeState(DefaultStateSerializer.java
:8)
at com.intellij.openapi.components.impl.stores.XmlElementStorage$MyExternalizationSession.setState(XmlElementSto
rage.java:2) at com.intellij.openapi.components.impl.stores.DefaultProjectStoreImpl$MyExternalizationSession.setStateInOldSto
rage(DefaultProjectStoreImpl.java:1) at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.a(ComponentStoreImpl.java:3)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.access$600(ComponentStoreImpl.java:82)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl$SaveSessionImpl.commit(ComponentStoreImpl.java
:20) at com.intellij.openapi.components.impl.stores.ProjectStoreImpl$ProjectSaveSession.commit(ProjectStoreImpl.java:
50) at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.startSave(ComponentStoreImpl.java:116)
at com.intellij.openapi.components.impl.ComponentManagerImpl.doSave(ComponentManagerImpl.java:73)
at com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:38) at com.intellij.openapi.project.impl.ProjectManagerImpl.writeExternal(ProjectManagerImpl.java:269)
at com.intellij.openapi.components.impl.stores.DefaultStateSerializer.serializeState(DefaultStateSerializer.java:8)
at com.intellij.openapi.components.impl.stores.XmlElementStorage$MyExternalizationSession.setState(XmlElementStorage.java:2)
at com.intellij.openapi.components.impl.stores.StateStorageManagerImpl$MyExternalizationSession.setStateInOldSto
rage(StateStorageManagerImpl.java:13)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.a(ComponentStoreImpl.java:3) at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.access$600(ComponentStoreImpl.java:82)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl$SaveSessionImpl.commit(ComponentStoreImpl.java:20)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.startSave(ComponentStoreImpl.java:116)
at com.intellij.openapi.components.impl.ComponentManagerImpl.doSave(ComponentManagerImpl.java:73) at com.intellij.openapi.application.impl.ApplicationImpl.saveSettings(ApplicationImpl.java:194)

In response to a support message I've received, Sergei asked me to open up permissions on the Settings, Caches and Plugins directories. I performed a recursive chmod (777) on those directories and just tried to create a new project which produced this internal error and stacktrace:

0
java.lang.ArrayIndexOutOfBoundsException: 0
at com.mssra.hibernate.Configuration.getModule(Configuration.java:161)
at com.mssra.hibernate.Configuration.getModuleName(Configuration.java:156)
at com.mssra.hibernate.Configuration.writeExternal(Configuration.java:529)
at com.mssra.hibernate.HibernateToolsPlugin.writeExternal(HibernateToolsPlugin.java:269)
at com.intellij.openapi.components.impl.stores.DefaultStateSerializer.serializeState(DefaultStateSerializer.java:8)
at com.intellij.openapi.components.impl.stores.XmlElementStorage$MyExternalizationSession.setState(XmlElementStorage.java:2)
at com.intellij.openapi.components.impl.stores.DefaultProjectStoreImpl$MyExternalizationSession.setStateInOldStorage(DefaultProjectStoreImpl.java:1)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.a(ComponentStoreImpl.java:3)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.access$600(ComponentStoreImpl.java:82)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl$SaveSessionImpl.commit(ComponentStoreImpl.java:20)
at com.intellij.openapi.components.impl.stores.ProjectStoreImpl$ProjectSaveSession.commit(ProjectStoreImpl.java:50)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.startSave(ComponentStoreImpl.java:116)
at com.intellij.openapi.components.impl.ComponentManagerImpl.doSave(ComponentManagerImpl.java:73)
at com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:38)
at com.intellij.openapi.components.impl.stores.ProjectStoreImpl.loadProjectFromTemplate(ProjectStoreImpl.java:109)
at com.intellij.openapi.project.impl.ProjectManagerImpl.newProject(ProjectManagerImpl.java:177)
at com.intellij.ide.impl.ProjectUtil.createNewProject(ProjectUtil.java:32)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeScreen$4.onPress(WelcomeScreen.java:3)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeScreen$ActionGroupDescriptor$2.mouseClicked(WelcomeScreen.java:3)
at java.awt.Component.processMouseEvent(Component.java:5605)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5367)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4068)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3945)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
at java.awt.Container.dispatchEventImpl(Container.java:2054)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:131)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:18)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:136)
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)


java.lang.ArrayIndexOutOfBoundsException: 0
at com.mssra.hibernate.Configuration.getModule(Configuration.java:161)
at com.mssra.hibernate.Configuration.getModuleName(Configuration.java:156)
at com.mssra.hibernate.Configuration.writeExternal(Configuration.java:529)
at com.mssra.hibernate.HibernateToolsPlugin.writeExternal(HibernateToolsPlugin.java:269)
at com.intellij.openapi.components.impl.stores.DefaultStateSerializer.serializeState(DefaultStateSerializer.java:8)
at com.intellij.openapi.components.impl.stores.XmlElementStorage$MyExternalizationSession.setState(XmlElementStorage.java:2)
at com.intellij.openapi.components.impl.stores.StateStorageManagerImpl$MyExternalizationSession.setStateInOldStorage(StateStorageManagerImpl.java:13)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.a(ComponentStoreImpl.java:3)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.access$600(ComponentStoreImpl.java:82)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl$SaveSessionImpl.commit(ComponentStoreImpl.java:20)
at com.intellij.openapi.components.impl.stores.ProjectStoreImpl$ProjectSaveSession.commit(ProjectStoreImpl.java:50)
at com.intellij.openapi.components.impl.stores.ComponentStoreImpl.startSave(ComponentStoreImpl.java:116)
at com.intellij.openapi.components.impl.ComponentManagerImpl.doSave(ComponentManagerImpl.java:73)
at com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:38)
at com.intellij.ide.impl.ProjectUtil.createNewProject(ProjectUtil.java:13)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeScreen$4.onPress(WelcomeScreen.java:3)
at com.intellij.openapi.wm.impl.welcomeScreen.WelcomeScreen$ActionGroupDescriptor$2.mouseClicked(WelcomeScreen.java:3)
at java.awt.Component.processMouseEvent(Component.java:5605)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5367)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4068)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3945)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
at java.awt.Container.dispatchEventImpl(Container.java:2054)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:131)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:18)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:136)
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)


Thanks,
John

0
Comment actions Permalink

Hello johndubchak,

Please uninstall the Hibernate Tools plugin.

Here is the stacktrace from the idea.log file:

2008-05-29 10:13:44,256 INFO -
plication.impl.ApplicationImpl - Saving application settings failed
java.lang.ArrayIndexOutOfBoundsException: 0
at
com.mssra.hibernate.Configuration.getModule(Configuration.java:161)
at
com.mssra.hibernate.Configuration.getModuleName(Configuration.java:156
)
at
com.mssra.hibernate.Configuration.writeExternal(Configuration.java:529
)
at
com.mssra.hibernate.HibernateToolsPlugin.writeExternal(HibernateToolsP
lugin.java:269)
at
com.intellij.openapi.components.impl.stores.DefaultStateSerializer.ser
ializeState(DefaultStateSerializer.java
:8)
at
com.intellij.openapi.components.impl.stores.XmlElementStorage$MyExtern
alizationSession.setState(XmlElementSto
rage.java:2) at
com.intellij.openapi.components.impl.stores.DefaultProjectStoreImpl$My
ExternalizationSession.setStateInOldSto
rage(DefaultProjectStoreImpl.java:1) at
com.intellij.openapi.components.impl.stores.ComponentStoreImpl.a(Compo
nentStoreImpl.java:3)
at
com.intellij.openapi.components.impl.stores.ComponentStoreImpl.access$
600(ComponentStoreImpl.java:82)
at
com.intellij.openapi.components.impl.stores.ComponentStoreImpl$SaveSes
sionImpl.commit(ComponentStoreImpl.java
:20) at
com.intellij.openapi.components.impl.stores.ProjectStoreImpl$ProjectSa
veSession.commit(ProjectStoreImpl.java:
50) at
com.intellij.openapi.components.impl.stores.ComponentStoreImpl.startSa
ve(ComponentStoreImpl.java:116)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.doSave(Compo
nentManagerImpl.java:73)
at
com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:38
) at
com.intellij.openapi.project.impl.ProjectManagerImpl.writeExternal(Pro
jectManagerImpl.java:269)
at
com.intellij.openapi.components.impl.stores.DefaultStateSerializer.ser
ializeState(DefaultStateSerializer.java:8)
at
com.intellij.openapi.components.impl.stores.XmlElementStorage$MyExtern
alizationSession.setState(XmlElementStorage.java:2)
at
com.intellij.openapi.components.impl.stores.StateStorageManagerImpl$My
ExternalizationSession.setStateInOldSto
rage(StateStorageManagerImpl.java:13)
at
com.intellij.openapi.components.impl.stores.ComponentStoreImpl.a(Compo
nentStoreImpl.java:3) at
com.intellij.openapi.components.impl.stores.ComponentStoreImpl.access$
600(ComponentStoreImpl.java:82)
at
com.intellij.openapi.components.impl.stores.ComponentStoreImpl$SaveSes
sionImpl.commit(ComponentStoreImpl.java:20)
at
com.intellij.openapi.components.impl.stores.ComponentStoreImpl.startSa
ve(ComponentStoreImpl.java:116)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.doSave(Compo
nentManagerImpl.java:73) at
com.intellij.openapi.application.impl.ApplicationImpl.saveSettings(App
licationImpl.java:194)
In response to a support message I've received, Sergei asked me to
open up permissions on the Settings, Caches and Plugins directories.
I performed a recursive chmod (777) on those directories and just
tried to create a new project which produced this internal error and
stacktrace:

0
java.lang.ArrayIndexOutOfBoundsException: 0
at
com.mssra.hibernate.Configuration.getModule(Configuration.java:161)
at
com.mssra.hibernate.Configuration.getModuleName(Configuration.java:156
)
at
com.mssra.hibernate.Configuration.writeExternal(Configuration.java:529
)
at
com.mssra.hibernate.HibernateToolsPlugin.writeExternal(HibernateToolsP
lugin.java:269)
at
com.intellij.openapi.components.impl.stores.DefaultStateSerializer.ser
ializeState(DefaultStateSerializer.java:8)
at
com.intellij.openapi.components.impl.stores.XmlElementStorage$MyExtern
alizationSession.setState(XmlElementStorage.java:2)
at
com.intellij.openapi.components.impl.stores.DefaultProjectStoreImpl$My
ExternalizationSession.setStateInOldStorage(DefaultProjectStoreImpl.ja
va:1)
at
com.intellij.openapi.components.impl.stores.ComponentStoreImpl.a(Compo
nentStoreImpl.java:3)
at
com.intellij.openapi.components.impl.stores.ComponentStoreImpl.access$
600(ComponentStoreImpl.java:82)
at
com.intellij.openapi.components.impl.stores.ComponentStoreImpl$SaveSes
sionImpl.commit(ComponentStoreImpl.java:20)
at
com.intellij.openapi.components.impl.stores.ProjectStoreImpl$ProjectSa
veSession.commit(ProjectStoreImpl.java:50)
at
com.intellij.openapi.components.impl.stores.ComponentStoreImpl.startSa
ve(ComponentStoreImpl.java:116)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.doSave(Compo
nentManagerImpl.java:73)
at
com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:38
)
at
com.intellij.openapi.components.impl.stores.ProjectStoreImpl.loadProje
ctFromTemplate(ProjectStoreImpl.java:109)
at
com.intellij.openapi.project.impl.ProjectManagerImpl.newProject(Projec
tManagerImpl.java:177)
at
com.intellij.ide.impl.ProjectUtil.createNewProject(ProjectUtil.java:32
)
at
com.intellij.openapi.wm.impl.welcomeScreen.WelcomeScreen$4.onPress(Wel
comeScreen.java:3)
at
com.intellij.openapi.wm.impl.welcomeScreen.WelcomeScreen$ActionGroupDe
scriptor$2.mouseClicked(WelcomeScreen.java:3)
at java.awt.Component.processMouseEvent(Component.java:5605)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5367)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4068)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3903)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3945)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
at java.awt.Container.dispatchEventImpl(Container.java:2054)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:131)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:18)
at
com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:136)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThr
ead.java:269)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThrea
d.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)
java.lang.ArrayIndexOutOfBoundsException: 0
at
com.mssra.hibernate.Configuration.getModule(Configuration.java:161)
at
com.mssra.hibernate.Configuration.getModuleName(Configuration.java:156
)
at
com.mssra.hibernate.Configuration.writeExternal(Configuration.java:529
)
at
com.mssra.hibernate.HibernateToolsPlugin.writeExternal(HibernateToolsP
lugin.java:269)
at
com.intellij.openapi.components.impl.stores.DefaultStateSerializer.ser
ializeState(DefaultStateSerializer.java:8)
at
com.intellij.openapi.components.impl.stores.XmlElementStorage$MyExtern
alizationSession.setState(XmlElementStorage.java:2)
at
com.intellij.openapi.components.impl.stores.StateStorageManagerImpl$My
ExternalizationSession.setStateInOldStorage(StateStorageManagerImpl.ja
va:13)
at
com.intellij.openapi.components.impl.stores.ComponentStoreImpl.a(Compo
nentStoreImpl.java:3)
at
com.intellij.openapi.components.impl.stores.ComponentStoreImpl.access$
600(ComponentStoreImpl.java:82)
at
com.intellij.openapi.components.impl.stores.ComponentStoreImpl$SaveSes
sionImpl.commit(ComponentStoreImpl.java:20)
at
com.intellij.openapi.components.impl.stores.ProjectStoreImpl$ProjectSa
veSession.commit(ProjectStoreImpl.java:50)
at
com.intellij.openapi.components.impl.stores.ComponentStoreImpl.startSa
ve(ComponentStoreImpl.java:116)
at
com.intellij.openapi.components.impl.ComponentManagerImpl.doSave(Compo
nentManagerImpl.java:73)
at
com.intellij.openapi.project.impl.ProjectImpl.save(ProjectImpl.java:38
)
at
com.intellij.ide.impl.ProjectUtil.createNewProject(ProjectUtil.java:13
)
at
com.intellij.openapi.wm.impl.welcomeScreen.WelcomeScreen$4.onPress(Wel
comeScreen.java:3)
at
com.intellij.openapi.wm.impl.welcomeScreen.WelcomeScreen$ActionGroupDe
scriptor$2.mouseClicked(WelcomeScreen.java:3)
at java.awt.Component.processMouseEvent(Component.java:5605)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5367)
at java.awt.Container.processEvent(Container.java:2010)
at java.awt.Component.dispatchEventImpl(Component.java:4068)
at java.awt.Container.dispatchEventImpl(Container.java:2068)
at java.awt.Component.dispatchEvent(Component.java:3903)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3945)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
at java.awt.Container.dispatchEventImpl(Container.java:2054)
at java.awt.Window.dispatchEventImpl(Window.java:1791)
at java.awt.Component.dispatchEvent(Component.java:3903)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:131)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:18)
at
com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:136)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThr
ead.java:269)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThrea
d.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)
Thanks,
John

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Thanks Dmitry, that seems to have resolved the issues I was having.

0

Please sign in to leave a comment.