Struts2 Showcase App Can Not be Loaded into IJ 7.0.3

Hi,
I tried to create a new project based on existing source -- the Struts2 Showcase App. The short of it is that IJ gets through all of the dialogs but then fails with an internal IDE error and leaves nothing (no project at all) behind.

Note that I tried this same process three times. The second time after having closed IJ7 and the third time after having shut down my system entirely. Same result all three times.

This is a critical app since it uses several current technologies we need. I was able to get this up and running with only one tweak within Eclipse 3.2. So I am currently on Eclipse, but want to get back on IJ is possible

Here are the details:

Platform: IJ 7.0.3 on Windows XP SP2

Details of selecting new Project from source:
Project file location: C:\k\webapps\struts2-showcase

Messages from IJ:
java source files were found WEB-INF\classes
java source files were found WEB-INF\src\java

libraries found
lib
struts-gif.zip
Library contents (about 30)

Facets:
WEB-INF
Spring
Struts 2
Web
Src
Struts2

At this point, the IJ started to generate the Project. However, the Red banner in lower left corner displayed IDE error.

IDE Error occurred Please report bug to Jetbrains

After that, repeatedly I saw the following dialog box:

Could not save application settings (0)

Here is the output in the Idea Log

2008-05-31 18:53:14,937 ERROR - roject.impl.ProjectManagerImpl -
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:47)
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.stores.DefaultProjectStoreImpl.startSave(DefaultProjectStoreImpl.java:23)
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.ide.actions.NewProjectAction.actionPerformed(NewProjectAction.java:2)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:16)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:25)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1220)
at javax.swing.plaf.basic.BasicPopupMenuUI$Actions.doReturn(BasicPopupMenuUI.java:439)
at javax.swing.plaf.basic.BasicPopupMenuUI$Actions.actionPerformed(BasicPopupMenuUI.java:413)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2849)
at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:267)
at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:216)
at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2926)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2918)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2812)
at java.awt.Component.processEvent(Component.java:5818)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:697)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:962)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:834)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:661)
at java.awt.Component.dispatchEventImpl(Component.java:4285)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:131)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:172)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:136)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
2008-05-31 18:53:14,937 ERROR - roject.impl.ProjectManagerImpl - IntelliJ IDEA 7.0.3 Build #7757
2008-05-31 18:53:14,937 ERROR - roject.impl.ProjectManagerImpl - JDK: 1.6.0_04
2008-05-31 18:53:14,937 ERROR - roject.impl.ProjectManagerImpl - VM: Java HotSpot(TM) Client VM
2008-05-31 18:53:14,937 ERROR - roject.impl.ProjectManagerImpl - Vendor: Sun Microsystems Inc.
2008-05-31 18:53:14,937 ERROR - roject.impl.ProjectManagerImpl - OS: Windows XP
2008-05-31 18:53:14,937 ERROR - roject.impl.ProjectManagerImpl - Last Action: EditorLineStartWithSelection
2008-05-31 18:53:15,031 INFO - ea.checkstyle.CheckStylePlugin - CheckStyle Plugin loaded with project base dir: "C:\k\webapps\struts2-showcase"
2008-05-31 18:53:15,218 ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.KeyEvent[KEY_PRESSED,keyCode=10,keyText=Enter,keyChar=Enter,keyLocation=KEY_LOCATION_STANDARD] on com.intellij.openapi.wm.impl.IdeRootPane[,7,26,1386x987,layout=com.incors.plaf.alloy.bk,alignmentX=0.0,alignmentY=0.0,border=,flags=449,maximumSize=,minimumSize=,preferredSize=]
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:47)
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.ide.actions.NewProjectAction.actionPerformed(NewProjectAction.java:2)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:16)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:25)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1220)
at javax.swing.plaf.basic.BasicPopupMenuUI$Actions.doReturn(BasicPopupMenuUI.java:439)
at javax.swing.plaf.basic.BasicPopupMenuUI$Actions.actionPerformed(BasicPopupMenuUI.java:413)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2849)
at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:267)
at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:216)
at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2926)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2918)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2812)
at java.awt.Component.processEvent(Component.java:5818)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1848)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:697)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:962)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:834)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:661)
at java.awt.Component.dispatchEventImpl(Component.java:4285)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:131)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:172)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:136)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
2008-05-31 18:53:15,218 ERROR - com.intellij.ide.IdeEventQueue - IntelliJ IDEA 7.0.3 Build #7757
2008-05-31 18:53:15,218 ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.6.0_04
2008-05-31 18:53:15,218 ERROR - com.intellij.ide.IdeEventQueue - VM: Java HotSpot(TM) Client VM
2008-05-31 18:53:15,218 ERROR - com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc.
2008-05-31 18:53:15,218 ERROR - com.intellij.ide.IdeEventQueue - OS: Windows XP
2008-05-31 18:53:15,218 ERROR - com.intellij.ide.IdeEventQueue - Last Action: EditorLineStartWithSelection
2008-05-31 18:53:23,250 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(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:47)
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.stores.DefaultProjectStoreImpl.startSave(DefaultProjectStoreImpl.java:23)
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.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:47)
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)
at com.intellij.ide.SaveAndSyncHandler.b(SaveAndSyncHandler.java:10)
at com.intellij.ide.SaveAndSyncHandler.access$200(SaveAndSyncHandler.java:21)
at com.intellij.ide.SaveAndSyncHandler$3.onFrameDeactivated(SaveAndSyncHandler.java:6)
at com.intellij.ide.FrameStateManagerImpl.a(FrameStateManagerImpl.java:16)
at com.intellij.ide.FrameStateManagerImpl.access$100(FrameStateManagerImpl.java:14)
at com.intellij.ide.FrameStateManagerImpl$1.run(FrameStateManagerImpl.java:1)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:19)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:131)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:132)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:136)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

2 comments
Comment actions Permalink

Please disable HibernateToolsPlugin (IDEA 7 has builtin Hibernate support anyways)

0
Comment actions Permalink

Thanks v much Yann. You probably have seen this behavior before.

0

Please sign in to leave a comment.