Create Project from Maven POMs failed with Intellij 7.0.4

Hello,

Creating a project from a maven pom failed in Intellij 7.0.4 and EAP Version 7952 with the following Exception

Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(34,15),absolute(41,63),button=1,modifiers=Button1,clickCount=1] on ###overrideRedirect###: Argument 0 for @NotNull parameter of com/intellij/openapi/module/impl/ModuleManagerImpl.findModuleByName must not be null
java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of com/intellij/openapi/module/impl/ModuleManagerImpl.findModuleByName must not be null
at com.intellij.openapi.module.impl.ModuleManagerImpl.findModuleByName(ModuleManagerImpl.java)
at org.jetbrains.idea.maven.project.RootModelAdapter.findModuleByName(RootModelAdapter.java:161)
at org.jetbrains.idea.maven.project.RootModelAdapter.createModuleDependency(RootModelAdapter.java:145)
at org.jetbrains.idea.maven.project.MavenModuleConfigurator.configDependencies(MavenModuleConfigurator.java:101)
at org.jetbrains.idea.maven.project.MavenModuleConfigurator.config(MavenModuleConfigurator.java:55)
at org.jetbrains.idea.maven.project.MavenProjectConfigurator.configModules(MavenProjectConfigurator.java:146)
at org.jetbrains.idea.maven.project.MavenProjectConfigurator.config(MavenProjectConfigurator.java:51)
at org.jetbrains.idea.maven.state.MavenProjectsManager$11.run(MavenProjectsManager.java:304)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:248)
at org.jetbrains.idea.maven.state.MavenProjectsManager.commit(MavenProjectsManager.java:302)
at org.jetbrains.idea.maven.project.open.MavenImportBuilder.commit(MavenImportBuilder.java:79)
at com.intellij.ide.impl.ProjectUtil.createNewProject(ProjectUtil.java:168)
at com.intellij.ide.actions.NewProjectAction.actionPerformed(NewProjectAction.java:1)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:13)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:1)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:18)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:157)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:8)
at java.awt.Component.processMouseEvent(Component.java:6041)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5806)
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.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
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:69)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:31)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:56)
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)

With Intellij 7.0.2 the creation process from the same pom files works fine. But with Intellij 7.02 I get the error "Out of Memory exception" at least once a day :(.

Regards

Thomas

3 comments
Comment actions Permalink

Have you tried upping the virutal memory by modding the vmoptions file?

0
Comment actions Permalink

yes I increase the memory values to 256MB and now to 512MB in Intellij 7.0.2 hopefully it helps.

But the problems are the maven integration in intellij 7.0.4. Are there special constrains for the pom files? Is there an example for a valid pom file that works with intellij 7.0.4?

0
Comment actions Permalink

Thomas,
Could you please attach your project's pom files? I'll try to find what the problem is.

Thanks,
Anton Makeev

0

Please sign in to leave a comment.