maven integration : resynchronize deletes modules from projects

It doesn't happen every time, but some times, when hitting resynchronize all maven imported modules are removed from the project with no visible explanation (no exception, not even in idea.log).

Some time before this, i can find the following excpetion in idea.log, no idea if this has any link

2007-06-14 20:55:43,031 ERROR - n.project.MavenToIdeaConverter - Assertion failed:
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:89)
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:96)
at org.jetbrains.idea.maven.project.MavenToIdeaConverter$3.visit(MavenToIdeaConverter.java:93)
at org.jetbrains.idea.maven.project.MavenToIdeaConverter$3.visit(MavenToIdeaConverter.java:97)
at org.jetbrains.idea.maven.core.util.Tree.visit(Tree.java:54)
at org.jetbrains.idea.maven.core.util.Tree.visit(Tree.java:74)
at org.jetbrains.idea.maven.project.MavenProjectModel.visit(MavenProjectModel.java:172)
at org.jetbrains.idea.maven.project.MavenToIdeaConverter.createModuleGroups(MavenToIdeaConverter.java:83)
at org.jetbrains.idea.maven.project.MavenToIdeaConverter.convert(MavenToIdeaConverter.java:45)
at org.jetbrains.idea.maven.project.MavenImportProcessor$3.run(MavenImportProcessor.java:151)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:292)
at org.jetbrains.idea.maven.project.MavenImportProcessor.commit(MavenImportProcessor.java:149)
at org.jetbrains.idea.maven.project.action.MavenImportWizard.commitImport(MavenImportWizard.java:82)
at com.intellij.projectImport.ProjectImportWizard.doImport(ProjectImportWizard.java:18)
at com.intellij.projectImport.ProjectImportAction.actionPerformed(ProjectImportAction.java:3)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:2)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:63)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:187)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:96)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:0)
at java.awt.Component.processMouseEvent(Component.java:5501)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5266)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3968)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:191)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:2)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:190)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
2007-06-14 20:55:43,031 ERROR - n.project.MavenToIdeaConverter - IntelliJ IDEA (Selena) #7016 Build #7016
2007-06-14 20:55:43,031 ERROR - n.project.MavenToIdeaConverter - JDK: 1.5.0_11
2007-06-14 20:55:43,031 ERROR - n.project.MavenToIdeaConverter - VM: Java HotSpot(TM) Client VM
2007-06-14 20:55:43,031 ERROR - n.project.MavenToIdeaConverter - Vendor: Sun Microsystems Inc.
2007-06-14 20:55:43,031 ERROR - n.project.MavenToIdeaConverter - OS: Windows XP
2007-06-14 20:55:43,046 ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(39,48),button=1,modifiers=Button1,clickCount=1] on ###overrideRedirect###
java.lang.NullPointerException: null keys not supported
at gnu.trove.THashMap.put(THashMap.java:162)
at com.intellij.openapi.module.impl.ModuleManagerImpl$ModuleModelImpl.setModuleGroupPath(ModuleManagerImpl.java:15)
at org.jetbrains.idea.maven.project.MavenToIdeaConverter$3.visit(MavenToIdeaConverter.java:94)
at org.jetbrains.idea.maven.project.MavenToIdeaConverter$3.visit(MavenToIdeaConverter.java:97)
at org.jetbrains.idea.maven.core.util.Tree.visit(Tree.java:54)
at org.jetbrains.idea.maven.core.util.Tree.visit(Tree.java:74)
at org.jetbrains.idea.maven.project.MavenProjectModel.visit(MavenProjectModel.java:172)
at org.jetbrains.idea.maven.project.MavenToIdeaConverter.createModuleGroups(MavenToIdeaConverter.java:83)
at org.jetbrains.idea.maven.project.MavenToIdeaConverter.convert(MavenToIdeaConverter.java:45)
at org.jetbrains.idea.maven.project.MavenImportProcessor$3.run(MavenImportProcessor.java:151)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:292)
at org.jetbrains.idea.maven.project.MavenImportProcessor.commit(MavenImportProcessor.java:149)
at org.jetbrains.idea.maven.project.action.MavenImportWizard.commitImport(MavenImportWizard.java:82)
at com.intellij.projectImport.ProjectImportWizard.doImport(ProjectImportWizard.java:18)
at com.intellij.projectImport.ProjectImportAction.actionPerformed(ProjectImportAction.java:3)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:2)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:63)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:187)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:96)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:0)
at java.awt.Component.processMouseEvent(Component.java:5501)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5266)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3968)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:191)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:2)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:190)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

2 comments

Hello Thibaut,

This should be fixed in the next EAP

Vladislav Kaznacheev
Project Manager, IntelliJ IDEA
http://www.jetbrains.com
"Develop with Pleasure!"

It doesn't happen every time, but some times, when hitting
resynchronize all maven imported modules are removed from the project
with no visible explanation (no exception, not even in idea.log).

Some time before this, i can find the following excpetion in idea.log,
no idea if this has any link

2007-06-14 20:55:43,031 ERROR -
n.project.MavenToIdeaConverter - Assertion failed:
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:89)
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:96)
at
org.jetbrains.idea.maven.project.MavenToIdeaConverter$3.visit(MavenToI
deaConverter.java:93)
at
org.jetbrains.idea.maven.project.MavenToIdeaConverter$3.visit(MavenToI
deaConverter.java:97)
at org.jetbrains.idea.maven.core.util.Tree.visit(Tree.java:54)
at org.jetbrains.idea.maven.core.util.Tree.visit(Tree.java:74)
at
org.jetbrains.idea.maven.project.MavenProjectModel.visit(MavenProjectM
odel.java:172)
at
org.jetbrains.idea.maven.project.MavenToIdeaConverter.createModuleGrou
ps(MavenToIdeaConverter.java:83)
at
org.jetbrains.idea.maven.project.MavenToIdeaConverter.convert(MavenToI
deaConverter.java:45)
at
org.jetbrains.idea.maven.project.MavenImportProcessor$3.run(MavenImpor
tProcessor.java:151)
at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(A
pplicationImpl.java:292)
at
org.jetbrains.idea.maven.project.MavenImportProcessor.commit(MavenImpo
rtProcessor.java:149)
at
org.jetbrains.idea.maven.project.action.MavenImportWizard.commitImport
(MavenImportWizard.java:82)
at
com.intellij.projectImport.ProjectImportWizard.doImport(ProjectImportW
izard.java:18)
at
com.intellij.projectImport.ProjectImportAction.actionPerformed(Project
ImportAction.java:3)
at
com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitte
r.actionPerformed(ActionMenuItem.java:2)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:184
9)
at
com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerfor
med(ActionMenuItem.java:63)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:187)
at
com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:9
6)
at
com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleas
ed(BegMenuItemUI.java:0)
at java.awt.Component.processMouseEvent(Component.java:5501)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5266)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3968)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:191)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:2)
at
com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:190)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThr
ead.java:242)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThrea
d.java:163)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
2007-06-14 20:55:43,031 ERROR -
n.project.MavenToIdeaConverter - IntelliJ IDEA (Selena) #7016 Build
#7016
2007-06-14 20:55:43,031 ERROR -
n.project.MavenToIdeaConverter - JDK: 1.5.0_11
2007-06-14 20:55:43,031 ERROR -
n.project.MavenToIdeaConverter - VM: Java HotSpot(TM) Client VM
2007-06-14 20:55:43,031 ERROR -
n.project.MavenToIdeaConverter - Vendor: Sun Microsystems Inc.
2007-06-14 20:55:43,031 ERROR -
n.project.MavenToIdeaConverter - OS: Windows XP
2007-06-14 20:55:43,046 ERROR -
com.intellij.ide.IdeEventQueue - Error during dispatching of
java.awt.event.MouseEvent[MOUSE_RELEASED,(39,48),button=1,modifiers=Bu
tton1,clickCount=1] on ###overrideRedirect###
java.lang.NullPointerException: null keys not supported
at gnu.trove.THashMap.put(THashMap.java:162)
at
com.intellij.openapi.module.impl.ModuleManagerImpl$ModuleModelImpl.set
ModuleGroupPath(ModuleManagerImpl.java:15)
at
org.jetbrains.idea.maven.project.MavenToIdeaConverter$3.visit(MavenToI
deaConverter.java:94)
at
org.jetbrains.idea.maven.project.MavenToIdeaConverter$3.visit(MavenToI
deaConverter.java:97)
at org.jetbrains.idea.maven.core.util.Tree.visit(Tree.java:54)
at org.jetbrains.idea.maven.core.util.Tree.visit(Tree.java:74)
at
org.jetbrains.idea.maven.project.MavenProjectModel.visit(MavenProjectM
odel.java:172)
at
org.jetbrains.idea.maven.project.MavenToIdeaConverter.createModuleGrou
ps(MavenToIdeaConverter.java:83)
at
org.jetbrains.idea.maven.project.MavenToIdeaConverter.convert(MavenToI
deaConverter.java:45)
at
org.jetbrains.idea.maven.project.MavenImportProcessor$3.run(MavenImpor
tProcessor.java:151)
at
com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(A
pplicationImpl.java:292)
at
org.jetbrains.idea.maven.project.MavenImportProcessor.commit(MavenImpo
rtProcessor.java:149)
at
org.jetbrains.idea.maven.project.action.MavenImportWizard.commitImport
(MavenImportWizard.java:82)
at
com.intellij.projectImport.ProjectImportWizard.doImport(ProjectImportW
izard.java:18)
at
com.intellij.projectImport.ProjectImportAction.actionPerformed(Project
ImportAction.java:3)
at
com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitte
r.actionPerformed(ActionMenuItem.java:2)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:184
9)
at
com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerfor
med(ActionMenuItem.java:63)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:187)
at
com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:9
6)
at
com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleas
ed(BegMenuItemUI.java:0)
at java.awt.Component.processMouseEvent(Component.java:5501)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5266)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3968)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:191)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:2)
at
com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:190)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThr
ead.java:242)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThrea
d.java:163)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



0

great =) looking forward to it.
Despite this minor glitch, i really like the direction maven integration is taking

0

Please sign in to leave a comment.